diff --git a/ZA2X/CLAS/ZCL_EXCEL_COMMON.slnk b/ZA2X/CLAS/ZCL_EXCEL_COMMON.slnk index e056566..fc52ff7 100644 --- a/ZA2X/CLAS/ZCL_EXCEL_COMMON.slnk +++ b/ZA2X/CLAS/ZCL_EXCEL_COMMON.slnk @@ -322,6 +322,7 @@ endmethod. lo_elemdescr TYPE REF TO cl_abap_elemdescr, lt_dfies TYPE ddfields, ls_dfies TYPE dfies, + lv_sytabix TYPE sytabix, ls_fieldcatalog TYPE zexcel_s_fieldcatalog, lt_components TYPE abap_component_tab, ls_component LIKE LINE OF lt_components. @@ -343,6 +344,7 @@ endmethod. "if structure is not DDIC check components lt_components = lo_structdescr->get_components( ). LOOP AT lt_components INTO ls_component. + lv_sytabix = sy-tabix. CLEAR ls_fieldcatalog. lo_elemdescr ?= ls_component-type. "component is DDIC @@ -356,7 +358,7 @@ endmethod. ls_fieldcatalog-dynpfld = abap_true. ls_fieldcatalog-scrtext_m = ls_component-name. ENDIF. - ls_fieldcatalog-position = sy-tabix. " Fix issue #119 + ls_fieldcatalog-position = lv_sytabix. APPEND ls_fieldcatalog TO ep_fieldcatalog. ENDLOOP. ENDIF.