πŸ›οΈ SAP Company Code β€” Complete Guide

The legal entity that owns the books. Files taxes, produces balance sheet and P&L. Every MM transaction ultimately posts here via the plant. Configuration, T-codes, Chart of Accounts, and the PSEC example.

πŸ“‹ Snapshot

What it isLegal entity β€” balance sheet, P&L, tax filing unit
ID format4-character alphanumeric (e.g. 1000, PK01)
Mandatory?YES β€” at least one needed
T-code to defineOX02
Database tableT001
Owner moduleFI (Financial Accounting)

1. Purpose β€” why Company Code exists

Real businesses have multiple legal entities β€” group companies, country subsidiaries, joint ventures. Each must file its own taxes, produce its own balance sheet, sign its own contracts. SAP gives each one its own "Company Code" with separate books.

The key insight
Company Code is owned by FI but every MM transaction posts here via the Plant. When MIGO creates an inventory document, the FI posting goes to the CC that the plant is assigned to β€” automatically.

2. Company Code vs Company (the T880 trap)

EntityPurposeMandatory?
Company CODE (T001)Legal entity with booksYES
Company (T880)Higher-level grouping for consolidation onlyNO
Interview trap
"Is Company mandatory?" β€” clarify WHICH one. Company CODE is mandatory. Company (T880, used for multi-CC consolidation) is optional and rarely used.

3. Mandatory linkages

Every Company Code must be linked to these FI elements before MM can function:

Linked toPurpose
Chart of Accounts (operating)The list of G/L numbers (e.g. INT, CAGB, CAUS, INKR)
CountryFor tax codes, legal reporting
Local currencyBase currency for postings (e.g. PKR for Pakistan)
Fiscal Year VariantK4 (Jan–Dec), V3 (Apr–Mar India), etc.
Posting Period VariantControls which periods are open
Field Status VariantField requirements per G/L
Controlling Area (CO)If CO is used

4. Customization β€” Company Code configuration

  1. Copy reference CC β€” OX02 β€” Don't build from scratch; copy a delivered CC (e.g. 0001) and rename.
  2. Set basic data β€” Name, address, country, currency, language.
  3. Assign Chart of Accounts β€” OB62 β€” Choose the chart (INT, CAGB, INKR, etc.).
  4. Set Fiscal Year Variant β€” OB37 β€” K4 (calendar year), V3 (Apr–Mar), etc.
  5. Set Posting Period Variant β€” OBBP β€” Default the variant; manage periods with OB52.
  6. Set Field Status Variant β€” OBC5
  7. Assign Controlling Area (CO) β€” OX19 (if CO used)
  8. Tax codes (FI/MM) β€” FTXP

PSEC example β€” Pakistani Company Code setup

FieldValue
CC ID1000
NamePSEC Pakistan Ltd
CityKarachi
CountryPK
CurrencyPKR
LanguageEN
Chart of AccountsINKR (Indian chart adapted for Pakistan)
Fiscal YearK4 (calendar year)

5. "Is this possible?" β€” client Q&A

Can multiple Company Codes share one Chart of Accounts?

Yes β€” and common. Multiple CCs sharing one operating chart of accounts simplifies consolidation. SAP's INT chart is designed for this.

Can a Company Code exist without any plants?

Yes β€” a "pure FI" CC for holding companies or services-only entities. But it can't do MM until at least one plant is assigned via OX18.

Can I change CC currency after go-live?

Practically no. Currency is fundamental to all postings. Conversion is a complex project.

Can a CC be assigned to multiple Controlling Areas?

No. A CC is assigned to exactly one Controlling Area. Multiple CCs CAN share one CO Area.

6. What can't change after go-live

7. Interview Q&A on Company Code

What is a Company Code?

The smallest organizational unit for which a complete self-contained set of accounts can be drawn up. The legal entity in SAP. Owned by FI but referenced by every MM transaction via the plant.

What's the T-code to display a CC?

OX02 for define/display; FS00 for G/L details within the CC.

How does MM link to FI via Company Code?

Plant is assigned to a CC. When MM posts a GR/IV, the FI posting goes to that plant's CC. OBYC determines the G/L accounts within that CC's Chart of Accounts.

Company CODE is mandatory; Company (T880) is for consolidation. CC owns the books. Plant assigns to a CC. That's the bridge between MM and FI.

Next