‎2010 Nov 24 3:03 PM
I have a internal table with say 10000 lines i want to split it as 5000 and 5000 lines.How to code it?
Moderator message: please try solving this yourself before asking, e.g. by studying the options of the LOOP statement.
Edited by: Thomas Zloch on Nov 24, 2010 4:20 PM
‎2010 Nov 24 3:06 PM
e.g.:
loop at itab.
add 1 to count.
if count <= 500.
move-corresponding itab to itab2.
collec titab2.
else.
move-corresponding itab to itab3.
collec titab3.
endloop.