Right-click (context menu)
Open the context menu of an element, grid cell or tree node and optionally choose an entry by its function code or element id, its text, or its position.
Command in the SAP GUI toolkit · id ooa.sap/right_click · 7 inputs (1 required), no 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. | |
| Item | String | No | Grid row (0-based) or tree node key. | |
| Column | String | No | Grid column (technical name, title or 0-based position). | |
| Menu item | String | No | Entry to choose, as menu_by says: a function code (grids and trees) or element id (screen elements); the entry's text as shown; or its 0-based position, with sub-menus as 2 > 1. | |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
| Menu by | String | No | code | How menu_item names the entry: code (function code or element id), text (the entry's text) or position (0-based, counted from the top). |