Skip to main content

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​

InputTypeRequiredDefaultWhat it is
IDStringYesScripting id from the SAP script recorder, e.g. wnd[0]/usr/ctxtVBAK-AUART.
ItemStringNoGrid row (0-based) or tree node key.
ColumnStringNoGrid column (technical name, title or 0-based position).
Menu itemStringNoEntry 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.
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
Menu byStringNocodeHow menu_item names the entry: code (function code or element id), text (the entry's text) or position (0-based, counted from the top).