Skip to main content

Send key

Press a key in SAP GUI, such as Enter, F3 (Back), F8 (Execute), Ctrl+S (Save) or F12 (Cancel).

Command in the SAP GUI toolkit · id ooa.sap/send_key · 6 inputs, no outputs

Inputs​

InputTypeRequiredDefaultWhat it is
VkeyNumberNo0SAP virtual key number.
ConnectionNumberNo0SAP connection number (0 = first open system).
SessionNumberNo0Session (window) number within the connection (0 = first).
WindowNumberNo0Window to send the key to (0 = main window, 1 = the first pop-up).
Fail on error messageBooleanNofalseStop with an error when the status bar then shows an error message.
KeyStringNoKey to press, by name; the number below is used when this is empty.