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

abap program

Former Member
0 Likes
758

Hi ,

i have 10,000 lines of code in program , is it possible to performance checking for that program ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
731

Hi Bhagavan,

First find out where the greater amount of time is taking using the transaction SE30.

Steps:

1) In SE30, give the transaction or prog.name and click on execute button.

2) Once the execution of the prog. or transaction is over, click on back button to come back to the Runtime Analysis screen. Now you will get an information message in the status bar that 'Runtime analysis has finished'.

3)Now click on Analyze button. This will give the % of execution time for ABAP statements, Database fetch etc..

4)If the Time spent on database is high (if shown in red color), then we need to find out the select statement where it is taking time...We need to find out the database index which is getting picked up

5) Now click on Hitlist button to get the statements which are getting executed ..Sort them according to Net % or Net time taken... You can click on Source code button to find out the corresponding ABAP code...

For finding out the index that is getting picked up, you need to use ST04 Transaction.

Hope this has been of some help to you...

Regards,

SP.

5 REPLIES 5
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
731

You can do performance analysis on any program whether it be 5 lines of code or 100000 lines of code, it really doesn't matter how many lines of code it is.

I believe that ST03 is the runtime analysis.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
731

hi,

you can check the peformance of that program by using se30(RUN TIME ANALYSIS) or st05(SQL TRACER) or SLIN(EPC) what ever may be the number of lines.

Read only

Former Member
0 Likes
731

hi,

Go to transaction se38 enter the program name,

in the menu bar click on program

in the drop down menu

execute->runtime analysis.

Read only

Former Member
0 Likes
732

Hi Bhagavan,

First find out where the greater amount of time is taking using the transaction SE30.

Steps:

1) In SE30, give the transaction or prog.name and click on execute button.

2) Once the execution of the prog. or transaction is over, click on back button to come back to the Runtime Analysis screen. Now you will get an information message in the status bar that 'Runtime analysis has finished'.

3)Now click on Analyze button. This will give the % of execution time for ABAP statements, Database fetch etc..

4)If the Time spent on database is high (if shown in red color), then we need to find out the select statement where it is taking time...We need to find out the database index which is getting picked up

5) Now click on Hitlist button to get the statements which are getting executed ..Sort them according to Net % or Net time taken... You can click on Source code button to find out the corresponding ABAP code...

For finding out the index that is getting picked up, you need to use ST04 Transaction.

Hope this has been of some help to you...

Regards,

SP.

Read only

Former Member
0 Likes
731

Use either ST05 or SE30 Transactions. Or read ABAP BC490 SAP Course Material.

http://help.sap.com/saphelp_nw2004s/helpdata/en/26/7d104202795a33e10000000a155106/content.htm

Regards,

Ramki