‎2008 Nov 12 4:34 PM
Hi Experts,
I am calling an RFC function module (Target sytem A). In case there is a communction failure, how can I know it and handling exception in the calling program. Are there any constriants that I have to take while creating an RFC (like creating exceptions)
<<removed_by_moderator>>
‎2008 Nov 12 4:36 PM
Please don't offer rewards, and find your answer in SAP online help, this topic is explained there very well.
Thomas
‎2008 Nov 12 4:47 PM
Hello,
Try adding something like this to your RFC call:
EXCEPTIONS
system_failure = 1 MESSAGE mess
communication_failure = 2 MESSAGE mess
resource_failure = 3.
Hope it helps.
Mário
‎2008 Nov 12 8:11 PM
Hi,
here´s a nice blog about RFC_VERIFY_DESTINATION by Craig Cmehil:
Best regards.
‎2008 Nov 12 8:42 PM
Hi Priyanka,
Is your call to the RFC from another system (i.e. are you using a remote-enabled RFC)? We faced this issue and handle the exception trapping at that end (a java-based app).
There is also something called RFC_PING. I found additional info: "The problem with RFC_PING is that it doesn't test authorizations. I don't know if RFC_VERIFY_DESTINATION does or not. However if you are using Trusted RFC, this test of authorization to logon is very important."
Good luck.
SL