Sub topic 11
Function keys and shortcuts worth knowing
This chapter covers the keyboard shortcuts you will use every day in SAP GUI. They make navigation faster and tie together the command field, sessions, and menus from earlier chapters.
It assumes you can already start a transaction from the command field, use /n and /o, and read the SAP GUI window layout. The shortcuts below apply to SAP GUI for Windows with default settings.
Why the keyboard matters in SAP GUI
Most SAP screens are forms, selection screens, or lists. You move through them in a repeating pattern: fill in fields, run something, check the result, go back. Each step has a standard key, and the same key does the same job in nearly every transaction. Once you know them, you can work through many screens without touching the mouse.
Three conventions help:
- The function keys F1 to F12 carry the same meaning across most screens.
- Combinations with Shift or Ctrl give related actions. For example, F3 is Back and Shift+F3 is Exit.
- Every toolbar button shows its shortcut in a tooltip when you hover over it. Hover first if you are unsure.
The keys to learn first
The table below lists the keys you will use most. Learn these before the rest of the chapter.
| Key | Action | Typical use |
|---|---|---|
| Enter | Confirm and continue | Run a command in the command field, accept a value, move to the next step |
| F1 | Help | Explains the field the cursor is in |
| F2 | Choose (same as a double-click) | Open the entry under the cursor in a list |
| F3 | Back | Return to the previous screen |
| F4 | Possible entries (value help) | List the valid values for a field |
| F8 | Execute | Run a report from its selection screen |
| F12 | Cancel | Abandon the current screen |
| Shift+F3 | Exit | Leave the current task |
| Ctrl+S | Save | Save your changes (older screens may use F11) |
| Ctrl+/ | Move the cursor to the command field | Start a new transaction without the mouse |
| Alt+F12 | Open the customizing menu for the local layout | Reach the SAP GUI options |
Some screens redefine keys, and a screen's own toolbar can show different shortcuts. The button tooltips are always the final word for the screen in front of you.
Moving and confirming
Enter
Enter is the "continue" key. In the command field it starts the transaction. On a screen that asks for confirmation, it accepts the current values and moves on. In a field, it also triggers validation. For example, SAP checks that the value you typed exists before you go further.
Tab and Shift+Tab
Tab moves to the next input field, and Shift+Tab moves to the previous one. On a data entry screen, you can fill in the whole form with Tab and the keyboard, without clicking between fields.
Reaching the command field
Press Ctrl+/ to put the cursor in the command field. Type the transaction code and press Enter. Combined with the prefixes from earlier chapters, this gives a mouse-free way to jump between tasks:
Ctrl+/ (cursor goes to the command field)
/nSE16 (type this, then press Enter)Getting help and finding valid values
F1: field help
Put the cursor in a field and press F1. SAP shows a description of that field. The help window usually has a technical information button. It shows the field name, the table it belongs to, and the data element. Developers and analysts use this information often.
F4: possible entries
F4 opens a list of valid values for the field. This is useful for fields that accept codes you do not remember, such as company codes, plants, or countries. Pick a row and the value is copied into the field.
The possible-entries window often has its own search tabs and a restriction area, so you can narrow a long list before choosing. Some fields also show a small icon at the right edge when F4 help is available.
Going back, leaving, and cancelling
SAP GUI has three similar-looking ways to leave a screen. They are not the same, so use the right one.
| Key | Name | What it does |
|---|---|---|
| F3 | Back | Goes to the previous screen in the same transaction |
| Shift+F3 | Exit | Leaves the current task and goes up a level |
| F12 | Cancel | Abandons the current screen without carrying out its action |
On a screen with unsaved changes, SAP normally asks whether to save before you leave. Read the prompt before you answer it.
Running and saving
F8: execute
On a report's selection screen, F8 runs the report with the values you entered. It is the keyboard equivalent of the clock-and-check "Execute" button on the toolbar. Many selection screens have default values or saved variants, so check the fields before you press F8.
Ctrl+S: save
Ctrl+S saves what you are working on in the current screen. Older transactions may still show F11 as the save key, and both usually work. Saving only writes your data when the screen is a change or create screen. In a display transaction there is nothing to save.
Working with lists
Reports often show their results as a list or a grid, and several keys help there.
- F2 or a double-click opens the line under the cursor, which is usually the detail view of a document or record.
- Ctrl+F opens a search box in the grid. Ctrl+G jumps to the next hit.
- Ctrl+P starts printing.
- The arrow keys, Page Up, and Page Down scroll through long lists.
The grid view (called ALV) has a toolbar with sort, filter, and export buttons. Their tooltips show their shortcuts, and the shortcuts differ between report types. For this reason, check a button's tooltip instead of relying on memory.
Reaching the menu bar from the keyboard
You can use menus without a mouse in two ways:
- Press F10 to move focus to the menu bar. Then use the arrow keys and Enter to open and pick entries.
- Hold Alt and press the underlined letter of a menu name. Many menus have these underlined letters.
This is useful when you need a function that has no function key. Examples are items under the System menu, such as Create Session or Status.
Adjusting how the keys behave
SAP GUI options control some of the key behaviour. Press Alt+F12 and open Options to see settings for keyboard handling, theme, and window behaviour. Your administrator may have locked some of them.
Differences you may notice between colleagues' machines:
- A laptop keyboard may need the Fn key to reach F1 to F12.
- Non-English keyboards can move characters such as
/, which changes how you type Ctrl+/ or/n. - Remote desktop and virtual machine software can capture some key combinations before SAP GUI sees them.
- Window managers and other applications can claim shortcuts such as Alt combinations.
If a shortcut does nothing, look at the toolbar button's tooltip. If the button itself is greyed out, the action is not available on that screen. If the tooltip shows a different shortcut than you expected, the screen uses a different binding.
Common mistakes
- Using F12 when you meant F3. Cancel throws away the screen's action. Back keeps the flow. If you have typed data you want to keep, save first.
- Pressing Shift+F3 and losing your place. Exit goes up a level and can end the task. Use F3 for a single step back.
- Assuming F8 saves. F8 runs a report. It does not save data in a change screen.
- Trusting a remembered shortcut on an unfamiliar screen. Hover over the button. The tooltip names the shortcut for that screen.
- Forgetting that Enter validates. On some screens, Enter triggers checks and can change a field or show a message. If the screen changes after Enter, read the message in the status bar.
Combining shortcuts with earlier skills
A short mouse-free sequence shows how the pieces fit:
Ctrl+/ move to the command field
/nSE16 leave the current transaction and open SE16
Enter start it
F4 pick a table name from the possible entries
Enter confirm the value
F8 run the selection
F3 go back to the selection screenHere Ctrl+/ and /nSE16 handle navigation, F4 helps with input, F8 runs the action, and F3 returns you. Each key has a single job, which makes the sequence easy to remember.
Exercise
You are in a change screen and have typed data you want to keep. Which keys do you use to keep the data and return to the previous screen, and why is F12 the wrong choice?
Show answer
Press Ctrl+S to save, then F3 to go back. F12 is Cancel, which abandons the screen without carrying out its action, so the entries you typed would be lost.
Exercise
A colleague tells you F8 "saves the report". What does F8 actually do, and where can you check a button's shortcut on an unfamiliar screen?
Show answer
F8 executes (runs) a report from its selection screen. It does not save data. To check the shortcut for any button, hover over it and read the tooltip.
Exercise
Write the sequence of keys and text to move from a running transaction to SE16 without using the mouse.
Show answer
Press Ctrl+/ to place the cursor in the command field, type /nSE16, and press Enter.