Export table
Read an ALV grid or a classic table control into a table, scrolling through all rows.
Command in the SAP GUI toolkit · id ooa.sap/export_table · 9 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| ID | String | Yes | Scripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART. | |
| Maximum rows | Number | No | 5000 | Safety limit. |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
| CSV path | File | No | Also save the rows to this CSV file; nothing is saved when empty. | |
| Encoding | String | No | UTF-8 | Character encoding of the CSV file. |
| Include header | Boolean | No | true | Write the column titles as the first CSV line. |
| Append | Boolean | No | false | Add to the end of an existing CSV file instead of replacing it (no header is added to a non-empty file). |
| Delimiter | String | No | , | Separator between CSV values. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Table content with the column titles as names. |
| count | Number | Number of rows read. |
| path | File | The CSV file written, when csv_path was given. |