FICO · Beginner · Configuration
How to create a company code in SAP FI and assign it to a company (OX02, OX16)
Create a new company code as a copy of a tested one, maintain its address and currency, assign it to a company for consolidation, and complete the global parameters so that documents can be posted.
- APPLICABILITY
- SAP S/4HANA on-premise and SAP S/4HANA Cloud Private Edition, and SAP ECC, where the Financial Accounting IMG is available. In SAP S/4HANA Cloud Public Edition the same objects are maintained through the central business configuration tools, with different screens.
- TOOLS / TRANSACTIONS
- SPRO · OX15 · EC01 · OX02 · OX16 · OBY6 · OX19
Your project assignment
A hypothetical group opens a new legal entity in Germany. Finance asks for company code ZD10 in EUR, a copy of the tested German company code, assigned to a new company ZD10 for consolidation and to the existing controlling area. Configure and test it in the development client only.
Where to start: URLs and transactions
- SAP GUI transactions
- OX15, EC01, OX02, OX16, OBY6, OX19
- IMG path
- Enterprise Structure → Definition → Financial Accounting → Edit, Copy, Delete, Check Company Code; Enterprise Structure → Assignment → Financial Accounting → Assign Company Code to Company
- Related guide: fiscal year variant
- How to create and assign a fiscal year variant in SAP FI (OB29, OB37)
- SAP Learning: Creating Company Codes
- https://learning.sap.com/courses/maintaining-financial-accounting-core-settings/creating-company-codes
Prerequisites
- Customizing authorization for the enterprise structure in the development client and a customizing transport request.
- An approved design: company code key, legal name, country, currency, language, chart of accounts, fiscal year variant and controlling area.
- A tested company code in the same country to copy from, so that country-specific settings are not rebuilt by hand.
Configuration workflow
From legal entity to a company code that can post
All steps visible. Play or advance one stage at a time.
Hands-on implementation — step by step
Follow the screen navigation, replace example values with approved project values, and mark each step after checking its result. The screens below are original teaching aids, not live SAP screenshots. Progress is local to this visit.
- 1
OX15 → Define Company
Create the company that represents the legal entity in consolidation. Enter the company key, name, address, country, language and currency, then save in your transport request.
OX15 → Define CompanyERPClimb · illustrative screen - Company
ZD10 (hypothetical)- Country / Currency
DE / EUR- Language
DE
Expected result: The company is saved and can be selected in the assignment step.
Why this matters: Consolidation works on companies, not company codes, so the company must exist first.
- 2
EC01 → Copy Org. Object
In Edit, Copy, Delete, Check Company Code choose Copy, delete, check company code and copy the tested company code to the new key. Answer the prompts about copying G/L account data and the currency, and keep the log.
EC01 → Copy Org. ObjectERPClimb · illustrative screen - From company code
1010 (hypothetical template)- To company code
ZD10- Copy G/L company code data
Yes, if the same accounts are used
Expected result: The copy finishes with a log of all copied tables.
Why this matters: Copying brings the dependent country and control settings that a manually created code would lack.
- 3
OX02 → Edit Company Code Data
Open the new company code and replace the copied name and address with the legal name and address of the new entity. Check country, currency and language.
OX02 → Edit Company Code DataERPClimb · illustrative screen - Company name
Hypothetical Tools GmbH- Country / Currency / Language
DE / EUR / DE- Address
Legal address from the trade register (hypothetical)
Expected result: The company code shows its own name and address.
Why this matters: The name and address appear on correspondence and legal reports.
- 4
OX16 → Assign Company Code to Company
Assign the company created in the first step to the new company code and save.
OX16 → Assign Company Code to CompanyERPClimb · illustrative screen - Company code
ZD10- Company
ZD10
Expected result: The assignment table shows the company for the company code.
Why this matters: The company ID identifies the entity as a trading partner in intercompany postings.
- 5
OBY6 → Company Code Global Data
Check the global parameters: chart of accounts, fiscal year variant, field status variant, posting period variant and the company from the previous step. Correct any value the template brought that is not wanted.
OBY6 → Company Code Global DataERPClimb · illustrative screen - Chart of accounts
YCOA (as agreed)- Fiscal year variant
K4 (as agreed)- Company
ZD10
Expected result: All global parameters are filled and consistent.
Why this matters: Posting needs these parameters; the system reads them for every document.
- 6
OX19 → Assign Company Code to Controlling Area
Assign the company code to the agreed controlling area. Confirm that chart of accounts and fiscal year variant match the controlling area.
OX19 → Assign Company Code to Controlling AreaERPClimb · illustrative screen - Controlling area
A000 (hypothetical)- Company code
ZD10
Expected result: The company code is listed under the controlling area.
Why this matters: Company codes in one controlling area must share the operative chart of accounts and fiscal year variant.
- 7
FB50 → test posting
In the development client post a small G/L document in the new company code with two test accounts and display it.
FB50 → test postingERPClimb · illustrative screen - Company code
ZD10- Amount
100.00 EUR (hypothetical)- Posting date
Today, in an open period
Expected result: The document posts and shows EUR as local currency.
Why this matters: A posted document proves that the structure, global data and periods work together.
Project acceptance checklist
Use this checklist to prepare evidence for your project lead.
0 of 4 checks marked. This does not certify the SAP configuration.
Validate your configuration
- OBY6 shows the company, chart of accounts, fiscal year variant, field status variant and posting period variant for the new company code.
- A simple G/L document posts in the new company code in the development client and shows the company code currency as local currency.
Common errors and what to check
postings fail because no chart of accounts or fiscal year variant is found.
Check: The global parameters in OBY6 are incomplete; a copied code may still point to nothing if it was created manually instead of copied.
the controlling area cannot be assigned.
Check: The company code uses a different operative chart of accounts or fiscal year variant than the other company codes in that controlling area.
G/L accounts exist in the chart but cannot be posted in the new code.
Check: The company code segments of the accounts were not copied or created.
intercompany postings do not eliminate in group reporting.
Check: The company code has no company assigned, or business partners that represent affiliates have no trading partner.
More in the SAP Library
Need help with a configuration error? Open ERPClimb Copilot.
Technical references & further reading
Official documentation for technical verification, release compatibility and further study.