sap_read_list
Reads classic ABAP list pages as plain text lines, capturing visible rows and optional line IDs for focus. Use when a report displays a plain list or F4 hit list instead of an ALV grid.
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 returns ~500 elements for one page. 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
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 | |||