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

help on ABAP report

Former Member
0 Likes
651

Hi everyone,

I am a newbie to ABAP. I have a requirement, wherein, I need to develop a program that takes another program name as a variant and calculate the time for execution for the program, given as variant. Please somebody help me with it. Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
622

You can not calculate execution time of programs, as it depends on too much variables, e.G. server capacity, database and and and.

Only thing you can do is to run a program, and see how long it took.

IF thats what you need, you shouldnt be doing anything as there are already tools in standard that do such.

E.G. ST05, SM30, or SM37 if you do it via a job or background execution.

Hi everyone,

I am a newbie to ABAP. I have a requirement, wherein, I need to develop a program that takes another program name as a variant and calculate the time for execution for the program, given as variant. Please somebody help me with it. Thanks in advance.

4 REPLIES 4
Read only

Former Member
0 Likes
623

You can not calculate execution time of programs, as it depends on too much variables, e.G. server capacity, database and and and.

Only thing you can do is to run a program, and see how long it took.

IF thats what you need, you shouldnt be doing anything as there are already tools in standard that do such.

E.G. ST05, SM30, or SM37 if you do it via a job or background execution.

Read only

0 Likes
622

Thanks Florian for your help, it provided me some clarity. But what shall I need to do, if I want to display an alert pop-up for any program that takes more than a certain duration of time for execution?

Read only

0 Likes
622

This does not make sense for background jobs, and for dialog processes there is a system parameter that limits the maximum allowed runtime, after which the process gets cancelled with a TIME_OUT short dump. This is usually set to 5 or 10 minutes.

Who should see this pop-up anyway, and what should be the follow-on action after seeing it?

Thomas

P.S. in the future, please use more meaningful subject lines for your posts, as most people here need "help on ABAP report"

Read only

0 Likes
622

Thanks, I was asking it in the context of background jobs. Also, will take care for using more appropriate subject in future. Your post helped me gain clarity.