i have internal table
Main report.
begin of itab_lst occurs 0,
seqno like zfit_cos01-seqno,
gsber like tgsbt-gsber,
cntsl like glt01-tslvt,
cnhsl like glt0-tslvt,
end of itab_lst.
data: xtab_lst like table of itab_lst with header line
Perform frm_gsber.
/Form.........................../
form frm_gsber.
loop at itab_rbusa.
perform frm_make_data. (inside this form i have
itab_lst table, each time i have to append
the records to xtab_list.)
loop at itab_lst.
move-corresponding itab_lst to xtab_lst.
append xtab_list.
endloop.
[
in this place if i print the xtab_list table it has
all the records appended.i get all records.
]
endloop.
endform.
[ but if we loop xtab_list and print outside the form it prints
only last records appended to it.why]
Hello Ambichan,
I have a doubt about your global and local declarations. could you please check that out once?
What do you mean <i>outside the form</i>? Where exactly? and outside which form?
Also, please give the entire code and point out the area of your problem more clearly.
Regards,
Anand Mandalika.
1) wheather the same variable has been used as local in the subroutine
2) Also check wheather the list is printed in the same line whereas it should have been Write:\
3) Before looping xtab_lst just try to execute the command of READ TABLE XTAB_LST INDEX 0 and then try to run the Loop
Add a comment