07-04-2006 9:58 AM
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.
07-04-2006 10:01 AM
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
07-04-2006 10:11 AM
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.