
The following text provides information about different special functions on screens.
Reserved Function Keys
The following function keys do not trigger the PAI event, but are reserved for other functions:
Function Keys for the Standard Toolbar
The following function keys are assigned to icons in the standard toolbar. The function code that you assign and the corresponding ABAP coding should reflect the sense of the icon.
| Function Key | Icon | Description |
|---|---|---|
|
Ctrl+S or F11 |
|
Save |
|
F3 |
|
Back |
|
Shift+F3 |
|
Exit |
|
Esc or F12 |
|
Cancel |
|
Ctrl+P |
|
|
|
Ctrl+F |
|
Find |
|
Ctrl+G |
|
Find Next |
|
Ctrl+PageUp |
|
First Page |
|
Page Up |
|
Previous Page |
|
Page Down |
|
Next Page |
|
Ctrl+PageDown |
|
Last Page |
The Enter Key
The ENTER key belongs to the
icon in the standard toolbar. This icon is always active, even if no function is assigned to it in the GUI status, or there is no GUI status set at all. The PAI event is always triggered when the user chooses ENTER. The following function codes can be passed to sy-ucomm or the OK_CODE field:
The F2 Key
The F2 key is always linked to a mouse double-click. If a function code in the GUI status is assigned to the F2 key, the PAI event can be triggered either when the user chooses F2 or when he or she double-clicks a screen element. In both cases, the corresponding function code is passed to sy-ucomm and the OK_CODE field. If you need to use the cursor position to control what happens next, you must find it out yourself using the GET CURSOR statement.