Sap Read List
sap_read_listRead classic ABAP WRITE report lists and F4 hit lists as visible text lines, with colors and paging, so plain list output can be inspected without a screenshot.
Instructions
Read a classic ABAP list (WRITE output of a report) as lines of text.
Use it when a report shows a plain list rather than an ALV grid (program SAPMSSY0, screen 120), and for F4 hit lists in a popup (window_id= 'wnd[1]'). Such a list has no table object: every word is its own label, so sap_get_screen_elements leaves the cells out and reports it under 'lists'. This returns the page as the lines the user sees, with no screenshot needed.
colors: rows whose text has a semantic list colour, e.g. 'negative' (red, errors), 'positive' (green), 'total', 'heading'
scroll: present when the list is longer than the page; pass scroll_to=position+page_size to read the next page
with_ids=true adds the ID of each line's first label, to set the focus on a line (sap_set_focus) before F2 / double-click
is_list=false means this screen has no list: use sap_read_table
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_list"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| with_ids | No | ||
| max_lines | No | ||
| scroll_to | No | ||
| window_id | No | wnd[0] |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||