Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
Not what you were looking for? View more on this topic or Ask a question