Sub topic 10
Finding the transaction code for a task
This chapter assumes you can log on to SAP GUI, type a transaction code in the command field, and expand the Easy Access menu tree. You will learn three ways to find the code for something you already reached, and one way to search when you only know the task.
Why you need the code
Menu paths are long and differ between systems and roles. A transaction code is short and stable. If you know that a screen is SE16, you can reach it in seconds, share it in a ticket, and add it to Favourites. So the habit is to look up the code every time you reach a screen through the menu.
Method 1: Show technical names in the menu
Technical names put the transaction code next to each menu entry.
- In the SAP Easy Access screen, choose Extras > Settings.
- Select Display technical names and confirm.
- Expand the menu tree. Each entry that starts a transaction now shows its code.
This is the fastest method when you are browsing the tree anyway.
Method 2: System > Status
Use this when you are already inside a transaction. Choose this menu path:
System > StatusThe dialog shows the system data and the current screen. The Transaction field holds the code of the screen you are on, and the Program (screen) field holds the program behind it.
Note that the code shown is for the screen that is active when you open the dialog. If you reached a screen by drilling down from another transaction, you may see the code of the original transaction.
Method 3: Read the code from a Favourite or a shortcut
If a colleague shared a Favourite or a desktop shortcut, the code is part of its properties. In Favourites, right-click the entry and choose Change to see the code stored with it.
Searching when you only know the task
If you have not reached the screen yet, you can still search. The Easy Access menu has a Find function in the menu tree (Ctrl+F in many installations). It searches the menu entries your role can see, so it finds only what you are authorised to use.
If the search finds nothing, try these steps in order:
- Search for a different word. Menu texts use SAP terms such as "Display", "Change", "Maintain", or "Create". Try the verb that SAP would use.
- Ask a colleague in the same role to run Method 2 on the screen they use.
- Ask your SAP support team. Code lists for a module are often kept by key users.
The naming pattern
Many codes follow a pattern that helps you guess related ones. Take the purchase order transactions as an example.
| Code | Task |
|---|---|
| ME21N | Create purchase order |
| ME22N | Change purchase order |
| ME23N | Display purchase order |
The last digits often switch between create (1), change (2), and display (3). This is a convention, not a rule. Check each code before relying on it.
A worked flow
Common errors
- Typing the code with a space or extra characters. The command field is exact, so SE16 works but "SE 16" does not.
- Entering a code while inside a transaction without a prefix. Use /n before the code, for example /nSE16.
- Getting a message that you have no authorisation. The code exists, but your role does not include it. Ask your administrator, as covered in a later chapter.
- Trusting a code from an old document. Codes can be replaced, such as ME21N replacing ME21, so check them in your system.
Exercise
You opened a screen through a long menu path and want to start it directly next time. Which menu path shows its transaction code, and where in the dialog do you read it?
Show answer
Choose System > Status. The Transaction field in the dialog shows the code of the current screen.
Exercise
You know the task is "display a purchase order" but not the code. Name two ways to find it.
Show answer
Search the Easy Access menu for the task, or turn on technical names and browse the purchasing folder. You can also ask a colleague in the same role to read the code with System > Status.