05-12-2015 3:41 AM
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?
05-12-2015 4:27 AM
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
05-12-2015 4:27 AM
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
05-12-2015 4:37 AM