FICO · Beginner · Configuration
How to define a chart of accounts and assign it to a company code (OB13, OB62)
Define the basic settings of a chart of accounts, its account groups and retained earnings account, assign it to a company code and create one G/L account with a company code segment.
- 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 · OB13 · OBD4 · OB53 · OB62 · FS00
Your project assignment
A hypothetical group builds its own chart of accounts ZCOA with ten-digit account numbers for a new company code ZD10. Balance sheet accounts start with 1, expenses with 6. Create the chart, its account groups and retained earnings account, assign it and test with one expense account.
Where to start: URLs and transactions
- SAP GUI transactions
- OB13, OBD4, OB53, OB62, FS00
- IMG path
- Financial Accounting → General Ledger Accounting → Master Data → G/L Accounts → Preparations → Edit Chart of Accounts List; Assign Company Code to Chart of Accounts
- Related guide: company code
- How to create a company code in SAP FI and assign it to a company (OX02, OX16)
- SAP Learning: Maintaining General Ledger (G/L) Accounts
- https://learning.sap.com/courses/customizing-core-settings-in-financial-accounting-in-sap-s4hana/maintaining-general-ledger-g-l-accounts
Prerequisites
- Customizing authorization for general ledger master data and a customizing transport request.
- An approved account plan: chart key, account number length, account groups with number intervals, and the group chart of accounts if consolidation uses one.
- The company code exists and no documents have been posted in it yet.
Configuration workflow
From account plan to a postable G/L account
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
OB13 → Edit Chart of Accounts List
Create the chart of accounts with a four-character key. Enter the description, maintenance language, length of the G/L account number and, if used, the group chart of accounts. Set the Blocked indicator while you build it.
OB13 → Edit Chart of Accounts ListERPClimb · illustrative screen - Chart of accounts
ZCOA (hypothetical)- Maintenance language
EN- Length of G/L account number
10- Blocked
Set until complete
Expected result: The chart is saved and appears in the list.
Why this matters: These basic settings apply to every account and company code that uses the chart.
- 2
OBD4 → Define Account Group
Create account groups for the chart with their number intervals, for example one group for balance sheet accounts and one for expenses. Check the field status of each group.
OBD4 → Define Account GroupERPClimb · illustrative screen - Account group
ZBS (hypothetical), 1000000000 to 1999999999- Account group
ZEX (hypothetical), 6000000000 to 6999999999
Expected result: The groups exist with non-overlapping intervals.
Why this matters: The account group decides the number interval and which fields appear when an account is created.
- 3
OB53 → Define Retained Earnings Account
Enter the retained earnings account for the P&L statement account type of the new chart.
OB53 → Define Retained Earnings AccountERPClimb · illustrative screen - Chart of accounts
ZCOA- P&L statement account type
X- Account
3300000000 (hypothetical)
Expected result: The entry is saved; a warning appears if the account does not exist yet.
Why this matters: Profit and loss accounts need this account for the balance carryforward.
- 4
OB13 → remove the block
When groups and retained earnings are defined, open the chart again and remove the Blocked indicator.
OB13 → remove the blockERPClimb · illustrative screen - Chart of accounts
ZCOA- Blocked
Not set
Expected result: The chart can now be used by company codes.
Why this matters: A blocked chart cannot be used by any company code.
- 5
OB62 → Assign Company Code to Chart of Accounts
Assign the chart to the company code. Enter a country chart of accounts only if alternative account numbers are required for local reporting.
OB62 → Assign Company Code to Chart of AccountsERPClimb · illustrative screen - Company code
ZD10- Chart of accounts
ZCOA- Country chart of accounts
Empty unless required
Expected result: The company code shows the new chart.
Why this matters: Every company code must have exactly one operative chart of accounts.
- 6
FS00 → Edit G/L Account Centrally
Create one expense account in the chart and company code: choose account type and account group, enter the texts, then the company code data such as currency and field status group.
FS00 → Edit G/L Account CentrallyERPClimb · illustrative screen - G/L account
6100000000 (hypothetical)- Account group
ZEX- Account currency
EUR- Field status group
As agreed
Expected result: The account is saved with a chart of accounts segment and a company code segment.
Why this matters: An account can be posted only when both segments exist.
- 7
FB50 → test posting
Post a small document to the new account and an offsetting test account in the development client and display the account balance.
FB50 → test postingERPClimb · illustrative screen - Company code
ZD10- G/L account
6100000000- Amount
50.00 EUR (hypothetical)
Expected result: The document posts and the balance shows the amount.
Why this matters: A posting proves that chart, assignment and account segments are consistent.
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
- OB62 shows the chart of accounts for the company code, and FS00 can create an account in that chart and company code.
- A test document posts to the new account in the development client.
Common errors and what to check
OB62 refuses to change the chart of accounts.
Check: Documents or G/L accounts already exist in the company code, or the controlling area uses another chart.
FS00 says the account number is not in the interval of the account group.
Check: The number does not fit the range defined in OBD4.
a profit and loss account cannot be saved.
Check: No retained earnings account is defined for the P&L statement account type in OB53.
no company code can use the chart.
Check: The chart is still set to blocked in OB13.
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.