Application Development 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: 

Numer of lines count

Former Member
0 Kudos

hi,

i am having 1000 entries in itab.

i need to take first 450 entries and do the posting through MRRL transaction.

after that i need to take entries from 451 to 800, then do the same.

then same procedure up to 1000.

but this in background mode

if any body having idea pls help me?

how to do.

6 REPLIES 6

Former Member
0 Kudos

Hi Raj,

You can use sy-tabix for this purpose..

Have a look on the following code:

loop at itab into wa_tab.

if sy-tabix > 450.

exit.

endif.

-


Your Logic -


endloop.

Then repeat this logic for rest of the cases...

Hope this will help.

Regards,

Nitin.

Edited by: Nitin Karamchandani on Sep 11, 2008 9:10 AM

Former Member
0 Kudos

Hi,

Define a counter in prog and create session for the number range upto 450 and create another session for anther range

and run in background.

Regards,

Raju.

kesavadas_thekkillath
Active Contributor
0 Kudos

Loop at itab from 1 o 450.

endloop.

use this syntax and build the logic.....

0 Kudos

Loop at itab from 1 to 450.

endloop.

use this syntax and build the logic.....

Former Member
0 Kudos

hi,

i am having 1000 entries in itab.

i need to take first 450 entries and do the posting through MRRL transaction.

after that i need to take entries from 451 to 800, then do the same.

then same procedure up to 1000.

but this in background mode

if any body having idea pls help me?

how to do.

Hi

data: li type i value 1._

Loop at itab into struc.

{ process the steps needed for u if any }

append struc to temp_itab.

li = sy-tabix MOD 450._

check li = 0._

{ process your posting here using temp_itab }

refresh tempitab._

endloop.

Former Member
0 Kudos

Hi

data: l_i type i value 1

Loop at itab into struc.

{ process the steps needed for u if any }

append struc to temp_itab.

l_i = sy-tabix MOD 450. -


> main logic for you

check l_i = 0.

{ process your posting here using temp_itab }

refresh temp_itab.

endloop.