Sap Read Table
sap_read_tableReads rows from the ALV grid or table on the current SAP screen, with row-range and session options to limit data returned.
Instructions
Read data from an ALV grid or table on the current screen
Session parameter:
session=None (default): Uses primary session ("s1")
session="s2": Targets specific session (for parallel agents)
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "sap_read_table"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_row | No | Last row to read (None = up to max_rows visible rows) | |
| session | No | Session ID (e.g., "s1", "s2"). None uses primary session. | |
| agent_id | No | Agent identifier for binding check. Optional. | |
| max_rows | No | Maximum rows to return (default: 100, prevents huge responses) | |
| start_row | No | First row to read (1-indexed, default: 1) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alv | No | ALV grid metadata (only present for ALV grids) | |
| rows | No | Row data | |
| error | No | Error message if success=False | |
| popup | No | Present when a popup dialog is active on screen | |
| end_row | No | Last row returned | |
| headers | No | Column headers | |
| success | No | Whether the operation succeeded | |
| start_row | No | First row returned (1-indexed) | |
| truncated | No | True if rows of the requested range are missing: a table control (e.g. SE24 methods) only holds the rows in its window (enlarge the SAP GUI window or narrow the range), or a classic list was read up to its row limit | |
| total_rows | No | Total rows found; for a table control (e.g. SE24 methods) only the visible window is read, so compare with the rows returned (start_row to end_row) | |
| active_window | No | Which window was operated on (e.g., 'wnd[0]', 'wnd[1]'). If 'wnd[1]' or higher, a modal dialog is open. |