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

Long Calculation within loops

Former Member
0 Likes
652

Hi,

I'm facing problems with a FI report. The batch job took approx 4hours for one variant and some variants can't even complete on time. For this case, out of the 4hrs, only 1 hour is due to SQL access.

I've traced the 3hr performance problem to a form which does calculation and sum of figures within loops.

What could be the problem... or what would be a good way to further investigate this?

So far I have only done performance tuning for programs due to inefficient SQL statements.

So, this is something new to me.

Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
619

Hi Charles,

Check the link below which gives tips such as use of BinarySearch with Read table . Also in on of the reports i created , i found that all the dynamic stmt's are time consuming. Hence i tried to avoid them as much as i can. Paste the code in the form routine also to investigate the problem further.

http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp

5 REPLIES 5
Read only

Former Member
0 Likes
620

Hi Charles,

Check the link below which gives tips such as use of BinarySearch with Read table . Also in on of the reports i created , i found that all the dynamic stmt's are time consuming. Hence i tried to avoid them as much as i can. Paste the code in the form routine also to investigate the problem further.

http://www.thespot4sap.com/Articles/SAPABAPPerformanceTuning_PerformanceAnalysisTools.asp

Read only

0 Likes
619

read is not the problem. it doesnt use read.

some of the key abap used are:

within loop. ..

at new.

sum

compute

modify

what can cause several hours of processing?

any experts? i'll reward generously. thanks.

Read only

Former Member
0 Likes
619

Hi Liu ,

which transaction u are running , tuning will be based on the transaction to transaction.

Regards

Prabhu

Read only

0 Likes
619

This is a customised FI report.

Read only

Former Member
0 Likes
619

found something interesting...

it's something to do with this code..

& i think is the get time field

FORM timestamp USING value(itext) TYPE c.

GET TIME FIELD ts-uzeit.

MOVE sy-datum TO ts-datum.

MOVE itext TO ts-event.

APPEND ts. CLEAR ts.

IF sy-batch EQ x

OR write_ts EQ x.

MESSAGE s020(nn) "&

WITH itext.

ENDIF.

ENDFORM.