Sap Alv Cell Action
sap_alv_cell_actionPerforms actions on a specific ALV grid cell, such as clicking hotspots, pressing buttons, setting checkboxes, opening value help or context menus, submitting edits, or toggling subtotal groups.
Instructions
Act on a cell of an ALV grid. Does NOT work on GuiTableControl.
Actions (row and column name the cell):
click: click a hotspot, as a single mouse click on it does
press_button: press the button shown in the cell
set_checkbox: set a checkbox cell to
checked(true/false)f4: open the cell's value help
enter: send the grid's changes to the application for checking. The cell is optional; when given, the response has its value and state afterwards (state 'Error': the entry was not accepted)
context_menu: open the cell's context menu. The response lists menu_items; pick one with sap_select_alv_context_menu_item
toggle_total: open or close the group of a subtotal row (a row that sap_read_table marks with _total_level); needs only the row. On the overall total it closes or opens every group. Row numbers change: read the table again
A cell that is not what the action needs (no hotspot, no button, no changeable checkbox, no value help) is refused before anything is sent: status 'rejected' with an error. sap_get_cell_info shows what kind of cell it is; sap_double_click_cell sends a double-click.
A hotspot or a button runs an application function: it can open a popup (screen.active_window), post, or open a document in another SAP session, which shows seconds later (screen.new_sessions of a later response; sap_get_screen_info asks).
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>",
"action": "<action>"
},
"name": "sap_alv_cell_action"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | No | ||
| action | Yes | ||
| column | No | ||
| checked | No | ||
| grid_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||