cancel
Showing results for 
Search instead for 
Did you mean: 

How to map BAPI runtime exception to a fault message - XSD?

Former Member
0 Kudos

Hi guys,

I have a problem of finding a proper way how to map runtime exception coming from backend BAPI to a fault message.

What I receive from backend is as follows:

-


cut -


- <rfc:BAPI_XXX.Exception xmlns:rfc="urn:sap-com:document:sap:rfc:functions">

<Name>RFC_ERROR_SYSTEM_FAILURE</Name>

<Text>Access via 'NULL' object reference not possible.</Text>

- <Message>

<ID>00</ID>

<Number>341</Number>

</Message>

- <Attributes>

<V1>OBJECTS_OBJREF_NOT_ASSIGNED</V1>

</Attributes>

</rfc:BAPI_XXX.Exception>

-


cut -


You can imagine, there is nothing in the Exceptions tab of this BAPI. However, I want to find a proper way to add fault message definition for the above, and map it to some response to the caller, otherwise I'll get the NO_MAPPINGPROGRAM_FOUND error (since there is no mapping existing from the Fault message to some other type returned to the caller).

Could you please help me out how to figure out the XSD of the above BAPI runtime exception..?

Thanks,

Lalo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check the folowing blog:

RFC/BAPI Exceptions Handling in SAP NetWeaver XI

/people/venu.v5/blog/2009/08/05/rfcbapi-exceptions-handling-in-sap-netweaver-xi

Regards

Liang

Answers (0)