Skip to Content
author's profile photo Former Member
Former Member

How to Raise Alerts from the fields of Mapping?

HI,

We had a very typical requirement for our client.

Scenarios is IDOC to multiple files else consider a simple file to file scenario.

Source structure contains some 5 fields and the target also remains the same 5 fields.

Assume SERNO presents in both structures.

The issue here is i need to check for a Target SERNO field should accept only numerical value, there is a possibilty of coming alphanumeric and sometimes with specialcharacter appended numeric. i have developed a udf which allows only numeric.

The mapping is getting failed if alphanumeric or special character exists in that field.

But, the client requires an alert mentioning that this mapping is failed due to the problem in Source SERNO field so that he can easily debug and resubmit those idocs.

I want to know is it possible to raise alerts at field levels.

Thanks,

--Kishore

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Feb 02, 2012 at 06:55 AM

    If you havd implemented ALERT frame work already in PI then it covers this kind of errors, if you want send alert to only this interface then create one more alert category it covers mapping errors.

    or

    you can use receiver mail adapter, in mapping level if condition faills the call receiver mail adapter,dont throw error message in mapping.

    Regards,

    Raj

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Kishore,

      In your UDF use Java functions to add custom message to Error Log/Trace and raise exception in UDF.

      Ex: A mapping exception occured while mapping SERNO to the target field.

      This will be captured by your Alert Category Container Variables which basically raise an Alert for Mapping.

      Use this to all other fields for which you want to implement such custom error messaging.

      -BR

      Praveen K

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2012 at 08:08 AM

    Hi Kishore,

    As per the requirement this scenario will fail at mapping level. You will get a failure in SXMB_MONI. Kindly create an Alert for this particular interface and mention the proper details in that. It will generate the Alert stating the error at that particular field SERNO.

    use t-code: ALRTCATDEF

    Regards,

    Nutan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 02, 2012 at 04:04 PM

    Kishore,

    maybe this blog will help you:

    https://blogs.sap.com/?p=41301

    Features: Generate customized exeptions in graphical mapping.

    Regards,

    Konrad

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.