/scripts/ahub.form.attachments.js
0

No data in attachment in File to Mail Interface

Jul 04, 2017 at 12:13 PM

74

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Iñaki Vila Jul 04, 2017 at 12:44 PM
0

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-scenarios/

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.

Share
10 |10000 characters needed characters left characters exceeded
Evgeniy Kolmakov Jul 04, 2017 at 12:18 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Siva H Jul 04, 2017 at 06:01 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Skip to Content