cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic naming of attachments in ABAP mapping

krishg
Active Participant
0 Kudos

I am following the wiki link to give a dynamic name for the attachment and it worked if there were no attachments and the payload was successfully converted to attachment and mail was received with dynamic attachment name.

http://wiki.sdn.sap.com/wiki/display/ESOAInfrastructure/Dynamic%20Email%20Attachment%20name%20for%20...

We have a additional requirement to also fill the body of email with pre-defined content. If I create a pre-defined content as another attachment and use payload swap bean to swap this attachment to application payload, I get an email with pre-defined content and randomly generated attachment name.

Unfortunately, the payload content is transformed to 'adfdfsrs.dat' file (randomly generated file name). Is there any options to use ASMA (and not mail package) to achieve the above functionality. We are on PI 7.1

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Krish,

Sugata's suggestion below might just do the trick with a bit of adjustment:

http://scn.sap.com/docs/DOC-33036

Regards, Trevor