Sub topic 3
Running a Transaction from the Command Field
This chapter assumes you have SAP GUI installed, can log on to an SAP system, and know what a transaction code is (a short name such as SU3 that starts a screen or program). It covers the plain form of starting a transaction from the command field. The /n and /o prefixes get their own chapter.
Where the command field is
The command field is the input box at the left end of the standard toolbar, just below the menu bar. In many installations it is collapsed to a narrow box. Click the small arrow to its left to expand it. If you cannot see it at all, the setting is usually under the GUI options (Alt+F12, then Options). Turn on the command field there.
You can also jump to it from the keyboard. Press Ctrl+/ to place the cursor in the field.
Starting a transaction
- Click in the command field, or press Ctrl+/.
- Type the transaction code, for example
SU3. - Press Enter.
SU3SAP closes the Easy Access screen and opens your own user data and defaults. Transaction codes are not case sensitive, so su3 and SU3 do the same thing.
The plain form replaces the current screen
Entering a bare code works well from the SAP Easy Access screen. Inside another transaction, the plain form is less reliable. SAP GUI may reject it or may ask you to finish the current screen first. This is why the prefix forms exist. For now, remember the rule: use the plain form when you are on the Easy Access screen, and use a prefix when you are already inside a transaction.
Remembering the command field history
The command field keeps a list of codes you have used. Click the drop-down arrow at the right edge of the field to see recent entries, and select one to run it again. This history is stored with your logon and survives between sessions on the same SAP GUI installation. It is a quick way to repeat a code you cannot remember exactly.
Common errors
| Message in the status bar | Likely cause | What to do |
|---|---|---|
| Transaction XYZ does not exist | Typing error, or the code is not in this system | Check the spelling and the system you are logged on to |
| No authorization for transaction XYZ | Your user has no authorisation for it | Ask your administrator, covered in a later chapter |
| The cursor is in the field but nothing happens | You pressed Enter in a different field | Click in the command field first, or press Ctrl+/ |
Watch the status bar at the bottom of the window. It is where SAP reports most command field problems, and it is easy to overlook.
Checking a code before you rely on it
If you reached a screen through the menu and want to know its code, open System > Status. The dialog shows the transaction code of the current screen. Write it down, and you can reach the same screen next time directly.
Exercise
You are on the SAP Easy Access screen. You type su3 in lower case in the command field and press Enter. What happens, and where do you look if the screen does not open?
Show answer
SU3 opens, because transaction codes are not case sensitive. If it does not open, read the message in the status bar at the bottom of the window. It will say either that the transaction does not exist or that you lack authorisation.
Exercise
You can't see the command field in your SAP GUI window. Name two ways to get to it.
Show answer
Click the small arrow at the left of the toolbar to expand it, or enable it in the GUI options (Alt+F12, then Options). Once it is visible, Ctrl+/ places the cursor in it.