Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

  • Posted on 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.