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

RFC Destination Active

Former Member
0 Likes
851

Hi All,

I have a requirement to access tables in another System ex. ST2 - ST8.

I am making use of RFCs. using Destination Key word and Destination name.

Is there a way to check programatically if the connection is active so that there will be no dumps thrown when I use RFC with Destination.

-Srihari.

Hi All,

I have a requirement to access tables in another System ex. ST2 - ST8.

I am making use of RFCs. using Destination Key word and Destination name.

Is there a way to check programatically if the connection is active so that there will be no dumps thrown when I use RFC with Destination.

-Srihari.

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
715

Use RFC_PING or similar RFC enabled FM.

(Also use some CATCH or manage return code to prevent dumps)

Regards,

Raymond

Read only

Ulrich_Schmidt1
Product and Topic Expert
Product and Topic Expert
0 Likes
715

Hi Shihari,

as Raymond already said, calling RFC_PING and catching the EXCEPTIONS SYSTEM_FAILURE and COMMUNICATION_FAILURE should do the trick. (By the way, you should always catch these two EXCEPTIONS also in the "real" function calls. Then you can exit gracefully with a meaningfull error message in case of network problems.)

An alternative solution is to call the FM RFC_VERIFY_DESTINATION with DESTINATION = 'name of your destination' and catch its exceptions.

Best Regards, Ulrich