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: 

Prevent a dump after a RFC call

Former Member
0 Kudos

Hello.

I created a function group wich is used in a program through a RFC call.

I'm trying to prevent a dump of the program, in case the RFC can't reach his destination for example.

How can i do that ? Is it in the exception of the function or do you have other solutions ?

Thanks for the help.

2 REPLIES 2

FredericGirod
Active Contributor
0 Kudos

Hi,

did you manage the Exceptions of the function ?

Did you check if there is a CATCH option to the function ?

(CATCH .. ENDCATCH prevent the dump ..)

Rgd

Frédéric

Former Member
0 Kudos

Hi helder,

1. we have to manually add the code/lines

for exceptions, almost in all RFC calls.

<b>(THEN IT WON'T GIVE RUN TIME ERROR)</b>

2.

EXCEPTIONS

SYSTEM_FAILURE = 1

COMMUNICATION_FAILURE = 2

3 just copy paste

report abc.

CALL FUNCTION 'GUI_RUN' DESTINATION 'ABC'

EXPORTING

COMMAND = 'XYZ'

  • PARAMETER =

  • CD =

  • IMPORTING

    • RETURNCODE =

EXCEPTIONS

SYSTEM_FAILURE = 1

COMMUNICATION_FAILURE = 2

.

regards,

amit m.