Skip to Content
author's profile photo Former Member
Former Member

Sending .xlsx file from ABAP

Hi Experts,

How can we send .XLSX file from ABAP.

I have done as suggested in note 1459896 but it's not working.

I have added the header table with such value

concatenate '&SO_FILENAME=' lv_filename into lv_text_line.

append lv_text_line to lt_att_head.


passing header table to


lo_document->add_attachment( exporting i_attachment_type = 'XLS'

i_attachment_subject = 'AttachmentFilename'

i_attachment_size = lv_size

i_attachment_header = lt_att_head

i_att_content_hex = binary_content ).

but when I try to open it in SOST it says," file format or extension is not valid " .

Do you think if I send thsi mail to outlook it will work. ?

Thanks

Willi

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Posted on Jul 10, 2014 at 07:12 PM

    Hi Willi,

    I had same problem... The solution was work with extension ".XLS", because the structure that keep the extension only support 3 positions. For example.... If the extension is XLSX, so cut to XLS, this is the reason for the message "file format or extension is not valid"

    Regards,

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 10, 2014 at 10:11 PM

    Hi All,

    Please check note 1459896 before replying it says it is possible.

    Its well known that it takes three character type only but we need to send .XLSX that is the requirement.

    Please see if anyone has able to send XLSX file through ABAP programs.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.