Skip to main content

Choose menu entry

Choose an entry from the window's menu bar by its path of texts, e.g. System > User Profile > Own Data, by positions, or by its element id.

Command in the SAP GUI toolkit · id ooa.sap/click_menu · 5 inputs (1 required), no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
Menu pathStringYesMenu texts separated by > (or /), or a menu element id such as wnd[0]/mbar/menu[3]/menu[2].
WindowNumberNo0Window number whose menu bar to use (0 = main window).
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
Match byStringNotexttext: the path holds menu texts; index: it holds 0-based positions, e.g. 5 > 1 > 0.