Skip to Content
Former Member
May 14, 2007 at 07:07 PM

How to send only one (of several) attachment from a receiver email adapter?


Hi all,

I have been working with the SAP XI email adapter for some time and now I encountered the following challenge:

I am receiving a message via email from a partner, call some modules which lead to the generation of 5 attachments in total for the incoming message.

I then map the MainDocument to a CONTRL message and return it to the sender using the dynamic parameters of both the sender and the receiver email cc.

I am filling these parameters inside the message mapping; so far I am not using the mailpackage xsd (the only things out of the ordinary are checked boxes for "use adapter specific parameters", "variable transport" and "keep attachments").

My problem is that the email receiver cc now generates an email with 5 attachments when I need it to add only the CONTRL (aka MainDocument) as attachment to this email.

Do you know if there is a way to tell the receiver cc to only use one attachment (or to remove attachments from the original message, f.ex. inside the message mapping)?

Thanks and cheers!