Lesson 1 of 5
Client and company code
10 min
Listen to this lesson
Before SAP can record a single sale, it needs to know how the company is built: which legal entities exist, where goods are made and stored, who sells and who buys. SAP models this with organizational units (often called org units or the enterprise structure). They are set up during implementation and rarely change, but almost every document you create carries several of them. Get them wrong in a test and the test proves nothing.
This course builds the full structure of Contoso Motor Co., the fictional company used throughout the Academy. By the end you will be able to read a Contoso sales order or purchase order and name every org unit on it.
The client
The client is the highest level in an SAP system. It is a self-contained unit with its own business data, its own master data and its own users, identified by a three-digit number. A single system can contain several clients that cannot see each other’s business data. Companies typically use separate clients for purposes such as configuration, testing and training, and production runs in one client.
Most configuration is client-specific, but some settings and all programs are cross-client: they apply to every client in the system. That is why a change made "only in the test client" can sometimes affect others in the same system, and why project teams control changes carefully.
| Client-specific | Cross-client | |
|---|---|---|
| What it covers | Business data, master data, users and most configuration | All programs and some settings |
| Contoso example | A sales order created in quality client 100 | A program change in the quality system |
| Reach of a change | Stays in that client | Applies to every client in the same system |
The company code
The company code is the central unit of financial accounting. It represents an independent legal entity: the smallest unit for which a complete, self-contained set of accounts can be drawn up, including a balance sheet and an income statement for external reporting. Each company code has a four-character key, a country, a local currency, a chart of accounts and a fiscal year definition.
| Attribute | Contoso Motor Co. (US) | Why it matters |
|---|---|---|
| Company code | 1710 | Appears on every financial posting |
| Country | United States | Drives tax, legal reporting and some country-specific functions |
| Currency | USD | The local currency of all its postings |
| Fiscal year | Calendar year, 12 periods | Defines which period a posting falls into |
Key attributes of Contoso’s company code
Two settings behind the company code shape every posting. The chart of accounts is the list of G/L accounts the company code uses; several company codes can share one, which makes group reporting easier. The fiscal year variant defines how the year is split into posting periods. When a test posting fails because "the period is not open," it is the company code’s posting periods that are closed, not the plant’s or the user’s.
A group needs one company code per legal entity, even within one country. Contoso already has two US entities: Contoso Motor Co. (company code 1710) and Contoso Parts Distribution LLC (company code 1810, plant 1810 Toledo), and sales between them are intercompany transactions. Contoso has no foreign subsidiary yet, but one is planned: after the S/4HANA conversion it will acquire Alternadores del Norte S.A. de C.V. in Monterrey, Mexico. That company gets its own company code, 1910, with Mexico as its country and Mexican pesos (MXN) as its local currency, and its own plant 1910 Monterrey. Sales between it and Contoso Motor Co. will be intercompany transactions, with each side posting in its own books and its own currency.
Who sets this up
Org units are defined by the implementation team in configuration, usually early in a project, and changed only through controlled projects later. Business users do not create them, but they must know them: the right org units are the first thing to check on any document. In Public Edition the same concepts apply, but the structure is set up through SAP Central Business Configuration rather than the classic Customizing menu (transaction SPRO), and SAP’s preconfigured content suggests a starting structure.
If you are new to a company, ask for its enterprise structure overview: a one-page picture of company codes, plants, sales organizations and purchasing organizations, with their keys. It is the single most useful reference a tester can pin above the desk.
What would you do?
A tester posts a supplier invoice in the quality system and cannot find it in the training client. She suspects the posting failed. What is the most likely explanation?
- The client is the top level: its own business data, master data and users, with a three-digit key.
- Some settings and all programs are cross-client, so changes can reach other clients in the same system.
- The company code is a legal entity with its own complete set of accounts, currency and country.
- Contoso Motor Co. is company code 1710 (USD); its second US entity, Contoso Parts Distribution LLC, is 1810.
Check your understanding · not graded
Lesson check
1. What is the highest organizational level in an SAP system?
2. What does a company code represent?
3. Which key length does a company code have?