sap_read_list
Read classic ABAP report lists as visible text lines when a screen has no table object, including colors, paging, and optional line IDs for focus before F2 or double-click.
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
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 | |||