SD Billing Part 3: Revenue Account Determination (VKOA)
Preview · a free account unlocks the full lesson
How billing finds G/L accounts: account keys from the pricing procedure, the KOFI condition type and access sequence, account assignment groups for customer and material, VKOA tables, posting errors when accounts are missing, and how to design account determination with finance.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 2 covered billing type configuration; this lesson looks at the accounts that sit behind the revenue postings themselves.
Each revenue-relevant line in the pricing procedure carries an account key — ERL for revenue, ERS for sales deductions, ERF for freight, MWS for tax, and so on — and these account keys are what revenue account determination actually uses to decide which G/L account a given amount gets posted to.
This determination runs through its own instance of the condition technique: a dedicated account determination procedure, KOFI00, built from a condition type, KOFI (or KOFK when CO-relevant data is involved), with its own access sequence and condition tables.
A typical key used to look up the right account combines the chart of accounts, the sales organization, the customer's account assignment group, the material's account assignment group, and the account key itself, and this combination is maintained in table VKOA across several access levels of decreasing specificity: table 001 keyed on customer group and material group plus account key, 002 on customer group plus account key, 003 on material group plus account key, 004 on a general entry plus account key, and 005 on account key alone as the final fallback.
The customer account assignment group comes from the customer's sales area data on the billing tab (for example, 01 for domestic, 02 for foreign, 03 for affiliated companies), while the material's account assignment group comes from the material's Sales Org.
2 view; if either of these groups is missing, the more specific VKOA tables simply can't be matched, and the system either falls back to a less specific table or, if none match, produces an outright error.
When that happens, the billing document still saves, but with a posting status of "account determination error," and it has to be released — through VFX3 or VF02 — only after the missing VKOA entry or master data has been corrected.
Setting this up well means defining the account assignment groups together with finance, maintaining VKOA entries for every combination that's actually in use, checking that the account keys attached in the pricing procedure are correct, and then posting test invoices for each relevant combination and reviewing the result — the aim is that domestic, export and affiliated-company customers each post cleanly to the revenue accounts agreed with finance.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
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.