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

Problem in collect statement

Former Member
0 Likes
395

hi,

I am using Collect staement into an internal table for calculating total from General Ledger Details.which is having arround 60000 records. This loop Statement taking more time.For improveing the performance for the particular loop statment what should i do?..

LOOP AT LT_FAGLFLEXT INTO LS_FAGLFLEXT .

CLEAR : GV_MESSAGE , GV_PERCOUNT.

GV_MESSAGE = TEXT-023. "' Calculating totals from General Ledger Details'.

PERFORM PROGRESS_INDIACTOR USING GV_PERCOUNT GV_MESSAGE .

COLLECT LS_FAGLFLEXT INTO LT_COLLECT_FAGLFLEXT.

CLEAR LS_FAGLFLEXT .

ENDLOOP.

Thanks & Regards

Shubh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
366

Hi Shubh,

I don't think that the problem is with collect statement. I didn't see that there is any change in the parameters GV_PERCOUNT and GV_MESSAGE passed to the routine PROGRESS_INDIACTOR. So you can call this perform outside the loop which will increase the performance a lot.

Let me know if the problem still persists.

Thanks,

Kiran.

1 REPLY 1
Read only

Former Member
0 Likes
367

Hi Shubh,

I don't think that the problem is with collect statement. I didn't see that there is any change in the parameters GV_PERCOUNT and GV_MESSAGE passed to the routine PROGRESS_INDIACTOR. So you can call this perform outside the loop which will increase the performance a lot.

Let me know if the problem still persists.

Thanks,

Kiran.