2009 Apr 28 12:15 PM
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
2009 Apr 28 12:58 PM
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
2009 Apr 28 12:58 PM
Hi Nina!
You may call function modules with the clause destination!
eg.
CALL 'ZMY_FM' destination dest
importing ....
HTH.
Peter
2009 Apr 28 1:51 PM
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 onI 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
2009 Apr 28 3:26 PM
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.
2009 Apr 28 4:19 PM
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
2009 Apr 28 5:26 PM
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
2009 Apr 28 5:28 PM
HI Peter,
I think about this option but it's not good for me.
Thank You
Nina
2009 Apr 28 1:47 PM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |