Application Development and Automation 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: 
Read only

RFC communction failure

Former Member
0 Likes
673

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>>

4 REPLIES 4
Read only

ThomasZloch
Active Contributor
0 Likes
487

Please don't offer rewards, and find your answer in SAP online help, this topic is explained there very well.

Thomas

Read only

Former Member
0 Likes
487

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

Read only

former_member182371
Active Contributor
0 Likes
487

Hi,

here´s a nice blog about RFC_VERIFY_DESTINATION by Craig Cmehil:

Best regards.

Read only

Former Member
0 Likes
487

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