cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi!

I have a RFC but sometimes i have a dump because connection problems.

How can avoid this dump? I need to use TRY CATCH statment, but has any way to get a generic exception?

Thanks!

0 Likes
View Entire Topic
Former Member

Hallo,

as you can see here http://help.sap.com/saphelp_nw74/helpdata/en/48/99b3f3ee2b73e7e10000000a42189b/content.htm, you can use the standard exception SYSTEM_FAILURE and COMMUNICATION_FAILURE to avoid RFC dump:

CALL FUNCTION 'Z_TEST'

   DESTINATION 'AAAAAAA'

   EXCEPTIONS

     system_failure        = 1

     communication_failure = 2

     OTHERS                = 3.

IF sy-subrc <> 0.

   WRITE 'Error'.

ENDIF.

Marco