cancel
Showing results for 
Search instead for 
Did you mean: 

Proxy to Mail Scenario with CSV file as attachment

deepika_raikode
Explorer
0 Kudos

Hi Experts,

I have a scenario where PI picks the xml file from ECC and sends it across to third party via an SFTP adapter after performing content conversion for xml file to csv file.

Now I want to send the same CSV file to an intended mail recipient. So, I configured a mail adapter by ticking the keep attachments check box and used Message Transformation Bean to transform the payload, but still I am getting the xml file as attachment instead of CSV file. Please provide your valuable inputs for solving the issue.

Thanks in advance.

Best Regards,

Deepika

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Deepika,

Very simple thing to do is to use module  localejbs/AF_Modules/MessageTransformBean

and use parameters

1. Transform.ContentDescription with value Outmail

2. Transform.ContentDisposition with value attachment;filename="<filename>.<extension>"

Here you can set mail attachment by any filename and extension. Hope this helps you.

Regards,

Kavita

naveen_chichili
Active Contributor
0 Kudos

Deepika,

Below document would help you to change the file extension.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6d967fbc-0a01-0010-4fb4-91c6d38c5...

Thanks,

Naveen.

former_member181985
Active Contributor
0 Kudos

Hi Deepika,

Copy/Paste module sequence used from your mail comm. channel

Best Regards,

Praveen Gujjeti