cancel
Showing results for 
Search instead for 
Did you mean: 

Alert for mapping problem

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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:

Regards,

Nithiyanandam

Former Member
0 Kudos

Hello,

I succeed to trigger alert message but now I receive in any error lots of lots of messages.

How I can receive only one message per error.

Elad

Former Member
0 Kudos

hi,

try giving "Max no. of dels" =1 --while defining alert categories.

thanx

latika.

Former Member
0 Kudos

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

😎 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

Former Member
0 Kudos

Hello Chirag,

Thank you for your answer.

My question is how can I received alert for file problem

For example my XML file is:

<aa></aa>

<bb></bb>

<cc></cc>

I received file with wrong structure:

<aa>sdsdsd</aa>

<bb>

For this case I want to receive alert

Elad

Edited by: Elad Peleg on Mar 23, 2008 11:22 AM

Former Member
0 Kudos

Hi Elad,

You can choose alert category (Create Alert Category) under Alert-Configuration and can configure the message -oriented alerts with rules. But you should have authorization of the role SAP_XI_ADMINISTRATOR.

Regards,

Praveen

Former Member
0 Kudos

Hello Praveen,

Can you bring me more details?

Elad

GabrielSagaya
Active Contributor
0 Kudos

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");