Sap Select Alv Context Menu Item
sap_select_alv_context_menu_itemSelect an ALV context menu item by function code, visible text, or position; optionally open the toolbar menu and choose it in one atomic 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. The
menu_items of sap_press_alv_toolbar_button list what a menu offers.
select_by controls how selection is performed:
auto(default): heuristic based on whethermenu_item_idhas spacesid: function codetext: visible menu textposition: position descriptor
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"grid_id": "<grid_id>",
"menu_item_id": "<menu_item_id>"
},
"name": "sap_select_alv_context_menu_item"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| grid_id | Yes | ||
| select_by | No | auto | |
| menu_item_id | Yes | ||
| toolbar_button_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||