cancel
Showing results for 
Search instead for 
Did you mean: 

How to handle RFC exception in XI

Former Member
0 Kudos

We have developed a proxy-> RFC scenario. But its not able to handle the RFC exception. In case of an exception the response payload is as below

-


<rfc:Y_BAPI_GET_POSTING_PERIOD.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><Name>RFC_ERROR_SYSTEM_FAILURE</Name><Text>Screen output without connection to user.</Text><Message><ID>RFC_ERROR_SYSTEM_FAILURE</ID><Number>044</Number></Message><Attributes><V1>DYNPRO_SEND_IN_BACKGROUND</V1></Attributes></rfc:Y_BAPI_GET_POSTING_PERIOD.Exception>

-


Is it correct way to get exception from RFC in such a way or the error/exception text should come in RETURN part of the RFC response?

What is the best approach or solution to handle the sync. RFC call exception in XI?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Hi,

You can create a Fault Message Type and map the RFC exception text to this.

In the interface mapping in addition to Request and response

mapping you will get an additional fault message mapping.

This will handle your exception properly.

Regards,

V.Ramya

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

Your response error message map to your RFC Return parameters in the mapping.

Thanks

Vikranth

Former Member
0 Kudos

hi,

you can define a fault message in the interface and it will be triggered if there is an exception at server application.

Reward if find useful