10-20-2015 7:59 AM
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.
10-20-2015 9:57 AM
Use RFC_PING or similar RFC enabled FM.
(Also use some CATCH or manage return code to prevent dumps)
Regards,
Raymond
12-14-2015 7:54 PM
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