cancel
Showing results for 
Search instead for 
Did you mean: 

Getting eMail Receiver attachment without Payload Data

former_member201264
Active Contributor
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

former_member201264
Active Contributor
0 Kudos

Hello Martine,

Could you please explain me how to resolve this clearly.

Regards,

Sreeni.

former_member201264
Active Contributor
0 Kudos

Hi Experts,

I have mapping as below:

1. Message Mapping Test:

MONI Results as below:

But Actual EMail Receiver Attachments as below:

Please let me  know what may the issue?

Regards,

Sreeni.

Former Member
0 Kudos

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

former_member201264
Active Contributor
0 Kudos

Hi Martin,

Please see the below source message from RWB:

Also see this message from MONI:

I can not see my target message in MONI and RWB. Please let me know any other way to check target message in PI runtime. The two available one from the same as above.

Rregards,

Sreeni.

Former Member
0 Kudos

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.

former_member201264
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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>

former_member201264
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Can you please post your source file here? The one from the file system before it is picked up by adapter?

Thanks

Answers (1)

Answers (1)

sandip_hole
Participant
0 Kudos

Hi Sreeni,

Please check your target message payloads at runtime, just after maaping execution, you may check it RWB as well.

Thanks,

Sandip

former_member201264
Active Contributor
0 Kudos

Hi Sandip,

Could you please observer the above screenshots from MONI and RWB.

I have checked there but I can not see target payload either in MONI or in RWB.

Please give me the path to how to see the target Message payload.

Regards,

Sreeni.

former_member201264
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Sreeni,

I think your IE config (SXMB_ADM) is not configured to show all the pipeline step. Please check the SXMB_ADM integration engine configuration and correct the setting to see all the pipeline steps.

Regards,

Arindam

former_member201264
Active Contributor
0 Kudos

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.

Namespace in Multi-Mapping

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.

former_member201264
Active Contributor
0 Kudos

Hi Guys,

Any  Idea please.

Regards,

Sreeni.

Former Member
0 Kudos

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.

former_member201264
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

So your source file does not contain this header? When I write source file, I mean the file in the file system (I don't refer to the message version in the integration server).