09-11-2008 8:05 AM
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.
09-11-2008 8:10 AM
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
09-11-2008 8:11 AM
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.
09-11-2008 8:26 AM
Loop at itab from 1 o 450.
endloop.
use this syntax and build the logic.....
09-11-2008 8:27 AM
Loop at itab from 1 to 450.
endloop.
use this syntax and build the logic.....
09-11-2008 9:40 AM
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.
09-11-2008 9:42 AM
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.