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

Dump, because RFC connection failed

Private_Member_19084
Active Contributor
0 Likes
1,599

Hi experts,

we have a few Z-FMs which read the data from another system via RFC.

So the FM are created in the target system and we call them from our productive system.

These FMs are implemented in many programs.

Our problem is, when the target-system is not reachable (downtime, error, ...) all programs get a dump, because the rfc connection failed.

How can we avoid this dumps? (the programs should also be executable without the FM-data)

Is there a badi or exit for RFC-connections?

thx in advance

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,440

Hello

How can we avoid this dumps? (the programs should also be executable without the FM-data)

SAP has defined three [RFC exceptions|http://help.sap.com/abapdocu_702/en/abenrfc_exception.htm]: system_failure, communication_failure & resource_failure.

You'll need to implement them in your RFC to prevent the dumps.

BR,

Suhas

6 REPLIES 6
Read only

madhu_vadlamani
Active Contributor
0 Likes
1,440

Hi Christian,

Our problem is, when the target-system is not reachable (downtime, error, ...) all programs get a dump, because the rfc connection failed

This is right if there is no response form the rfc.This RFC are you using to get data or to send data.Are you maintaining exceptions handling.

Regards,

Madhu.

Read only

0 Likes
1,440

Hi,

Before your calling your Z-Fm fountion Module you have to call RFC_PING funtion module pass the respective destination name . if sy-subrc = 0 . call your z fuction module.

lv_rfc_dest = " your destiantion

CALL FUNCTION 'RFC_PING'

DESTINATION lv_rfc_dest

EXCEPTIONS

communication_failure = 1

system_failure = 2

OTHERS = 3.

if sy-subrc =0 .

call z_fm """" call your z function module

endif.

Read only

0 Likes
1,440

Hi Christian,

The RFC_PING as suggested by Abdul will only check for the availability of the Remote System, the chances are that even though the target system is available it might be short on resources or there could be an exception at the application level.

I would suggest you go ahead with Suhas' suggestion of handling the exceptions while calling your ZRFC.

Regards,

Chen

Read only

0 Likes
1,440

Many thx for so many answers!

I decided to try the solution with the exception and it runs perfect!

I'm sorry, that I've not read that F1-Help first to statement DESTINATION, because there the exceptions also explained!

Thank you again

Read only

0 Likes
1,440

HI Pamin,

Good. A long back the same issue was posted by some one and it is replied by suhas.

Regards,

Madhu.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,441

Hello

How can we avoid this dumps? (the programs should also be executable without the FM-data)

SAP has defined three [RFC exceptions|http://help.sap.com/abapdocu_702/en/abenrfc_exception.htm]: system_failure, communication_failure & resource_failure.

You'll need to implement them in your RFC to prevent the dumps.

BR,

Suhas