Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Splitting the internal table values

Former Member
0 Likes
373

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

1 REPLY 1
Read only

Former Member
0 Likes
344

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.