Sub topic 2
What a transaction code is
This chapter assumes you have a working SAP GUI logon and know the basic window layout: menu bar, toolbars, command field, and status bar. You do not need to know any specific business module.
The working model
A transaction code (often called a tcode) is a short name that SAP maps to one task. When you enter it, the system looks up what the code points to and starts it. Examples are SU3 for your own user data, SE16 for the Data Browser, and VA01 for creating a sales order.
Behind the code, SAP stores a small record that links the name to three things:
- A program (or other object) that does the work.
- An initial screen, which is the first screen you see.
- Authorization checks, which decide whether your user may start it.
So a transaction code is not the program itself. It is a stable entry point that hides the program name and the screen number from you.
Where transaction codes come from
Transaction codes are created and stored in the system. SAP delivers thousands of them, and your organization can add its own. Custom codes usually start with Z or Y, for example ZORDERS. This is a naming convention for objects in the customer namespace, so SAP updates do not overwrite them.
Codes also tend to follow patterns, though the patterns are habits and not strict rules:
| Code | Area | Meaning |
|---|---|---|
| `SU3` | Basis | Own user settings |
| `SE16` | Development tools | Data Browser |
| `VA01` | Sales | Create sales order |
| `VA02` | Sales | Change sales order |
| `VA03` | Sales | Display sales order |
The 01, 02, 03 ending for create, change, and display is common in many modules. Do not rely on it for every code.
Using a code
You type the code into the command field at the top left of the window and press Enter. The plain form starts the transaction in the current session.
SU3Codes are not case-sensitive, so su3 and SU3 do the same thing. The command field accepts a plain code only from the SAP Easy Access screen or from a screen where the system lets you leave the current task. Inside a running transaction, a plain code may fail. The prefixes /n and /o, covered in the next chapter, solve that problem.
Reading the code behind a menu entry
You can start many tasks from the menu without knowing their codes. To learn the code for the screen you are on, open this menu path:
System > StatusThe dialog that appears shows the transaction code of the current screen, along with the program name and screen number. This is the reliable way to find a code for something you reached through the menu.
Common errors
- Typing the code into the wrong place. The code goes in the command field, not into a field on the screen. If the command field is hidden, expand it with the small arrow next to the green check mark icon.
- Expecting a plain code to work mid-task. If a transaction is already running, the system may ignore the code or treat it as input. Use
/nSU3instead. - Assuming a code exists everywhere. A code that works in one system may not exist in another, because custom codes and installed components differ.
- Reading "not authorized" as "does not exist". These are different messages. A missing authorization means the code exists but your user is not allowed to run it. A nonexistent code produces a message that the transaction does not exist.
Check your understanding
Exercise
You are in the middle of a transaction and you want to know which transaction code you are using, but you reached the screen through the menu. How do you find it, and what else does that dialog tell you?
Show answer
Open System > Status. The dialog shows the transaction code of the current screen, plus the program name and the screen number.
Exercise
A colleague says "SE16 is the program that shows table data." What is more accurate?
Show answer
SE16 is a transaction code, an entry point that points to a program and an initial screen and is subject to authorization checks. The program is a separate object that the code starts.