cancel
Showing results for 
Search instead for 
Did you mean: 

Mail Sender Adapter - Attachment Handling

Former Member
0 Kudos

Hello,

I 'm using XI 3.0 SP 14.

I have problems with my Mail-Sender-Adapter.

The mails, I fetch, have an xml-attachment which

represents an IDOC-structure (ORDERS.ORDERS05).

I want to sent this attachment as payload to an SAP-System.

The problem is now, that I have 2 Payloads (SXMB_MONI).

One for the normal email-body and one for my original

xml-attachment. See below:

- <SAP:Payload xlink:href="cid:payload-821be0e06e3811da81ec005056005497@sap.com">

<SAP:Name>MailMessage</SAP:Name>

<SAP:Description>mail message</SAP:Description>

<SAP:Type>Application</SAP:Type>

</SAP:Payload>

- <SAP:Payload xlink:href="cid:payload-821be0e16e3811dab001005056005497@sap.com">

<SAP:Name>MailAttachment-1</SAP:Name>

<SAP:Description>mail attachment</SAP:Description>

<SAP:Type>ApplicationAttachment</SAP:Type>

</SAP:Payload>

</SAP:Manifest>

</SOAP:Body>

The XI Runtime Workbench (SXMB_MONI) takes (in my case)

the wrong one (email-body-attachment) and gives me

an parsing error. (Error occurs at my IDOC-Receiver-Adapter)

Now my question:

Can I remove the email-body-attachment, so that

the further processing works with my xml-attachment?

Or how can I resolve my problem.

best regards

Marcel Reichert

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

Hi Marcel,

use the PayloadSwapBean module to get the attachment as main payload.

http://help.sap.com/saphelp_nw04/helpdata/en/2e/bf37423cf7ab04e10000000a1550b0/frameset.htm

As parameters use:

swap.keyName = payload-name

swap.keyValue = MailAttachment-1

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

I was quite near at the solution. I had already integrated the Swap-EJB, but I did something wrong

with the parameters. I used "keyName" instead of

"swap.keyName". Silly mistake!!!

Now it works! Thank you very much!

Marcel

Answers (0)