‎2008 Nov 27 5:58 AM
Dear All,
I want to get the runtime taken by the RFC or BAPI to execute. how I code in the RFC so that I get the runtime of RFC..
thanx
‎2008 Nov 27 6:02 AM
HI,
Take two variable in the FM for time.
Assign sy-uzeit to var1 at start of the FM and assign sy-uzeit as last line of the FM.
ouptut those varibles. it will give you the runtime taken by FM.
‎2008 Nov 27 7:09 AM
Hi
use the "get run time" statement to calculate it.
data itab TYPE TABLE OF sflight.
data: t1 type i,
t2 type i,
res type i.
get RUN TIME FIELD t1.
select * FROM sflight
INTO TABLE itab.
get RUN TIME FIELD t2.
res = t2 - t1.
write: res.
the result will be the time taken in execution of the select query.
insert get runtime statement in the beginning and end of your RFC and get the result as their difference.
Thanks
Vishal kapoor