sap_get_screen_elements
Discover all UI elements on an SAP GUI screen. Use type filters and depth settings to efficiently locate field IDs and interactive controls.
Instructions
Discover all elements on the current SAP screen.
Useful for finding field IDs when working with a new screen.
Use type_filter and changeable_only to reduce response size on complex screens (e.g. type_filter="GuiTextField,GuiCTextField" to find only input fields).
max_depth controls how deep to recurse into containers (default 2). Use max_depth=1 for a quick overview, max_depth=3+ for deeply nested layouts (splitter containers, tab strips with sub-containers).
Pass container_id='wnd[0]/mbar' to discover the menu bar structure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| container_id | No | wnd[0]/usr | |
| max_depth | No | ||
| type_filter | No | ||
| changeable_only | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||