Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

processing RFC call failure

Hi all.

When I set a nornal function module to RFC, do I need to add some extra exceptions like 'remote call failure' or something like network connection issues? If I do this, does it mean that I can prevent the program from dump?

Former Member
replied

Hi,

You can use these two extra EXCEPTIONS to capture any RFC problems:

data: lv_msgtxt type BAPI_MSG.

  CALL FUNCTION 'RFC_PING'

    DESTINATION lv_dest

    EXCEPTIONS

        COMMUNICATION_FAILURE = 1 MESSAGE lv_msgtxt

        SYSTEM_FAILURE        = 2 MESSAGE lv_msgtxt.

cheers

Paul

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question