Skip to Content
0
Jun 25, 2020 at 08:49 AM

BCS_EXAMPLE_7- Attachment .xlsx file is not opened in excel.

566 Views Last edit Jun 25, 2020 at 08:55 AM 3 rev

1) BCS_EXAMPLE_7 - Copied .

2) Note - 1459896 applied as follows.

CONCATENATE '&SO_FILENAME='
'FileName' '.xlsx' INTO lv_text_line.
APPEND lv_text_line TO lt_att_head.

3) File attached to email using -

document->add_attachment(
i_attachment_type = 'XLS' "#EC NOTEXT
i_attachment_subject = 'ExampleSpreadSheet' "#EC NOTEXT
i_attachment_size = size
i_att_content_hex = binary_content

i_attachment_header = lt_att_head ).

4) E-Mail received. The .xlsx file is not opened in excel.

However the file for TEXT extension is opened as mentioned in Note - 1459896