Skip to Content
avatar image
Former Member

Alert for mapping problem

Hello,

I have XML file to IDOC scenario.

I want to know if is possible to configure alert for the mapping problem in this scenario.

How can I receive alert if I have a problem with XML structure?

Elad

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 23, 2008 at 07:44 AM

    HI,

    What type of error u want to raise.

    Just go through the below link for more details: Try to raise an alert through Function module. See the first link for the same.

    U need to pass the alert message along with other parameters to SALERT_CREATE FM to raise the alert.

    Alert:

    For raising an alert you need to first configure the alert please follow the below weblog written by Michal Krawczyk

    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

    Configuration steps are: go to transaction ALRTCATDEF

    1) Define Alert Category

    2) Create container elements which are used for holding an error messages.

    3) Recipient Determination.

    Alert can be triggered in different ways.

    1) Triggering by Calling a Function Module Directly.

    /people/bhavesh.kantilal/blog/2006/07/25/triggering-xi-alerts-from-a-user-defined-function

    2) Triggering by Calling a Function Module in the Workplace Plug-In.

    3) Triggering with an Event Linkage.

    4) Triggering with the Post Processing Framework (PPF) or Message Control (MC)

    5) Triggering from a Workflow.

    6) Triggering from CCMS with autoreaction.

    7) Triggering from BPM.

    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated

    /people/community.user/blog/2006/10/16/simple-steps-to-get-descriptive-alerts-from-bpm-in-xi

    8) Triggering alert by configuring a rule from RWB.

    http://help.sap.com/saphelp_nw2004s/helpdata/en/56/d5b54020c6792ae10000000a155106/content.htm

    Hope this will help you.

    Chirag

    Edited by: Chirag Gohil on Mar 23, 2008 1:15 PM

    Add comment
    10|10000 characters needed characters exceeded

    • function myudf(String a,Container container)

      {

      int i=0;

      try

      {

      i=Integer.parseInt(a);

      catch(NumberFormatException e)

      {

      throw new NumberFormatException("Not a Number");

      }

      return i;

      }

      You can write the UDF which throws NumberFormatException that triggers the Alert message in your alert inbox

      Similarly You can trigger the alert for your message by simple UDF

      <aa>sdsdsd</aa>

      <bb>

      that contains NullpointerException or RuntimeException

      or any other Exceptions

      throw new Exception("Not a valid message");

  • avatar image
    Former Member
    Mar 24, 2008 at 06:02 AM

    Hi,

    For triggering alerts try to follow the steps inthis blog

    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step

    Check for few more links:

    Alert Configuration

    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

    Alert Inbox

    http://help.sap.com/saphelp_nw04/helpdata/en/80/942f3ffed33d67e10000000a114084/frameset.htm

    Alert Notification Step-by-Step

    http://help.sap.com/saphelp_nw04/helpdata/en/49/cbfb40f17af66fe10000000a1550b0/frameset.htm

    and in case of any issues refer this thread:

    Alert configuration

    Regards,

    Nithiyanandam

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 24, 2008 at 09:08 AM

    Hi,

    You can configure the alert for this scenario.

    First go to the transaction ALRTCATDEF in your XI server.create an alert catagory there.

    to use this alert catagory you have to use BPM.

    so create an Integration Process in IR and insert a Control step where you want to throw the alert.

    In the properties of the control step choose action as Throw Alert, then specify the alert catagory you just created and the alert message you want to receive when the alert is thrown.

    Now at the runtime, the alert will be thrown(based on the condition you specified if any) to the alert inbox.

    you can access your alert inbox by executing the transaction ALRTINBOX or go to Runtime Workbench>Alert Inbox. where you can see the alert message.

    Reward points if helpful.

    --Sankar Choudhury

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello,

      My scenario without BPM.

      The alert triggered OK but I Cannot succeed to receive only one message per problem.

      I sent wrong file and I received in mail box more then 200 messages.

      Any Idea?

      Elad