cancel
Showing results for 
Search instead for 
Did you mean: 

No data in attachment in File to Mail Interface

0 Kudos

Hi,

I have to send a file as an attachment through email and attachment name should be dynamic and which convert it into ".xlsx" format(in mail attachment file should be .xlsx formate) . I am following this blog

https://wiki.scn.sap.com/wiki/display/XI/Dynamic+Email+Attachment+name+for+Received+Mails

I am getting the dynamic attachment name but I am not able to get any data in the attachment ie. on opening the attachment there is no data in it and i want to convert the file .txt to .xlsx. Please guide me in correcting this error.

Thanks,

Siva

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi everyone,

Thanks for your reply, by using UDF and few blogs reference we resolved the issue.
https://wiki.scn.sap.com/wiki/display/XI/Dynamic+Email+Attachment+name+for+Received+Mails
https://blogs.sap.com/2015/03/23/read-input-text-content-into-a-field-using-udf/comment-page-1/

Once again thanks for quick respond to everyone.

Thanks,

Siva

iaki_vila
Active Contributor
0 Kudos

Hi Siva,

That wiki is a bit obsolete, check Eng's blog better:

https://blogs.sap.com/2016/03/10/stop-using-mail-package-simplify-your-mail-receiver-adapter-scenari...

On the other hand you should to divide your problem in two:

1. The first goal could be to send the txt file in attachment with the all the data and the name that you want.

2. Convert the txt file to xslx. Follow Eugeny recommendation, you can find any example in SCN.

Regards.

former_member190293
Active Contributor
0 Kudos

Hi Siva!

In case you need to convert plain text file to Excel file you should use java mapping or adapter module to perform such conversion.

Regards, Evgeniy.