FICO General Ledger Part 1: Foundations — Company Code, Chart of Accounts and GL Master Data
Free sample lesson · open to everyone
The general ledger is the backbone of SAP Finance: every financial posting ends here. Learn the organizational elements (company code, chart of accounts, fiscal year variant, ledger), how GL accounts are built in three layers, and the global settings that control every posting — with the exact configuration path for each.
In this lessonShow sectionsHide sections
Visual overview
The situation: a real project scenario
A newly onboarded FI consultant on a global rollout created revenue accounts as nonoperating income, so CO never received revenue and margin reports were empty. Changing the design to "primary costs or revenue" before go-live (after reversing test postings) fixed it; the team added an account-type review step to the master data checklist.
Explanation
This series on the General Ledger covers, in Part 1, the foundations — organization, chart of accounts and master data — and in Part 2, the posting flow, integration and the universal journal. This lesson is Part 1.
The company code is the legal entity for which a complete set of books — balance sheet and P&L — is produced, and it carries its own currency and financial statements. The leading ledger, 0L, holds the main accounting principle, while other ledgers can be added for parallel valuation under different accounting standards.
A chart of accounts lists the GL accounts available, and one chart can serve many company codes to keep reporting consistent across them; there's typically an operational chart used for daily postings, with optional group and country charts layered on top, and each company code is assigned to one chart of accounts.
GL accounts themselves carry two levels of data: a chart-of-accounts part, with account number, type, account group and texts, and a company-code part, with currency, tax category, open item or line item display, sort key and field status group — GL accounts have a chart-of-accounts part and a company-code part, and account groups control the number ranges and screen fields used when creating them.
The fiscal year variant defines the period structure — typically 12 periods plus special periods for year-end — and the posting period variant decides which periods are open for posting, by account type; fiscal year variant and posting period variant decide when you can post. Field status groups decide which fields are required, optional or suppressed when posting to a given account, and the retained earnings account carries P&L balances forward into the new year.
One point specific to S/4HANA is worth flagging: cost elements are themselves GL accounts there, so the account type chosen at creation — balance sheet, nonoperating, primary cost element or secondary cost element — matters directly for how the account behaves in Controlling. Changing field status or account type after postings already exist is risky, so it pays to get the master data design right before go-live.
A useful exercise is to create one account in FS00 and look through every tab — the chart-of-accounts tab and the company-code tab map exactly onto the two levels described above.
In practice: review a company code and its assigned chart of accounts, create a GL account (balance sheet type) and a primary cost account in FS00, open the current period in the posting period variant, and post a test entry and display the account balance. The checkpoint is being able to explain every field maintained and why the posting succeeded.
Code example
===== CONFIG MAP (SPRO > Enterprise Structure / Financial Accounting) =====Company code ............. OX02 (copy with EC01)Chart of accounts ........ OB13 → assign to company code OB62Fiscal year variant ...... OB29 → assign OB37Posting period variant ... OBBO → assign OBBP → open/close periods OB52Field status variant ..... OBC4 → assign OBC5Account groups ........... OBD4 | Retained earnings: OB53 ===== MASTER DATA =====FS00 central maintenance | FSP0 chart level | FSS0 company code levelAccount types (S/4HANA): Balance sheet | Nonoperating expense/income | Primary costs/revenue | Secondary costs ===== CHECK =====FAGLB03 account balance | Fiori: Display GL Account Balances / Trial BalanceWatch out
Common mistakes
- Treating the company code as a plant or site.
- Creating accounts without an account group strategy.
- Wrong S/4HANA account type (CO impact).
- Forgetting open item management on clearing accounts.
- Opening all periods permanently.
Do this
Best practices
- One operational chart of accounts for the group.
- Define account groups with number ranges.
- Decide account type with controlling.
- Use open item management for clearing accounts.
- Open and close periods deliberately each month.
In the interview
Interview angle
Questions: "What is a company code?", "What are the two levels of a GL account?", "What changes for cost elements in S/4HANA?", "How do you control posting periods?"
Strong answer: company code as legal entity, chart of accounts assignment, chart/company-code master data, account types, fiscal year and period variants, field status.
Practice this lesson
Quick check
0 of 3 questions attempted
Question 1 of 3
Interviewers frequently ask candidates to explain, in their own words, what the Universal Journal changed and why it matters operationally (real-time FI-CO alignment, single source of truth, elimination of reconciliation runs) - strong answ. In the General Ledger context, which answer shows the strongest practical judgment?
Question 2 of 3
A GL account has settings at two levels. Which setting belongs to the company code level?
Question 3 of 3
A team wants to create revenue accounts as "nonoperating income" to save time. What is the consequence in S/4HANA?
Practise this in an interview
Answer in your own words and get instant feedback, the way an interviewer would judge it.
1A vendor invoice for a purchase order is received in USD, while the PO was created in EUR, and the company code's local currency is GBP. Walk through how SAP calculates and posts the currency amounts and any exchange rate differences to the GL.
2During year-end close configuration, what chart of accounts and GL account master settings ensure tax-relevant accounts are correctly identified for statutory tax reporting?
Was this lesson helpful?
Keep exploring
More lessons in this topic
- FICO General Ledger Part 3: GL Account Master Settings That Matter
- FICO General Ledger Part 4: Posting Periods, Document Types and Number Ranges
- FICO General Ledger Part 5: Financial Statement Versions and GL Troubleshooting
- SAP FI Validation and Substitution: Prerequisites, Checks and Posting Troubleshooting
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.