Skip to Content
avatar image
Former Member

RFC Destination Active

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Oct 20, 2015 at 08:57 AM

    Use RFC_PING or similar RFC enabled FM.

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

    Regards,

    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 14, 2015 at 07: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

    Add comment
    10|10000 characters needed characters exceeded