cancel
Showing results for 
Search instead for 
Did you mean: 

Sender Mail Adapter with PayloadSwapBean

Former Member
0 Kudos

Hello Experts!

I have a Sender Mail Adapter receiving emails with attachments! I'm using PayloadSwapBean, because I have to manipulate (to do mapping) the XML attachment.

Sender Mail Adapter Configuration:

Default Interface Namespace = urn:mynamespace.com

Default Interface Name = abs_async_myInterface

swap.keyName = Content-Disposition

swap.keyName = Content-Description

swap.keyValue = attachment;filename="MailAttachment-1.xml"

swap.keyValue = MailAttachment-1

Well, my problems are:

1) Although my Default Interface Namespace is urn:mynamespace.com, sometimes the namespace that cames to SXMB_MONI is http://sap.com/xi/XI/System/Mail. In that case, an Receiver Determination error happens.

2) My XML can be the first (MailAttachment-1), the second (MailAttachment-2), the third (MailAttachment-3), or any other attachment position. Since my swap.keyValue is set to "MailAttachment-1", I'm able to pick the XML only if it is the first attachment.

Accepted Solutions (0)

Answers (2)

Answers (2)

sunil_singh13
Active Contributor
0 Kudos

Hi Julio,

Writing an Adapter Module for the same can make your task easy.

Thanks'

Sunil Singh

stefan_grube
Active Contributor
0 Kudos

Try:

swap.keyValue = MailAttachment

The PayloadSwapBean use generig values, it detects an attachment by substring also.