<?mso-application progid="Excel.Sheet"?> as the first line SAP generates automatically, and then I add the first element "Workbook". My code: TYPE-POOLS: abap. TYPES: BEGIN OF xml_line, data(256) TYPE x, END OF xml_line. CONSTANTS c_encoding TYPE string VALUE 'UTF-8'. DATA: o_...