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: 

RFC issue

Former Member
0 Kudos
126

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.

4 REPLIES 4

Former Member
0 Kudos
92

hi,

you can use this:

try.

call RFC......

catch CX_SY_REMOTE_CALL_ERROR.

endtry.

former_member194669
Active Contributor
0 Kudos
92

Before calling your RFC call try to use fm RFC_PING and also please check program RSRFCPIN

Former Member
0 Kudos
92

Try adding these lines to your RFC call:

CALL FUNCTION

EXPORTING

...

....

EXCEPTIONS

SYSTEM_FAILURE = 1

COMMUNICATION_FAILURE = 2.

Former Member
0 Kudos
92

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