<aside> <img src="notion://custom_emoji/7f3a86c4-0e4f-8193-9274-00038d571f22/294a86c4-0e4f-8053-a481-007af138f2db" alt="notion://custom_emoji/7f3a86c4-0e4f-8193-9274-00038d571f22/294a86c4-0e4f-8053-a481-007af138f2db" width="40px" />
SAP needs to know which legal entity owns the revenue generated by a Sales Organisation. Assigning the Sales Organisation to a Company Code creates that bridge. It matters because without this link, SAP does not know where to post financial results, who carries tax liability or how revenue flows into the general ledger. Use this assignment when your Sales Org belongs to a specific legal entity. Avoid random or shared assignments unless you enjoy reconciling chaos.
</aside>
This page explains the purpose of connecting a Sales Organisation to a Company Code in S4HANA, using transaction S_ALR_87007332. SAP treats the Sales Org as the seller and the Company Code as the legal and financial entity that records the money. Without the assignment, your sales documents float in limbo. SAP refuses to post them. Finance refuses to recognise them. Auditors raise eyebrows. You lose trust in your numbers.
A Sales Organisation can only exist if it belongs to a real Company Code. SAP needs this link to decide where revenue goes, which tax rules apply and which legal entity is responsible for the transaction. If the Sales Org is the storyteller, the Company Code is the signature at the bottom of the contract.
Sales Organisation
The selling identity inside SAP. The commercial face of the company.
Company Code
The legal and financial entity. The one that pays taxes, files accounts and owns revenue.
Assignment
The moment SAP decides the Sales Org belongs to a specific Company Code. Like choosing who signs the cheque.
When a sales order is created, SAP needs a Company Code behind the Sales Org to determine tax rules, pricing relevance and revenue posting.
Because without that link, SAP does not know which financial books to update.
Therefore it blocks the process. No delivery. No invoice. No revenue. Just a silent protest.
When multiple countries operate under one Sales Org, the assignment becomes legally sensitive.