2009 Feb 16 5:43 AM
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.
2009 Feb 16 5:44 AM
2009 Feb 16 6:18 AM
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.
2009 Feb 16 6:22 AM
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?
2009 Feb 16 6:41 AM
2009 Feb 16 9:06 AM
Execution of a BDC session in background results in a job. You can find start and end time in table TBTCO afterwards.
Thomas
2009 Feb 16 5:45 AM
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
2009 Feb 16 5:45 AM
2009 Feb 16 5:46 AM
hI,
BY THE HELP OF RUNTIME ANALYSIS U CAN KNOW TIME.
Itu2019s checks program execution time in microseconds. Transaction code is se30.
Regards,
jaya
2009 Feb 16 5:50 AM
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.
2009 Feb 16 5:50 AM
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
2009 Feb 16 5:50 AM
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.
2009 Feb 16 6:21 AM
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.
2009 Feb 16 9:01 AM