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

Runtime

Former Member
0 Likes
665

Hello everyone,

Does anyone have any information on how to get the runtime of a program? I have a requirement for an enhancement where the users would like to see how long the program ran in the report generated. Im aware of the Get Runtime Field command but this is typically used for checking sections of a program and I think it only goes up to 16mins (1000s). If anyone has any advice or knows if their is some runtime variable please let me know.

Thanks in advance,

Regards,

C

1 ACCEPTED SOLUTION
Read only

former_member297642
Participant
0 Likes
626

Hi,

In 4.6c :

Transaction code STAT : Local Transaction Statistics

This tcode runs program RSSTAT21 .

In ECC 6:

Transaction code STAD

This tcode runs program RSSTAT26

It will ask u the user name,transaction, program name, task type

Regards,

Ranjith.

3 REPLIES 3
Read only

Former Member
0 Likes
626

Hi

Get the UZEIT system field in the initalization step,

and at the end of the program where the program ends get the same UZEIT take the difference and that would be your total run time for the program .

Regards

Read only

former_member297642
Participant
0 Likes
627

Hi,

In 4.6c :

Transaction code STAT : Local Transaction Statistics

This tcode runs program RSSTAT21 .

In ECC 6:

Transaction code STAD

This tcode runs program RSSTAT26

It will ask u the user name,transaction, program name, task type

Regards,

Ranjith.

Read only

Former Member
0 Likes
626

Ill go with sy-uzeit for now. But doesn't sy-uzeit not change during run time? Or is it sy-timlo that doesnt? I'm going to tinker with it a bit more and see what I can get to work right.