cancel
Showing results for 
Search instead for 
Did you mean: 

Error Synchronous Bapi in Mapping

Former Member
0 Kudos

Hi,

We have a synchronous interface between a Bapi and Soap.

In the Request Message mapping I need to check if two fields in the Bapi are null, if they are then return an error to the Bapi, otherwise continue with the interface.

Is it possible to cancel a synchronous interface midway?

Thanks

Gareth

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gareth,

You may raise exception in message mapping if fields are null.

Please check these links:

http://scn.sap.com/thread/1618151

http://scn.sap.com/message/9356334

http://scn.sap.com/thread/797413

However why do you want to raise exception in PI. This can be checked while triggering BAPI in source system itself and not to execute the interface in that case.

Regards,

Beena.

Former Member
0 Kudos

Hi,

Thanks for those posts, but they all talk about raising Exceptions in message mapping. I want to be able to stop the execution of the Synchronous interface and put an error message in the response to the Bapi.

We are migrating an existing interface from a different integration platform and this is how it is handle. I don't know if this is possible in PI.

Thanks.

Former Member
0 Kudos

Hi Gareth,

I had similar requirement earlier. Please see these links:

http://scn.sap.com/thread/1001654

http://scn.sap.com/thread/1054454

I think I used BPM for this to catch system error and then mapped it to bapi response using sync-async bridge kind of scenario.

However if you can use proxy on sender side instead of BAPI you would be able to catch system error as well as application error. I think it would be much simpler than using BPM.

Regards,

Beena.