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

Duration of the program execution

Former Member
0 Likes
1,851

Hi all,

How to find the duration of program execution?

Example:

Start date: Started date of the program.

Start time: Started time of the program.

End date : sy-datum.

End time: sy-uzeit.

Now I need the duration of this program.

Please help me to resolve this issue.

Thanks.

Hi all,

How to find the duration of program execution?

Example:

Start date: Started date of the program.

Start time: Started time of the program.

End date : sy-datum.

End time: sy-uzeit.

Now I need the duration of this program.

Please help me to resolve this issue.

Thanks.

13 REPLIES 13
Read only

GauthamV
Active Contributor
0 Likes
1,773

Use these transactions.

SE30 or ST05

Read only

Former Member
0 Likes
1,773

Hi Gautham,

I am doing BDC .just I want to update this duration of BDC in ZTABLE. Taking start date and time before BDC executed and captured end date and time after executed BDC.

Any function module available to find with parameter as follows

Start date: Started date of the program.

Start time: Started time of the program.

End date : sy-datum.

End time: sy-uzeit.

Hope now you understand my prob?

Thanks.

Read only

Sm1tje
Active Contributor
0 Likes
1,773

1. Is this a self recorded BDC, published in a report of your own?

2. Or are you doing a batch job on 'all' reports which where executed during a certain period of time?

Read only

Former Member
0 Likes
1,773

Hi,

Yes, this is my own report.

thanks.

Read only

0 Likes
1,773

Execution of a BDC session in background results in a job. You can find start and end time in table TBTCO afterwards.

Thomas

Read only

viquar_iqbal
Active Contributor
0 Likes
1,773

Hi

The ABAP Runtime Trace (SE30) - Quick and Easy

/people/siegfried.boes/blog/2007/11/13/the-abap-runtime-trace-se30--quick-and-easy

Thanks

Read only

Former Member
0 Likes
1,773

Hi,

run sql trace of the program .

Hope this resolves.

Read only

Former Member
0 Likes
1,773

hI,

BY THE HELP OF RUNTIME ANALYSIS U CAN KNOW TIME.

Itu2019s checks program execution time in microseconds. Transaction code is se30.

Regards,

jaya

Read only

Former Member
0 Likes
1,773

Hi Rajkumar,

DATA: gv_str_j TYPE i,

gv_end_j TYPE i,

gv_run_time_join TYPE p DECIMALS 2.

get RUN TIME FIELD gv_str_j.

SELECT vbak~vbeln

vbak~erdat

vbak~auart

vbak~vkorg

vbak~vtweg

vbak~waerk

vbak~kunnr

vbap~posnr

vbap~matnr

INTO TABLE gt_vbak_vbap

FROM vbak AS vbak

INNER JOIN vbap AS vbap ON vbakvbeln = vbapvbeln

WHERE vbak~vbeln IN lr_vbeln

and vbak~auart EQ p_auart

AND vbak~vkorg EQ p_vkorg

AND vbak~vtweg IN so_vtweg

AND vbap~pstyv = 'TAN'.

get RUN TIME FIELD gv_end_j.

loop at gt_vbak_vbap.

write: gt_vbak_vbap-erdat, gt_vbak_vbap-auart, gt_vbak_vbap-vkorg.

endloop.

  • Now get the runtime.

gv_run_time_join = ( gv_end_j - gv_str_j ) / 1000000 .

write:/ 'Report RunTime with join is ', gv_run_time_join, 'seconds'.

Hope this will help you.

Regards,

Phani.

Read only

Former Member
0 Likes
1,773

Hi,

If you run this program in back ground in SM37 you can find starting time and proceess ending time.

In foregraound goto se30 give program name and excute.

Regards

Md.MahaboobKhan

Read only

Former Member
0 Likes
1,772

Hi Rajkumar,

DATA: gv_str_j TYPE i,

gv_end_j TYPE i,

gv_run_time_join TYPE p DECIMALS 2.

get RUN TIME FIELD gv_str_j.

SELECT vbak~vbeln

vbak~erdat

vbak~auart

vbak~vkorg

vbak~vtweg

vbak~waerk

vbak~kunnr

vbap~posnr

vbap~matnr

INTO TABLE gt_vbak_vbap

FROM vbak AS vbak

INNER JOIN vbap AS vbap ON vbakvbeln = vbapvbeln

WHERE vbak~vbeln IN lr_vbeln

and vbak~auart EQ p_auart

AND vbak~vkorg EQ p_vkorg

AND vbak~vtweg IN so_vtweg

AND vbap~pstyv = 'TAN'.

get RUN TIME FIELD gv_end_j.

loop at gt_vbak_vbap.

write: gt_vbak_vbap-erdat, gt_vbak_vbap-auart, gt_vbak_vbap-vkorg.

endloop.

  • Now get the runtime.

gv_run_time_join = ( gv_end_j - gv_str_j ) / 1000000 .

write:/ 'Report RunTime with join is ', gv_run_time_join, 'seconds'.

Hope this will help you.

Regards,

Phani.

Read only

dev_parbutteea
Active Contributor
0 Likes
1,772

Hi,

Start date: Started date of the program. --> save sy-datum in a variable lv_start_date

Start time: Started time of the program.--> save sy-uzeit in a variable lv_start_time

End date : sy-datum.--> save sy-datum in a variable lv_end_date

End time: sy-uzeit.--> save sy-uzeit in a variable lv_end_time

duration = difference between lv_start_time and lv_end_time.

Regards.

Read only

Former Member
0 Likes
1,772

use se30 and st05

Regards