cancel
Showing results for 
Search instead for 
Did you mean: 

Convert BAPI Return to Faults?

Former Member
0 Kudos

Hi,

For the development of Web Services, the use of Fault messages is preferred to report errors. Proxies (Java and ABAP) can return Fault messages, that in turn can be returned through the Web Services.

However, BAPI's are not able to return Fault messages. BAPI's retun a 'Return' structure containing items. <b>Is there a simple way (no BPM please) to convert these Return items of type 'E' into Fault messages?</b>

This would lead to nice web services reporting errors back as Fault messages.

Kind regards, Guy Crets

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Usually BAPI result is a part of the response from BAPI, hence result items need to be mapped to a substructure in the response message of outbound interface.

Cheers,

Naveen

Former Member
0 Kudos

To clarify: the ideal would be an option in the RFC adapter to automatically convert errors in the return message into Fault messages.

Kind regards, Guy Crets

Former Member
0 Kudos

hi,

AS of SP13 this is not possoble in XI3.0 There is no way RFC Adapter automatically convets errors to fault messages.

In fact Xi throws a hard error(Server Exceprtion) at the caller.

Naveen