How to Create a Company in SAP & Assign Company Code

โšก Smart Summary

Company code in SAP is the central organizational unit of Financial Accounting that represents an independent legal entity, created in two steps that define the company code and then assign it to a company.

  • ๐Ÿข Company Code: The smallest unit for which a complete set of legal financial statements is drawn.
  • ๐Ÿ”ง Transaction OX02: OX02 defines the company code; the assignment step links it to a company.
  • ๐Ÿ”— Two-Step Setup: First define the company code, then assign it to a company for consolidation.
  • ๐Ÿ’ฑ Own Currency: Each company code carries its own local currency, address, and country for legal reporting.
  • โœ… Customizing Request: Creating and assigning the company code is saved under a customizing request.
  • ๐Ÿค– AI Assistance: SAP Joule helps configure enterprise structure and answer company code questions.

Assign Company Code to Company in SAP

What is a Company Code in SAP?

A company code is the central organizational unit of Financial Accounting in SAP. It represents an independent legal entity for which a complete set of accounts and statutory financial statements, such as the balance sheet and profit and loss statement, can be prepared.

Creating a company code is a two-step process: first define the company code, then assign it to a company.

Company Code vs Company: What Is the Difference?

The two units are often confused. The table below shows how they differ:

Aspect Company Code Company
Purpose Legal entity with statutory accounts Consolidation of several company codes
Level Financial Accounting unit Highest organizational unit
Relationship Many company codes One company groups them
Transaction OX02 OX15

Define Company Code

Step 1) Enter Transaction code SPRO in the command field.

Define Company Code in SAP

Step 2) In the next screen, select SAP Reference IMG.

Define Company Code in SAP

Step 3) In the next screen, Display IMG, follow the menu path: SAP Customizing Implementation Guide -> Enterprise Structure -> Definition -> Financial Accounting -> Edit, Copy, Delete, Check Company Code.

Define Company Code in SAP

Step 4) In the next screen, select the activity Edit Company Code Data.

Define Company Code in SAP

In the Change View Company Code screen:

Step 5) Select New Entries.

Define Company Code in SAP

Step 6) In the next screen, enter the following details:

  1. Enter your unique Company Code number.
  2. Enter the Company Name.
  3. In the Additional Data section, enter the City.
  4. Enter the Country for the company.
  5. Enter the Local Currency.
  6. Enter the Default Language.

Define Company Code in SAP

Step 7) Click the Address Details button on the same screen.

Define Company Code in SAP

Step 8) Enter the address details for the company, which appear in print forms:

  1. In the Name section, enter Title and Company Name.
  2. In the Search Term section, enter Search term 1 and 2.
  3. In the Street Address section, enter street, postal code, city, and country.
  4. In the PO Box Address section, enter PO Box and postal code.
  5. In the Communication section, enter the appropriate details.

Define Company Code in SAP

Step 9) After completing this information, press Save Define Company Code in SAP and enter your Change Request number.

Define Company Code in SAP

You have successfully created a new Company Code.

Assign Company Code to Company

Step 1) In the SAP Reference IMG, select the menu path: SAP Customizing Implementation Guide -> Enterprise Structure -> Assignment -> Financial Accounting -> Assign Company Code to Company.

Assign Company Code to Company

Step 2) In the next screen, enter the unique Company ID against the company code you want to assign to this company.

Assign Company Code to Company

Step 3) Press Save Assign Company Code to Company and enter the Customizing request number.

Assign Company Code to Company

You have assigned the desired company code to the company.

FAQs

Transaction OX02 creates and edits a company code, reached in SPRO under Enterprise Structure, Definition, Financial Accounting, Edit Copy Delete Check Company Code. Many teams copy an existing company code with EC01 to inherit its settings.

Yes. A company can group many company codes in a one-to-many relationship. Each company code is an independent legal entity with its own accounts, while the company consolidates their financial statements for group reporting.

Each company code represents a separate legal entity that reports in its country’s currency. This local, or company code, currency is used for statutory financial statements, while group currency is handled at the company or controlling level.

Yes. The SAP Joule AI copilot can explain company code settings, recommend copy templates, and answer enterprise structure questions in natural language, helping consultants configure organizational units faster and with fewer errors.

SAP Joule, the generative AI copilot in S/4HANA Cloud, locates customizing steps, explains configuration fields, and answers natural-language questions about Financial Accounting, giving consultants intelligent, context-aware guidance during setup.

Summarize this post with: