on 06-02-2008 2:44 PM
Hi experts,
I have file to multiple idoc scenario.sturcture of the incoming file like given below..
Header
line item
line item
..
header
line item
line item
....
.....
there is a field Company COde in Header.If that company code is not Equal to "L" then dont map that header and line items with target
now we have to raise an alert notification mail saying that "company code is wrong." we have to send a single mail for this scenario if this condition is true even many times.
i am not using ccBPM in the scenario.
how can we achieve this functionality??
Thanks in advance.
Thanks,
Rohit
Hi,
In your mapping, you need to do a RFC Lookup in your XI system to RFC "SALERT_CREATE".
This RFC will generate an alert in your XI system based on the ALERT Category you specify while calling.
For the second case where you want a single call to be made for multiple errors, create a alert rule for the alert category and select the option "suppress multiple alerts".
Let me know in case you need any further information.
Regards,
Anurag Mahendru.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Refer this blog to bundle multiple idocs.
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
After you create the custom idoc interface using the above blog,
map the root node of the idoc interface based on your condition.
put a if condition to pass a constant to the root node for the idoc.
as an else condition, raise an exception using a udf.
Create a generic alert for runtime errors in mapping, which send mails whenever there is a failure in the mapping.
http://help.sap.com/saphelp_erp2004/helpdata/en/80/942f3ffed33d67e10000000a114084/content.htm
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravi,
when the condition is not true for the first time mapping will throw an exception so whether the whole scenario will be stopped or it will continue further ?
one more thing how we will send alert notification by email.I want to send only one email for all mapping errors .
regards,
rohit
Yes, the mapping will not go further if the exception gets triggered.
i did not understand your second requirement.
say your file1 has three records.
out of which there is an invalid Company code in one record.
you have another file say file2 which has some 4 records.
one record has an error.
then how many emails should be going?
as per my approach, the email will go two times.
Regards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.