Application Development 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: 

Evaluate the total execution time

Former Member
0 Kudos
792

Hi,

I need to find the total execution time taken upon executing a function module. I tried to output the system time in the start of the FM and at the end of the FM. But the time taken in execution in the DEV system could be lessthan 1 sec, which is not visible to evaluate.

Any one with an idea, please help.

Regards,

Satish Kanteti

1 ACCEPTED SOLUTION

former_member195402
Active Contributor
0 Kudos
247

Hi,

you can check the difference with

GET RUN TIME FIELD f.

Take both values before and after fm and you get the difference in µs.

Regards,

Klaus

4 REPLIES 4

former_member195402
Active Contributor
0 Kudos
248

Hi,

you can check the difference with

GET RUN TIME FIELD f.

Take both values before and after fm and you get the difference in µs.

Regards,

Klaus

Former Member
0 Kudos
247

Hi,

You can check that in t.code - se37 itself.

Execute any Function Module in SE37 .

In the Result Screen you can see the Run time in Micro Seconds

Regards,

Prakash.k

0 Kudos
247

Prakash,

The time you were referring to on the screen was RESPONSE TIME or INTERPRETATION TIME.

Regards,

Satish Kanteti

Former Member
0 Kudos
247

Hi,

You can use like below

DATA T TYPE I.
GET RUN TIME FIELD T.
WRITE: / 'Begin Runtime', T.
*Call FM
GET RUN TIME FIELD T.
WRITE: / 'End Runtime', T.

For more details check the link below

http://help.sap.com/saphelp_nw04/helpdata/en/9f/db994235c111d1829f0000e829fbfe/content.htm