i have a problem that i want to do the looping and copy to the itab_shipmark
when read 1 line, then copy to itab_shipmark. (the field will change depend on number of looping as sy-tabix)
let say, there is 7 rows and loop 7 times
i want to execute when looping
clear itab_shipmark.
loop start...
1st time : move t_tline-tdline to itab_shipmark-row1.
2nd time: move t_tline-tdline to itab_shipmark-row2.
....
7th time: move t_tline-tdline to itab_shipmark-row7.
end loop.
append itab_shipmark.
see the following draft coding ***************
CALL FUNCTION 'READ_TEXT'
EXPORTING
ID = '002'
LANGUAGE = SY-LANGU
NAME = THE_TDNAME
OBJECT = 'VBBP'
TABLES
LINES = T_TLINE1
EXCEPTIONS
....
....
IF SY-SUBRC = 0.
CLEAR ITAB_SHIPMARK.
LOOP AT T_TLINE1.
tindex = sy-tabix.
concatenate 'itab_shipmark-row' tindex into tshipmark.
concatenate 'move t_tline-tdline to' tshipmark into tshipmark.
???? (how to execute move t_tline-tdline to itab_shipmark-row1.)
ENDLOOP.
APPEND ITAB_shipmark.
ENDIF.
ENDFORM. "GET_SHIP_MARK