Development resources, articles, tutorials, code samples, tools and downloads for SAP HANA and ABAP, HANA Database, SQLScript, SAP UI5, Screen Personas, Web Dynpro, Workflow
ABAP Tutorial - Upload SAP Data to Excel Spreadsheet using xxl_simple_api Function Module
ABAP developers use the function modules XXL_FULL_API and XXL_SIMPLE_API to export SAP data to EXCEL spreadsheet file. xxl_simple_api function module calls the xxl_full_api with less configuration and parameters.
Yet the ABAP API xxl_simple_api is still very sufficient in many cases and is frequently used in ABAP codes by developers.
For more information about the xxl_simple_api, ABAP developers can refer to SAP Help documentation at xxl_simple_api.
Here is the ABAP example code used to export SAP data to Excel in spreadsheet format using the XXL_SIMPLE_API function module call.
When you execute the above ABAP report, first the following screen will be displayed
You select the Table option rather than the Pivot table option and press Enter key to continue with the next screen.
The only available option seems to be Microsoft Excel. Press Enter button to continue.
And in the above screenshot you can see the SAP TPAR table data exported to Excel using the ABAP function module xxl_simple_api
As you can see in the screenshot if you "Save the data in the spreadsheet" the SAP data export to Excel spreadsheet file format will be completed successfully.