Skip to content
Tutorials Center
My learning

Topics

Lesson 5 of 36 ยท SAP Architecture and Navigation

SAP Organizational Structure: Company Code, Plant, Sales and Purchasing Org

Learn how SAP models a company: client, company code, controlling area, plant, storage location, sales organization, purchasing organization, with diagrams and a validator.

Before anyone posts an invoice or ships a box, SAP must know who the company is and how it is organized. This is the enterprise structure: a set of organizational units that you create once during configuration. Every document later refers to them. Understanding the main units is the key to reading any SAP transaction, because almost every screen asks for a company code, a plant or a sales organization.

The key organizational units

Unit What it represents Module
Client The whole enterprise group in one system All
Company code A legal entity with its own balance sheet and income statement FI
Business area An optional internal reporting unit (less used today) FI
Controlling area A unit for internal cost accounting, can span several company codes CO
Plant A site where goods are produced or stored, for example a factory or distribution center MM, PP, SD
Storage location A place inside a plant where stock is kept MM
Purchasing organization The unit that negotiates with vendors MM
Purchasing group A buyer or team of buyers MM
Sales organization The unit that sells and is responsible for conditions SD
Distribution channel The way goods reach customers (direct, wholesale, web) SD
Division A product line SD
Shipping point Where outbound deliveries are processed SD (logistics)
flowchart TD
    C["Client 100"] --> CC["Company code 1000<br/>Acme Germany"]
    C --> CC2["Company code 2000<br/>Acme USA"]
    CC --> P1["Plant 1010<br/>Berlin factory"]
    CC --> P2["Plant 1020<br/>Hamburg warehouse"]
    P1 --> SL1["Storage loc. 0001<br/>Raw materials"]
    P1 --> SL2["Storage loc. 0002<br/>Finished goods"]
    CC --> SO["Sales org. 1000"]
    CC --> PO["Purchasing org. 1000"]

A simplified hierarchy: the company code owns plants, a sales organization and a purchasing organization.

Finance units

The company code is the central financial unit. It has its own currency (a "company code currency"), its own chart of accounts assignment and its own legal financial statements. A group with a German and a US subsidiary has two company codes. Postings to the general ledger always name a company code. A four-digit key such as 1000 is typical.

The controlling area groups company codes (or just one) that share cost accounting rules. You will meet it in cost centers and orders.

Logistics units

A plant is the most important logistics unit. It belongs to exactly one company code, which is how SAP connects stock movements to the right ledger. Within a plant, storage locations divide the stock physically (raw materials, finished goods, returns). Stock is stored per material, plant and storage location.

Sales and purchasing units

Sales uses three together, called the sales area: sales organization + distribution channel + division. A customer is set up for a sales area, and every sales order carries one. Purchasing has the purchasing organization (the legal buying entity, assigned to a company code and plants) and purchasing groups (the people).

Assignments connect these units. For example:

  • A plant is assigned to one company code.
  • A sales organization is assigned to one company code.
  • A purchasing organization can be assigned to a company code, or to a plant (plant-specific) or to many plants.
  • A storage location belongs to a plant.

When a transaction refuses an entry like "Plant 1020 is not defined for company code 2000", the cause is a missing or wrong assignment in this structure. Check the assignments first.

Try it: modelling the structure

Below is a small data model with the rules above. The checker confirms that each plant belongs to a known company code and that the same plant is not used under two company codes.

Python Stand-in: enterprise structure validator

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Try it: stock per plant and storage location

Stock is held at the lowest level, and totals roll upward. The stand-in shows aggregation along the hierarchy.

Python Stand-in: stock at plant and company code level

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Planning the structure

Designing an enterprise structure is one of the first project decisions and hard to change later, so consultants ask questions such as:

  • How many legal entities must publish their own financial statements? (company codes)
  • Which sites hold stock or produce goods? (plants)
  • Do we sell different product lines to different markets through different channels? (sales areas)
  • Is purchasing centralized or per country? (purchasing organizations)

A useful rule: model legal reality in finance, operational reality in logistics. A plant is not a legal entity; a company code is.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which unit is a legal entity with its own balance sheet?

    The company code is the legal and financial accounting unit.
  2. 2. A plant belongs to how many company codes?

    A plant is assigned to one company code so stock movements reach the right ledger.
  3. 3. What three elements make up a sales area?

    A sales area is sales organization + distribution channel + division.
  4. 4. Where is stock physically divided inside a plant?

    Storage locations subdivide a plant; stock is recorded per material, plant and storage location.

Summary

  • The enterprise structure defines the organizational units every document refers to.
  • Company code = legal entity; controlling area = internal cost accounting; plant and storage location = logistics.
  • Sales area = sales org + distribution channel + division; purchasing uses organizations and groups.
  • Assignments connect units; many errors trace back to a missing assignment.

Next: SAP GUI and Fiori