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

reducing execution time?

Former Member
0 Likes
1,178

hi all,

Am running a report. It is taking long time for execution. What steps should i do to reduce the execution time.

thanks in advance,

ashu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,092

hi,

It is taking so much time for execution in the sense u r hitting the entire db table.It's better to take specific fields instead of selectiong all the fields.

Goto se30 runtime analysis and check for which task its taking much time and better solve it.

8 REPLIES 8
Read only

Former Member
0 Likes
1,093

hi,

It is taking so much time for execution in the sense u r hitting the entire db table.It's better to take specific fields instead of selectiong all the fields.

Goto se30 runtime analysis and check for which task its taking much time and better solve it.

Read only

amit_khare
Active Contributor
0 Likes
1,092

Check the thread -

Regards,

Amit

Reward all helpful replies.

Read only

Former Member
0 Likes
1,092

HI,

goto extended syntax check, and see for which statement its taking more time, and remove unnecessary statements if any

Regards,

Naveen

Read only

Former Member
0 Likes
1,092

Replace inner joins with for all entries,

Use select single where you know all the primary keys else use upto one row

replace

loop.

Select.

endloop.

with

for all entries

Use binary search in internal tables

Use se30 runtime analysis and see the log and look at what were the tables consuming more time and try to use more keys in select statements.

Read only

Former Member
0 Likes
1,092

Hi,

use primary / secondary index keys in the where clause of the select query

DO NOT use a negative in the where clause - it negates the index.

While reading internal tables use binary search.

sort itab by <field1 field2>

read table itab with key <field1 field2> binary search.

before using for all entries check if the internal table has something .. else all records form DB will get selected.

Regards,

Guarav

Read only

Former Member
0 Likes
1,092
Read only

Former Member
0 Likes
1,092

Hi Ashu,

T Code: ST05.

Run this transaction by giving your program name and executing your program and it'll analyse which select statement is consuming more time than usual. Use field symbols if possible.

Reward Points.

Thanks,

Tej..

Read only

Former Member
0 Likes
1,092

hi

good

go through this link which ll give you detail idea about the performance analysis of a report

http://www.sap-img.com/abap/performance-tuning-for-data-selection-statement.htm

thanks

mrutyun^