on 03-23-2008 7:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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");
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.