diff --git a/ZA2X/CLAS/ZCL_EXCEL_WORKSHEET.slnk b/ZA2X/CLAS/ZCL_EXCEL_WORKSHEET.slnk index c557fdb..12010fb 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_WORKSHEET.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_WORKSHEET.slnk @@ -21,10 +21,10 @@ TYPE HASHED TABLE OF mty_s_font_cache WITH UNIQUE KEY font_name font_height flag_bold flag_italic "/> - - - + + + *"* local class implementation for public class *"* use this source file for the implementation part of *"* local helper classes @@ -180,12 +180,6 @@ ENDCLASS. "lcl_gui_alv_grid DEFINITION *"* use this source file for any macro definitions you need *"* in the implementation part of the class - - - - - - @@ -200,15 +194,6 @@ ENDCLASS. "lcl_gui_alv_grid DEFINITION - - - - - - - - - @@ -2650,6 +2635,7 @@ ENDCLASS. "lcl_gui_alv_grid DEFINITION lo_table TYPE REF TO zcl_excel_table, lt_column_name_buffer TYPE SORTED TABLE OF string WITH UNIQUE KEY table_line, lv_value TYPE string, + lv_value_lowercase TYPE string, lv_syindex TYPE char3, lv_errormessage TYPE string, "ins issue #237 @@ -2766,11 +2752,12 @@ ENDCLASS. "lcl_gui_alv_grid DEFINITION <ls_field_catalog>-scrtext_l = lv_value. ENDIF. WHILE 1 = 1. - - READ TABLE lt_column_name_buffer TRANSPORTING NO FIELDS WITH KEY table_line = lv_value BINARY SEARCH. + lv_value_lowercase = lv_value. + TRANSLATE lv_value_lowercase TO LOWER CASE. + READ TABLE lt_column_name_buffer TRANSPORTING NO FIELDS WITH KEY table_line = lv_value_lowercase BINARY SEARCH. IF sy-subrc <> 0. <ls_field_catalog>-scrtext_l = lv_value. - INSERT lv_value INTO TABLE lt_column_name_buffer. + INSERT lv_value_lowercase INTO TABLE lt_column_name_buffer. EXIT. ELSE. lv_syindex = sy-index. @@ -3007,7 +2994,7 @@ METHOD calculate_cell_width. ld_flag_italic = ls_stylemapping-complete_style-font-italic. ENDIF. - CATCH zcx_excel. "#EC NO_HANDLER + CATCH zcx_excel ##NO_HANDLER. " Style GUID is present, but style was not found " Continue with default values @@ -3088,9 +3075,7 @@ METHOD calculate_cell_width. " Font metrics are not available " -> Calculate the cell width using only the font size ld_length = strlen( ld_cell_value ). - ep_width = - ld_length * ld_font_height / lc_default_font_height - + lc_excel_cell_padding. + ep_width = ld_length * ld_font_height / lc_default_font_height + lc_excel_cell_padding. ELSE. " Font metrics are available