Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

processing RFC call failure

Former Member
0 Kudos

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?

1 ACCEPTED SOLUTION

paul_bakker2
Active Contributor
0 Kudos

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

2 REPLIES 2

paul_bakker2
Active Contributor
0 Kudos

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 Kudos

Thank you, it's helpful.