09-28-2007 3:49 AM
To do a loop on all data in a table, given total row count of 5 for example.
Want to do a loop on all the fields.
09-28-2007 4:04 AM
I think that you need to use field symbols to loop the table and into each row you should use assign component of structure
<wa> should have the structure of your table.
<fs> type any
loop table asinging <wa>
do.
assign component sy-index of structure <wa> into <fs>.
if not <fs> is assigned.
exit.
else.
YOUR CODE HERE
unassign <fs>.
endif.
enddo.
endloop.
Regards
09-28-2007 4:38 AM
Sorry i'm new to abap. I dun really understand how the code works.
Any full sample code?