cancel
Showing results for 
Search instead for 
Did you mean: 

PI 7.31 single stack - mail receiver adapter - Set mail body with ASMA

0 Kudos

Hi Gurus,

I have a requirement where I need to get a flat file (xxxxx.csv) from an FTP server and send it as attachment to a specific email with subject and mail body.

This file contains inside it the information of the receiver mail so I am able to get it in my message mapping.

I was able to send the mail to the corresponding receiver, corresponding mail attachment and subject but with no body.

I was also able to send the mail to the corresponding receiver with subject and mail body but no attachment.

What I am trying to do right now is to set the mail body in the ASMA of the receiver mail adapter but I am only able to do this for subject, from, to, etc. Was anyone in the PI/PO's history able to do this? I just need to know if this is impossible so I'll try another way to design this scenario.

Any help would be appreciated.

Thanks in advanced!

Accepted Solutions (1)

Accepted Solutions (1)

manoj_khavatkopp
Active Contributor
0 Kudos

Answers (4)

Answers (4)

iaki_vila
Active Contributor

Hi Claudio,

Have you checked the Eng's scenario 3 in his blog https://blogs.sap.com/2016/03/10/stop-using-mail-package-simplify-your-mail-receiver-adapter-scenari... ?

You would need to do a java mapping, but Eng explains the scenario very well.

Regards.

0 Kudos

I finally was able to do it.

I just followed this steps:

https://archive.sap.com/kmuuid2/603a7bd8-a6a0-2e10-388b-fc9cb9dae6c4/Dynamic%20Text%20Body%2C%20Dyna...

And works great!

Thank you all for you help!

0 Kudos

Thank you Manoj but still not able to set this through ASMA.

Any other help would be appreciated.

manoj_khavatkopp
Active Contributor
0 Kudos

Have you tried using Java mapping ? where you can write outputattachment with required filename along with the body?

0 Kudos

Hi Iñaki,

Yes I saw Eng's blog but I am trying to sent body + attachment with ASMA and wondering if that is possible.

In case not then I'll try to go through another way.

Thanks for the reply!