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

Finding program run time duration

Former Member
0 Likes
2,860

Hi,

I want to find how long the program ran.Is there any function module/system variable present?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,723

Hello,

Declare 2 variables say t1 and t2 of type i.

At the beginning of the program write


get run time field t1.

at the end of the program write


get run time field t2.

Now the difference between the twp variable t1 and t2 will give you how much time it took to execute the program.

Hope this helps

Regards,

Sachin

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
1,723

You can check it from SE30 transaction.

Read only

manthanraja
Active Participant
0 Likes
1,723

hello ginger

A very similar issue has been discussed [HERE|;

also i would encourage you to read the rules of engagement . It is discouraged to ask basic questions ..

BR

Manthan.

Read only

Former Member
0 Likes
1,724

Hello,

Declare 2 variables say t1 and t2 of type i.

At the beginning of the program write


get run time field t1.

at the end of the program write


get run time field t2.

Now the difference between the twp variable t1 and t2 will give you how much time it took to execute the program.

Hope this helps

Regards,

Sachin

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,723

You can also do so using the command GET RUN TIME.

Please read the documentation on this : [http://help.sap.com/abapdocu_70/en/ABAPGET_RUN_TIME.htm]

There is also an example in the documentation which you can refer.

@Manthan: You better understand the OP's question

BR,

Suhas