‎2007 Nov 15 4:22 AM
Hi Gurus,
I have code shown below that return the first line at the end of the loop, thus when the data is displayed the last line is repeated like the first line. Any idea to solve it? Thank you.
LOOP AT t_zsd INTO wa_zsd.
w_index = w_index + 1.
IF sy-subrc EQ 0.
READ TABLE t_mseg INTO wa_mseg WITH KEY mblnr = wa_zsd-delnum.
APPEND wa_mseg to t_mseg.
ENDIF.
IF sy-subrc EQ 0.
wa_mseg-serial_num = wa_zsd-serial_num.
MODIFY t_mseg FROM wa_mseg INDEX w_index TRANSPORTING serial_num.
ENDIF.
ENDLOOP.
‎2007 Nov 15 6:35 PM
.
.
.
clear : t_zsd
clear : wa_zsd
endloop.
This shall work.
If that works then reward point expected.
‎2007 Nov 15 10:44 AM
Hi Chin,
I think you should post your question in ABAP development forums.
Regards,
Nicolas
‎2007 Nov 15 6:35 PM
.
.
.
clear : t_zsd
clear : wa_zsd
endloop.
This shall work.
If that works then reward point expected.