‎2010 Mar 04 6:12 AM
Hi,
I want to find how long the program ran.Is there any function module/system variable present?
Thanks.
‎2010 Mar 04 6:20 AM
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
‎2010 Mar 04 6:13 AM
‎2010 Mar 04 6:17 AM
‎2010 Mar 04 6:20 AM
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
‎2010 Mar 04 6:21 AM
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