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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Table | String | Yes | SAP table or view name. | |
| Fields | List | No | Fields to read, e.g. ["MATNR", "MTART"]; all fields when empty (only for narrow tables). | |
| Where | String | No | WHERE condition in ABAP Open SQL syntax. | |
| Maximum rows | Number | No | 1000 | Most rows to read (0 = no limit). |
| Skip rows | Number | No | 0 | Rows to skip first, for reading in pages. |
| Session | String | No | sap | Session name; one SAP logon per session. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | The rows read, one column per field. |
| row_count | Number | Number of rows read. |