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
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Vkey | Number | No | 0 | SAP virtual key number. |
| Connection | Number | No | 0 | SAP connection number (0 = first open system). |
| Session | Number | No | 0 | Session (window) number within the connection (0 = first). |
| Window | Number | No | 0 | Window to send the key to (0 = main window, 1 = the first pop-up). |
| Fail on error message | Boolean | No | false | Stop with an error when the status bar then shows an error message. |
| Key | String | No | Key to press, by name; the number below is used when this is empty. |