on 11-29-2012 10:49 AM
Hi Experts,
I am doing File to EMail Scenatio, where i am using multi mapping and sending to two IB interfaces with different message types.
I am able to get Mapping correctly in ESR,but testing with end to end getting no payload.
I am not using Mail Package and not using ASMA and
TP: XIPAYLOAD
Source XML:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_Sender xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<row>
<Status>F</Status>
<PostingError>Invalid</PostingError>
<Count>0</Count>
<Number>100</Number>
</row>
<row>
<Status>P</Status>
<PostingError>Valid</PostingError>
<Count>1</Count>
<Number>200</Number>
</row>
</ns1:MT_Sender>
</ns0:Message1>
</ns0:Messages>
But and I am getting eMail XML Attachemts as below for thse two independent emails and with these data:
One XML Attachment as for Success Messages:
One XML Attachment as for Failed Messages
I need two separate emails with attachments, It is correct, But there no data.
What may the reason? Did anybody get this kind error?
How resolve this issue?
Regards,
Sreeni.
Hi Sreeni, does your mapping actually produce any output? You can check after mapping step in monitoring.
How does the source message look like at runtime? Check in monitoring before the mapping step.
The actual source file at runtime should not contain the split message header
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
This header is added during runtime. Nevertheless it has to be added when testing the mapping in ESR.
Regards, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi again,
How does the source message look like in MONI? Double click on a message and open Inbound Message ( CENTRAL ) > Payloads > MainDocument.
does your mapping actually produce any output at runtime? Double click on message in MONI and open Request Message Mapping > Payloads > MainDocument.
Regards, Martin
Hi, it looks like your source file contains the split message header, is that true?
The actual source file should not contain the split message header
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
This header is added at runtime by the integration engine and doesn't have to be added manually.
Hi Martin,
I have created XSLT Mapping as per the given below blog:
http://scn.sap.com/message/5720785#5720785 --> Reply from where it is answered by Peter Munt.
But no luck, and now i am getting the message attachement as below picture:
Regards,
Sreeni.
Can you please post your source file here? The one from the file system before it is picked up by adapter?
Does your source file contain the split message header?
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
Hi Experts,
Any other idea to reslove this issue.
I think it gener issue in PI, but i am not getting a per SDN.
I tried the same in SAP PI 7.1 and SAP PI 7.3 but in these two cases same error i faced.
Please any help. OR shall I escalate to SAP.
is this valid that much to ask SAP?
Regards,
Sreeni.
Hi Sreeni,
Please check your target message payloads at runtime, just after maaping execution, you may check it RWB as well.
Thanks,
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Experts,
I observed one more thing is that When send source test file with all records with Status 'P' only.
Even in this case it is generating two messages one with Susscess and one with Fail.
Here it should not be created Fail Message at runtime.
Any Idea to solve this issue.
Regards,
Sreeni.
Hi Guys,
As per the SAP LIbrary:
http://help.sap.com/SAPHELP_nwpi711/helpdata/en/21/6faf35c2d74295a3cb97f6f3ccf43c/content.htm
Here it says:
There is a <MessageN> element for each message schema (for each message type here). The message type <OrderItem> can occur unbounded in the message instance as a sub-element of <Message2>. The numbers specify which elements in the multi-mapping are mapped to each other.
In your mapping, always add the namespace http://sap.com/xi/XI/SplitAndMerge to the root tag.
Example of a multi-mapping:
<?xml version="1.0" encoding="UTF-8"?>
<sm:Messages xmlns:sm="http://sap.com/xi/XI/SplitAndMerge">
<Message1>
..</Message1>
<MessageN>
</MessageN>
</sm:Messages>
At runtime, the message instances are collected in an integration process and then put in a structure. Once the mapping program has been executed, they are transferred to various message instances again.
At the line which is under lined is concern here , how to add that to the root Message node?
Why because, in my payload i do not have that XML tag with those vlaues see my Target Payload:
<?xml version="1.0" encoding="UTF-8"?>
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
<ns1:MT_eMail_Success_Receiver xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<row>
</row>
</ns1:MT_eMail_Success_Receiver>
</ns0:Message1>
<ns0:Message2>
<ns1:MT_eMail_Fail_Receiver xmlns:ns1="http://sap.com/xi/XI/Mail/30"/>
</ns0:Message2>
</ns0:Messages>
Please help in this regard.
Regards,
Sreeni.
Yes, your source file should not contain the following elements:
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
this is added by the integration engine automatically.
Hi Martin,
I aggree with you but what is the solution to not to get in the source XML at runtime.
When I did Multi Mapping, automatically adding the below XML Tags:
<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">
<ns0:Message1>
What can I do to stop coming this in the source XML file?
Regards,
Sreeni.
User | Count |
---|---|
86 | |
23 | |
11 | |
9 | |
8 | |
5 | |
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.