From f4107fa169bbccb04d6d6cbd055d4bad778c7eef Mon Sep 17 00:00:00 2001 From: Ivan Femia Date: Mon, 26 Sep 2011 06:59:02 +0000 Subject: [PATCH] Fix issue #119 git-svn-id: https://subversion.assembla.com/svn/abap2xlsx/trunk@223 b7d68dce-7c3c-4a99-8ce0-9ea847f5d049 --- ZA2X/CLAS/ZCL_EXCEL_COMMON.slnk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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.