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

Exiting from RFC does not refresh global variables

0 Likes
767

hello gurus,

i am a little confused about a behaviour and wanted to know the reasons. just playing around i was calling a RFC twice in my report. that rfc in turn calls a nested set of APIs and deep down the call within the call, in one of the API there are some global variables which are filled, the problem is that when i go into the RFC the second time the global variables were not refreshed, they had the same old data. shouldn't they be refreshed as soon as the rfc call is over. is there any way to refresh it other than explicitly calling refresh in the api (i can not change the api).

Regards

Saurabh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
679

Saurabh,

At the end of each RFC call you need to call fm RFC_CONNECTION_CLOSE

Thanks

Bala Duvvuri

hello gurus,

i am a little confused about a behaviour and wanted to know the reasons. just playing around i was calling a RFC twice in my report. that rfc in turn calls a nested set of APIs and deep down the call within the call, in one of the API there are some global variables which are filled, the problem is that when i go into the RFC the second time the global variables were not refreshed, they had the same old data. shouldn't they be refreshed as soon as the rfc call is over. is there any way to refresh it other than explicitly calling refresh in the api (i can not change the api).

Regards

Saurabh

2 REPLIES 2
Read only

Former Member
0 Likes
680

Saurabh,

At the end of each RFC call you need to call fm RFC_CONNECTION_CLOSE

Thanks

Bala Duvvuri

Read only

0 Likes
679

thnx bala