avatar image
Former Member

No data in attachment in File to Mail Interface

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Jul 04, 2017 at 12:44 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 04, 2017 at 12:18 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2017 at 06:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

Skip to Content