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 for RFC

Former Member
0 Likes
480

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

2 REPLIES 2
Read only

Former Member
0 Likes
401

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.

Read only

Former Member
0 Likes
401

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