Skip to Content
0
Oct 31, 2012 at 10:53 PM

Dynamic naming of attachments in ABAP mapping

70 Views

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%20Received%20Mails%20with%20ASMA%20and%20without%20using%20mail%20package

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