Skip to Content

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

handle timeout exception in rfc call

Dear SAP Experts,

I have been searching for a while and could not find a satisfactory answer to my problem.

I use SAP - CRM and call other SAP and non-SAP systems via RFC.

I need to handle all exceptions, otherwise WEB UI displays a full page exception details, which is unacceptable on a production system.

I have the following piece of code:

 CALL FUNCTION FUNCTION_NAME DESTINATION DEST
    EXPORTING
      S_IMPORT              = INPUT_DATA 
    IMPORTING
      S_EXPORT              = OUTPUT_DATA
    EXCEPTIONS
      SYSTEM_FAILURE        = 1  MESSAGE err_msg " catch system failure
      COMMUNICATION_FAILURE = 2  MESSAGE err_msg " catch communication errors
      OTHERS                = 99.                " catch everything else

It handles most of exceptions, however, it cannot process timeouts. Is there a way to handle timeout in ABAP RFC call? Is timeout exception uncatchable? If so is there a way around?

Can you please suggest some solution as I am running out of ideas.

Regards,

Dominik

Former Member
Not what you were looking for? View more on this topic or Ask a question