sap_select_alv_context_menu_item
Select an item from an ALV context menu in SAP GUI, optionally opening the menu via a toolbar button in a single call.
Instructions
Select an item from an opened ALV context menu.
First use sap_press_alv_toolbar_button on a Menu button to open it, then use this to select an item. Alternatively, pass toolbar_button_id to open the menu and select in one atomic call (recommended).
menu_item_id can be a technical function code (for example @M00006),
visible menu text (for example Confirm WT in Foreground), or a position
descriptor. You can pass human-readable menu text directly.
SAP GUI does not expose a way to enumerate GuiGridView context menu items.
select_by controls how selection is performed:
auto(default): heuristic based on whethermenu_item_idhas spacesid: function codetext: visible menu textposition: position descriptor
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid_id | Yes | ||
| menu_item_id | Yes | ||
| toolbar_button_id | No | ||
| select_by | No | auto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||