
The SAP Gateway framework provides Excel support, that is, support of XLSX.
In this case the response is not a JSON or an Atom/XML but the binary representation of an Excel file of type *.xlsx.
For entity sets the client can request the format XLSX and then retrieves an XLSX instead of a "normal" OData response.
For column headings the property labels are used. If they are initial property names are used.
Complex types are supported. The corresponding properties are shown like simple properties, that is, the table is flattened.
Entity sets for entity types that have a base type are supported.
$select is supported. Only columns as requested via $select are added. Note that $select does not support properties of complex types. But it does support complex properties "on the first level".
The headings for properties of complex types are prefixed with the label/name of the corresponding complex property.
sap:supported-formats="atom json xlsx"
The time for the XLSX generation is shown in the SAP Gateway performance trace.
The SAP Gateway Client offers $format=xlsx via the Add URI Option button. For XLSX the SAP Gateway Client shows in the response area the text "Click "Response in Browser" to display data in the right format."
Common HTTP headers (such as sap-metadata-last-modified) are returned together with the XLSX file.
Currency and quantity references are provided to the ABAP List Viewer export tool and used there to show the correct number of decimal points.
Properties with the SAP-semantic "URL" are created as "Link to URL" columns in the ABAP List Viewer export tool. The corresponding Excel cells will then contain hyperlinks.
Warnings returned by the ABAP List Viewer export tool are written into the application log. Errors returned by the ABAB List Viewer export tool are returned as HTTP 500 errors.
content-disposition: attachment; filename=Employees.xlsx