Application Development 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: 

RFC Destination Active

Former Member
0 Kudos

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

raymond_giuseppi
Active Contributor
0 Kudos

Use RFC_PING or similar RFC enabled FM.

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

Regards,

Raymond

Ulrich_Schmidt
Product and Topic Expert
Product and Topic Expert
0 Kudos

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