Skip to main content

Read table

Read rows of an SAP table or view with RFC_READ_TABLE: chosen fields, a WHERE condition in ABAP syntax and a row limit; values come back as text.

Command in the SAP BAPI toolkit · id ooa.sap_bapi/read_table · 6 inputs (1 required), 2 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
TableStringYesSAP table or view name.
FieldsListNoFields to read, e.g. ["MATNR", "MTART"]; all fields when empty (only for narrow tables).
WhereStringNoWHERE condition in ABAP Open SQL syntax.
Maximum rowsNumberNo1000Most rows to read (0 = no limit).
Skip rowsNumberNo0Rows to skip first, for reading in pages.
SessionStringNosapSession name; one SAP logon per session.

Outputs​

OutputTypeWhat it is
tableTableThe rows read, one column per field.
row_countNumberNumber of rows read.