SAP transaction codes
A transaction code, or T-code, is a short code that opens one task in SAP directly: ME21N creates a purchase order, MIGO posts a goods receipt, FB50 posts a journal entry. People who use the system every day type codes instead of clicking through the menu, because codes are faster and they are the same in every company.
Syntax
You type the code in the command field at the top left of the screen and press Enter. From the main menu the code alone is enough. Inside another transaction you add a prefix.
ME21N from the main menu /nME21N leave the current screen, open ME21N in the same window /oME21N open ME21N in a new window (a new session)
Most codes follow a pattern. The letters say the area, the digits say the action:
- 1 usually creates (ME21N, VA01, MM01)
- 2 usually changes (ME22N, VA02, MM02)
- 3 usually displays (ME23N, VA03, MM03)
- An N at the end marks the newer single screen version, the one used in daily work
Examples
The codes a purchasing or accounts payable team uses most
| Code | Opens | Used for |
|---|---|---|
| ME51N | Create Purchase Requisition | An internal request to buy |
| ME21N | Create Purchase Order | The binding order to the supplier |
| ME23N | Display Purchase Order | Checking an order and its history |
| MIGO | Goods Movement | Posting a goods receipt |
| MIRO | Enter Incoming Invoice | Invoice verification against an order |
| MRBR | Release Blocked Invoices | Releasing invoices with a payment block |
| F110 | Automatic Payment Transactions | The supplier payment run |
| FBL1N | Vendor Line Items | Open and paid items of a supplier |
Question: A truck from a supplier is unloaded. Which code does the warehouse open? Answer: MIGO, because a goods receipt is a goods movement. The receipt is posted with movement type 101 against the purchase order.
Finance codes
| Code | Opens | Used for |
|---|---|---|
| FB50 | Enter G/L Account Document | A manual journal entry |
| FB60 | Enter Vendor Invoice | A supplier invoice without an order |
| FB70 | Enter Customer Invoice | A finance only customer invoice |
| FB03 | Display Document | Looking at any posted accounting document |
| FB08 | Reverse Document | Reversing a posted document |
| FS10N | Display G/L Account Balances | Balances of an account by period |
Question: The electricity bill arrived and there is no purchase order. Which code? Answer: FB60. MIRO needs a purchase order to compare against; FB60 posts straight to the supplier and an expense account.
Sales codes
| Code | Opens | Used for |
|---|---|---|
| VA01 | Create Sales Order | A customer order |
| VL01N | Create Outbound Delivery | Shipping the order |
| VF01 | Create Billing Document | The customer invoice |
| F-28 | Post Incoming Payment | Recording the customer’s payment |
| FBL5N | Customer Line Items | Open items of a customer |
The sap document flow guide shows how documents created with these codes link to each other.
Variants
Lists instead of single documents. Many areas have list reports: ME5A lists requisitions, ME2N lists purchase orders by number, VA05 lists sales orders, MB51 lists material documents. When someone asks "how many", look for the list code.
Older codes. Some companies still run ECC, the generation before S/4HANA. There you may see XK03 to display a supplier, where S/4HANA uses BP, the business partner transaction. Most purchasing, finance and sales codes are the same in both.
Your own shortcuts. Add codes you use every day to Favorites in the main menu, and set default values such as your plant in SU3 so fewer fields need typing.
Common errors
Function code cannot be selected
You typed a code inside another transaction without a prefix. Type /n in front of it, for example /nMIRO, or go back to the main menu first. The sap command field guide explains every prefix.
You are not authorized to use transaction
Your user roles do not include that code. Codes follow your job: an accounts payable clerk may post in MIRO but not create suppliers. Ask your team lead to request the role. Never use a colleague’s login.
Transaction does not exist
A typo, or a code from another system generation. Check the letters, then search the menu or ask a colleague which code your company uses for that task.
The screen opens but looks different from the training
Companies hide fields and add their own tabs. The code and the main fields stay the same, so look for the field names, not their exact position.
Practice
The navigation level drills these codes in context: a situation from a real day at work, the screen you are on, and the command field where you type the code with the right prefix. Wrong codes get a short explanation of which screen they would open instead.
Start step by step: Navigation and transaction codes
Free, in your browser, no sign up. Opens the level “Navigation and transaction codes”.
FAQ
What is a T-code in SAP?
A T-code is a transaction code, a short code such as ME21N or FB50 that opens one screen or task directly. You type it in the command field and press Enter.
Which SAP transaction codes should a beginner learn first?
Start with the codes of your area. For purchasing and payables: ME51N, ME21N, ME23N, MIGO, MIRO, FBL1N. For finance: FB50, FB03, FS10N, FB60. For sales: VA01, VL01N, VF01, F-28.
Are transaction codes the same in every company?
The standard codes are the same everywhere, which is why they are worth learning. Companies can add their own codes, usually starting with Z or Y, for custom reports.
Do transaction codes work in S/4HANA?
Yes. S/4HANA keeps transaction codes, and most daily ones are unchanged. Many companies also use apps in a browser launchpad, but the codes remain the fastest way for experienced users.
For learning only. Nothing here is legal, financial, tax or investment advice. Tolerances, policies and rates in the examples belong to a made up company; your employer’s settings decide what applies at work.