2008 Jul 09 2:35 PM
in RFC when the destination server is not available then it will give dump can we able to avoid the dump or can we able to catch the dump in the table and use it or is there any oss notes which will stop dumping.
2008 Jul 09 2:41 PM
hi,
you can use this:
try.
call RFC......
catch CX_SY_REMOTE_CALL_ERROR.
endtry.
2008 Jul 09 2:43 PM
Before calling your RFC call try to use fm RFC_PING and also please check program RSRFCPIN
a®
2008 Jul 09 2:51 PM
Try adding these lines to your RFC call:
CALL FUNCTION
EXPORTING
...
....
EXCEPTIONS
SYSTEM_FAILURE = 1
COMMUNICATION_FAILURE = 2.
2008 Jul 09 3:04 PM
Try this, you can display the error message also
DATA l_oref TYPE REF TO cx_root.
data p_text type string.
TRY.
CALL FUNCTION '----
'. " remote function call
CATCH CX_SY_REMOTE_CALL_ERROR INTO l_oref.
p_text = l_oref->get_text( ).
ENDTRY.
Look at the dump which you got and ig it is not having the exception CX_SY_REMOTE_CALL_ERROR, replace that exception in catch.
P_text contains the exception description