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

Open RFC connection

Former Member
0 Likes
2,088

Hi ,

HI ,

I had program that call to 8 RFC with destination between to systems,

there is commend or way in Abap to open the connection in the beginning of the program and close it when it end.

I now that in java there is option to do that.

Best regards

Nina

1 ACCEPTED SOLUTION
Read only

Peter_Lintner
Participant
0 Likes
1,519

Hi Nina!

You may call function modules with the clause destination!

eg.

CALL 'ZMY_FM' destination dest

importing ....

HTH.

Peter

Hi ,

HI ,

I had program that call to 8 RFC with destination between to systems,

there is commend or way in Abap to open the connection in the beginning of the program and close it when it end.

I now that in java there is option to do that.

Best regards

Nina

7 REPLIES 7
Read only

Peter_Lintner
Participant
0 Likes
1,520

Hi Nina!

You may call function modules with the clause destination!

eg.

CALL 'ZMY_FM' destination dest

importing ....

HTH.

Peter

Read only

0 Likes
1,519

Hi Peter,

I already do that but the problem is that for every RFC I call with destination and have many call to the connection, I want to know if there is a way to do that in one time.

What i do now in the program is :

CALL FM 'ABC'
DESTINATION dest

CALL FM 'ABCD'
DESTINATION dest

CALL FM 'ABCDE'
DESTINATION dest

.....so on

I want to avoid the different call's and (if there is way in abap) open the connection in the start of the program and close it at the end.

BR

Nina

Edited by: Nina C on Apr 28, 2009 3:11 PM

Read only

0 Likes
1,519

ABAP doesn't provide this functionality for (synchronous) RFC calls. So for every new call a new connection will be opened and closed (implicitely).

It would be an option to create a new RFC in your remote system, in which (maybe even depending on some parameters) you call all these RFC's in the same system (so without the DESTINATION) at once.

Read only

0 Likes
1,519

Hi Nina!

You may create one z-function module, which calls all the other function modules.

Then call this z-function module with the destination option.

Kind regards

Peter

Read only

0 Likes
1,519

Hi Micky ,

u write:

It would be an option to create a new RFC in your remote system, in which (maybe even depending on some parameters) you call all these RFC's in the same system (so without the DESTINATION) at once.

I am not sure that I got u,can u elaborate on this issue please.

BR

Nina

Read only

0 Likes
1,519

HI Peter,

I think about this option but it's not good for me.

Thank You

Nina

Read only

Former Member
0 Likes
1,519

Hi Nina,

You don't have to bother with the opening and closing of the connections. It is made automatically in ABAP. You just have to place the RFC call where you need it.

Krisztian