cancel
Showing results for 
Search instead for 
Did you mean: 

How to capture the error in message mapping in container variable

Former Member
0 Kudos

Hi,

    

      I am working on File To IDoc Scenario using BPM. I need to capture the message mapping error in container variable and use this container variable in

BPM. Is this possible? If yes, how do I achieve this?

Thanks & Regards,

Deepthi Premnath.

Accepted Solutions (0)

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Deepthi,

You could use the alert monitoring for your purpose.

This Michal Krawczyk's blog explains how to set up alerts for message mappings errors: http://scn.sap.com/community/pi-and-soa-middleware/blog/2005/09/09/xi-alerts--step-by-step

Regards,

Former Member
0 Kudos

Hello.

You can't catch any error that occurs.

You can catch an exception from a UDF - by writing a try-catch phrase in the body of the UDF and returning the exception's string in the result.

If you know what the fault message will look like - you can use the fault message type:

http://help.sap.com/saphelp_nwpi711/helpdata/en/48/5946db5f693912e10000000a42189b/frameset.htm

Other errors will have to be looked at.

You need to use an exception branch in the BPM, and raise the exception in case a system error occurs in the operation mapping.

Good luck,

Imanuel Rahamim.