Sub topic 2
Organizational Units: Company Code, Plant, Purchasing Organization and Group
This chapter assumes you know basic purchasing terms and can navigate SAP GUI or the Fiori launchpad. It covers the four organizational units that shape every purchasing transaction. Later chapters on master data, purchase orders and accounting build on them.
Why organizational units matter
Every purchasing document is tied to organizational units. They decide which legal entity owns the liability, where the goods arrive, who negotiates the price and who is responsible for the buying. If you pick the wrong combination, the system rejects the document or posts it to the wrong place.
The four units
| Unit | What it represents | Main effect in procure-to-pay |
|---|---|---|
| Company code | A legal entity with its own balance sheet | Owns the accounting postings, the supplier account and the payment |
| Plant | A location that receives and stores goods | Holds material data and stock, and is where goods receipt happens |
| Purchasing organization | The unit that negotiates with suppliers | Owns conditions, info records and contracts |
| Purchasing group | A buyer or team of buyers | Contact for the supplier and filter for work lists |
Each plant is assigned to exactly one company code. This assignment is how a goods receipt in a plant finds the right company code for its accounting entry.
How the units relate
A purchasing organization can be assigned to a company code, to several company codes, or to none. If it is assigned to a company code, it can buy only for the plants of that company code, unless you also assign it to other plants. If it is not assigned to any company code, it is a cross-company-code purchasing organization. A purchasing group is not assigned to any other unit. It only identifies who does the buying.
A purchase order header carries the company code, purchasing organization and purchasing group. Each item carries a plant. One order can therefore deliver to several plants, but all of them must belong to the order's company code.
Where you see them in practice
In the BAPI example later in this tutorial, the header sets comp_code, purch_org and pur_group, and the item sets plant. These four values are exactly the units from this chapter. If one is missing or not assigned correctly, the BAPI returns an error message in the RETURN table.
Common errors
- Plant not found for the company code. The plant in the item belongs to a different company code than the header. Check the plant assignment in customizing.
- Purchasing organization not allowed for the plant. The purchasing organization has no assignment to that plant. Add the assignment, or use a purchasing organization that already covers it.
- Supplier not extended to the purchasing organization. The supplier exists, but has no purchasing data for this purchasing organization. You fix this in the supplier master data, which the next chapters cover.
- Confusing the purchasing group with an authorization. The purchasing group does not limit what a user may buy by default. Restrictions need separate authorization objects.
Exercise
A purchasing organization is assigned to company code 1710 only. A buyer creates a purchase order for plant 1720, which belongs to company code 1720. Why does it fail, and what are two ways to fix it?
Show answer
The purchasing organization is not allowed to buy for a plant in another company code. Fix it by assigning the purchasing organization to plant 1720, or by using a purchasing organization that is assigned to company code 1720 (or is a cross-company-code organization).