Sub topic 1
Why SAP Models the Enterprise as Organisational Units
Prerequisites
This chapter assumes you know the following:
- What an ERP system does: it keeps finance, purchasing, production, and warehousing data in one shared database.
- The basic business functions: accounting, procurement, manufacturing, sales, and warehousing.
- What a relational table and a key are.
- Logging on to SAP is helpful but not required.
The working model
A company does not run as one undifferentiated block. It has legal entities that must publish accounts, sites that make or ship goods, and rooms or yards where goods sit. SAP represents this structure with organisational units. An organisational unit is a configured entity that stands for one part of the enterprise and that other data is attached to.
Every business document in SAP carries references to these units. A goods receipt names a plant and a storage location. An invoice names a company code. The system uses these references to decide which accounts to post to, which stock to change, and who may see the data.
Each unit answers one question:
| Unit | Question it answers | Typical business meaning |
|---|---|---|
| Client | Which self-contained system data set is this? | An entire corporate group, or one test environment |
| Company code | Which legal entity keeps the books? | A subsidiary with its own balance sheet |
| Plant | Where are goods produced, procured, or planned? | A factory, distribution centre, or branch |
| Storage location | Where is the stock physically kept? | A warehouse, a shelf area, a yard |
The units form a hierarchy. Later chapters cover each unit and its assignments in detail. Here is the overall shape.
Notice that storage location 0001 appears under two different plants. The key is only unique inside its plant, so the full identity is plant plus storage location.
Why the separation matters
Splitting the enterprise this way lets one system serve several needs without mixing data.
- Legal reporting. Each company code produces its own balance sheet and profit and loss statement. Plants and storage locations only matter to accounting because they roll up to a company code.
- Operations. Planning, production, and procurement happen per plant, not per legal entity. Two plants can belong to the same company code and still be planned separately.
- Inventory control. Stock quantities are held per storage location, so the system can tell you how much of a material sits in which place.
- Access and isolation. Data in one client is invisible from another client. Authorisations can also be limited by organisational unit.
If you tried to do all of this with one flat unit, you would need either one legal entity per warehouse or one set of accounts for the whole group. Neither matches how businesses are organised.
Seeing the structure in the data
The units are stored as ordinary database tables, so you can read the structure with Open SQL. This query lists plants and the company code each belongs to. It joins plant master data in table T001W to valuation area data in T001K, where the valuation area key BWKEY is usually equal to the plant.
SELECT w~werks,
w~name1,
k~bukrs
FROM t001w AS w
INNER JOIN t001k AS k ON k~bwkey = w~bwkey
INTO TABLE @DATA(lt_plants)
UP TO 20 ROWS.Each result row gives a plant (werks), its name (name1), and its company code (bukrs). Open SQL applies the client filter for you, so you see only the data of the client you are logged on to.
Common errors at this stage
- Assuming the company code and the plant are the same thing. They are separate units with a configured assignment between them.
- Assuming a storage location key is globally unique. It is unique only within a plant.
- Expecting to see another client's data from your current logon. Client data is separated.
Exercise
A group has two legal subsidiaries. One runs a factory with a raw-material store and a finished-goods store. Which organisational units would you use to model the factory and its two stores, and which unit represents each subsidiary?
Show answer
Each subsidiary is a company code. The factory is a plant assigned to the company code of the subsidiary that owns it. The raw-material store and the finished-goods store are two storage locations within that plant.