Get selected item
Read what is selected in a drop-down list, tab strip, tree or grid.
Command in the SAP GUI toolkit · id ooa.sap/get_selected_item · 3 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| ID | String | Yes | Scripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART. | |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
Outputs
| Output | Type | What it is |
|---|---|---|
| key | String | Key of the entry, id of the tab, node key, or the selected grid rows (e.g. 0,3-5). |
| text | String | Displayed text of the selection. |
| index | Number | 0-based position of the entry or tab; -1 when it does not apply. |