Sub topic 2
Organizational units that drive the process
This chapter assumes you know basic ERP vocabulary, can navigate SAP GUI or the Fiori launchpad, and can read simple SQL. It explains how organizational units determine what the order-to-cash process can do. They decide who sells, who ships, and which ledger receives the postings.
The working model
An organizational unit is a node in the enterprise structure. SAP derives rules, master data, and account postings from these nodes. If an order uses the wrong node, it picks up the wrong prices, the wrong shipping point, or the wrong company code.
| Unit | Role in order-to-cash | Typical effect |
|---|---|---|
| Company code | Smallest unit with its own legal books | Receives the accounting documents |
| Sales organization | Legal seller; owns pricing and terms | Required on every sales order |
| Distribution channel | Route to the customer, such as wholesale or web | Selects price lists and customer data |
| Division | Product line | Groups materials for pricing and reporting |
| Plant | Location that holds stock | Drives availability check and delivery |
| Shipping point | Place where deliveries are processed | Drives picking and goods issue |
How the units connect
Each sales organization is assigned to exactly one company code. A plant is assigned to one company code and can be used by several sales organizations. Sales organization, distribution channel, and division combine into a sales area. Customer master data and condition records are maintained per sales area.
Where the units appear in a document
The sales order header stores the sales area. Each item stores the plant and shipping point. You can verify this with a query against the header table VBAK and the item table VBAP.
DATA(lv_vbeln) = CONV vbeln_va( '0000012345' ).
SELECT h~vbeln, h~vkorg, h~vtweg, h~spart,
i~posnr, i~werks, i~vstel
FROM vbak AS h
INNER JOIN vbap AS i ON i~vbeln = h~vbeln
WHERE h~vbeln = @lv_vbeln
INTO TABLE @DATA(lt_org).VKORG, VTWEG, and SPART are the sales organization, distribution channel, and division. WERKS is the plant and VSTEL is the shipping point.
Common errors
- Customer not extended to the sales area. The order fails because no customer data exists for that combination. Extend the customer to the sales area in master data.
- Material not extended to the plant or sales organization. The item cannot be created or cannot be checked for availability.
- Plant and sales organization combination not allowed. The plant must be linked to the sales organization and distribution channel in customizing.
- Wrong shipping point. Shipping point determination uses the shipping condition, loading group, and plant. A missing entry leaves the item without a shipping point, so no delivery can be created.
Exercise
A sales order is entered for sales organization 1000, but the customer was only extended to sales organization 2000. What happens, and how do you fix it?
Show answer
The order cannot be created because the customer has no data for sales organization 1000. Extend the customer master record (Business Partner in S/4HANA) to that sales area, or enter the order with sales organization 2000.
Exercise
Which organizational unit determines the company code that receives the billing posting: the plant or the sales organization?
Show answer
The billing posting goes to the company code assigned to the sales organization. The plant's company code matters for stock and goods issue postings.