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

Processing Record by batch

Former Member
0 Likes
1,019

Hi Experts,

I have an scenario, In the internal table suppose If I have a 50,000 records ( fifty thousand records) , suposse I want to process the records in the batch of 5000 ( five thousand ) , I need to process 10 times to compelete this 50,000 records.

or if I need to process 50,000 records in the batch of 2000 then ,I need to process it 25 times...

The number of records per batch will be given by the user ...

But how to calculate the iterations and process all the records in ABAP langauage...

Thanks in Advance...

Regards,

IFF

Edited by: IFF on Feb 18, 2008 6:15 PM

First Iteration : 1-5000

Second Iteration : 5001-10000

Last iteration:45001-5000

The batch size may be directly given by the user

Regards,

IFF

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
751

hi

after the user inputs the no. of records per batch..

using usual code send those number of records to the batch and delete it from the internal table..

as u put it in the loop, the process continues until all the records are processed (that is the internal table become empty).

Regards,

K.Tharani.

3 REPLIES 3
Read only

Former Member
0 Likes
751

Hi,

You can provide a Paramter in the Selection screen to devide number of records per session.

While creating the session you can use this value to verify.

<REMOVED BY MODERATOR>

Regards,

Ashok

Edited by: Alvaro Tejada Galindo on Feb 18, 2008 1:53 PM

Read only

Former Member
0 Likes
752

hi

after the user inputs the no. of records per batch..

using usual code send those number of records to the batch and delete it from the internal table..

as u put it in the loop, the process continues until all the records are processed (that is the internal table become empty).

Regards,

K.Tharani.

Read only

Former Member
0 Likes
751

ANSWERED BY EXPERTS