cancel
Showing results for 
Search instead for 
Did you mean: 

Using Attachments in the Email Adapter

Former Member
0 Kudos

Hi,

I'm using an email adapter(Sender - XIPayload) to send message to XI. It was working fine when my mail content was the XML messsage. But now i have to use the content of an attachment file to do the mapping. The attachment is an XML file. I have checked the Keep attachments option and now i can see that the payload contains two sections. One is the mail content and the attachment content. But the mapping fails. How can i specify that the content of the attachment is to be used for mapping? Can somebody give some inputs on how to achieve this?

Thanks,

Sandeep

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Sandeep,

To use attachments in mail adapter, just do the following things:

- Set the Keep Attachments indicator.

- And you use the PayloadSwapBean module to swap the application payload with one of the attachments.

Please also go thru the following links:

http://help.sap.com/saphelp_nw04/helpdata/en/6b/4493404f673028e10000000a1550b0/content.htm

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

Regards,

abhy

bhavesh_kantilal
Active Contributor
0 Kudos

Hi Sandeep,

For mail attachments, while configuring your mail adapter, all you have to do is select the option KEEP ATTACHMENTS..!! and you will get your attachments in your mail.

Hope this helps,

Regards,

Bhavesh

MichalKrawczyk
Active Contributor
0 Kudos

Hi Bhavesh,

please read the posts more carefully he already did that:

>>>>I have checked the Keep attachments option and now i can see that the payload contains two sections.

Regards,

michal

moorthy
Active Contributor
0 Kudos

Hi Sandeep,

Please go thru following blog.

https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken] [original link is broken]

/people/pere.diaz/blog/2005/07/14/broadcasting-reports-via-mail-with-pdf-attachment

Regards,

Moorthy

MichalKrawczyk
Active Contributor
0 Kudos

Hi Sandeep,

sure you can use the attachment very easily

just have a look at my weblogs which describes it:)

/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step

Regards,

michal

Former Member
0 Kudos

Hi Michal,

But I'm not able to see the Module Key column Coulmn in my adapter's module tab. Even the Parameter Name and Parameter Value fields are not visible. In my mail adapter's module tab, there is only one row and three columns as follows.

Number Module Name

1 localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean

Type

Local Enterprise Bean

Could you help me?

Thanks,

Sandeep