Skip to main content

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​

InputTypeRequiredDefaultWhat it is
IDStringYesScripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART.
Maximum rowsNumberNo5000Safety limit.
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
CSV pathFileNoAlso save the rows to this CSV file; nothing is saved when empty.
EncodingStringNoUTF-8Character encoding of the CSV file.
Include headerBooleanNotrueWrite the column titles as the first CSV line.
AppendBooleanNofalseAdd to the end of an existing CSV file instead of replacing it (no header is added to a non-empty file).
DelimiterStringNo,Separator between CSV values.

Outputs​

OutputTypeWhat it is
tableTableTable content with the column titles as names.
countNumberNumber of rows read.
pathFileThe CSV file written, when csv_path was given.