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

How to get execution time?

Former Member
0 Likes
20,433

Hi frenz,

I want to know what is the execution time of my program/report.

Is there any function or statement for getting execution time?

Please do let me know.

<removed_by_moderator>

Regards

RH

Edited by: Julius Bussche on Sep 9, 2008 4:22 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
9,090

hi,

Check out STAT transaction .... or else you can even do do SQL Trace i,e, ST05 or RTA i.e, SE30 ..

Hi

After Execute ur prog , in the rightmost (Down) corner ,one bar shows your client no. If u click there , it ii show some informations. In that RESPONSE TIME ............ that is your execution time

15 REPLIES 15
Read only

Former Member
0 Likes
9,091

hi,

Check out STAT transaction .... or else you can even do do SQL Trace i,e, ST05 or RTA i.e, SE30 ..

Read only

Simha_
Product and Topic Expert
Product and Topic Expert
0 Likes
9,090

Hi,

Goto Tx : SE30 and give your program or transactio name and execute it.

After that click on the analyze buton after coming to main screen.

It will display the total time (runtime/ABAp time/System time).

Cheers,

Simha.

Read only

Former Member
0 Likes
9,090

Hi,

Check in STAD (ECC6.0) or STAT (earlier versions).

Regards,

Subramanian

Read only

Former Member
0 Likes
9,090

Add the statement GET RUN TIME FIELD zlv_time1 and GET RUN TIME FIELD zlv_time2 in the top and the end of your program. The difference between these 2 is the runtime in microseconds.

Regards,

John.

Read only

Former Member
0 Likes
9,090

another trick is, if you are running this via DIA mode (online), after report runs just check the bottom right hand corner of your SAPGUI (click the pull up icon).

Read only

Former Member
0 Likes
9,090

Get sy-uzeit at the initialization of your program and then at the end.

Find the difference between the two and there is your run time.

Regards

C

Read only

former_member787646
Contributor
9,090

Hi

Using the statement "GET RUN TIME FIELD" you can get the execution time in Microseconds.

Eg.

DATA T TYPE I.

GET RUN TIME FIELD T.

WRITE: / 'Runtime', T.

DO 10 TIMES.

GET RUN TIME FIELD T.

WRITE: / 'Runtime', T.

ENDDO.

Hope this would help you.

Murthy

Read only

Former Member
0 Likes
9,090

Hi

After Execute ur prog , in the rightmost (Down) corner ,one bar shows your client no. If u click there , it ii show some informations. In that RESPONSE TIME ............ that is your execution time

Read only

Former Member
9,090

Hi,

Here's a complete example of how to program a time measurement:

DATA:
  tstart    TYPE i,
  tstop     TYPE i,
  trun      TYPE i.

* Record start time
GET RUN TIME FIELD tstart.

* Now do something that takes time...
(...)

* Record end time
GET RUN TIME FIELD tstop.

* Run time (milliseconds instead of microseconds)
trun = ( tstop - tstart ) / 1000.

WRITE: / 'Exec time:', trun, 'milliseconds'.

Regards,

Mark M

Read only

Former Member
0 Likes
9,090

Hi,

Use SE30(Run time analysis).

Goto Se30> Give desc and ur program name>click execute button>then click evaluate button>u will get execution time in micro seconds.

Read only

Former Member
0 Likes
9,090

Goto transaction se30.

and execute your program to get the performance and execution time.

Read only

Former Member
0 Likes
9,090

SY-UZEIT stopres the curerent system time.

So with the help of SY-UZEIT in write statement you can easily get the value.

Put the statemnet in your code

WRITE: 'Execution Time: ',SY-UZEIT.

Regards,

Anirban

Read only

Former Member
0 Likes
9,090

Hi Ronny.

I would like to suggest,

Transaction ST03N - Workload Monitor

In the Left Pane window - The Date and Time of Execution will be displayed as well as the detailed analysis.

Hope that's usefull.

Good Luck & Regards.

Harsh Dave

Read only

Former Member
0 Likes
9,090

Hi Ronny.

I would like to suggest,

Transaction STAD, can also be used.

Enter the program name/Transaction - Response time - Execution time.

Press Enter.

The details will be displayed.

Good Luck & Regards.

Harsh Dave

Read only

Former Member
0 Likes
9,090

Thanks !!