Skip to Content
avatar image
Former Member

How to capture the error in message mapping in container variable

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.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Sep 24, 2012 at 01:45 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 24, 2012 at 02:27 PM

    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,

    Add comment
    10|10000 characters needed characters exceeded