ERPClimb logoERPClimb
Billing
SD / O2Cintermediate 5 min read

SD Billing Part 3: Revenue Account Determination (VKOA)

Preview · a free account unlocks the full lesson

Key takeaway

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 sections

Visual overview

SD Billing Part 3: Revenue Account Determination (VKOA) — learning sheetFlow: Define account assignment groups with finance → Maintain VKOA entries for all combinations in use → Check account keys in the pricing procedure → Post invoices for each combination and review. Key ideas: ACCOUNT KEYS; DETERMINATION PROCEDURE; TABLES (VKOA); MASTER DATA INPUTS. Watch out: A missing VKOA entry blocks the invoice from posting ("account determination error").ERPClimb.com / SD / LESSON 3/10 / LEARNING SHEETSD Billing Part 3: Revenue Account Determination (VKOA)1 · HOW IT FLOWS1Define accountassignmentgroups with…2Maintain VKOAentries for allcombinations in…3Check accountkeys in thepricing…4Post invoicesfor eachcombination and…2 · KEY IDEAS EXPLAINEDAccount KeysAssigned per line in the pricing procedure (V/08).Group conditions to revenue streams: revenue,deductions, freight, tax, accruals.Determination ProcedureBilling type → account determination procedure(KOFI00).Condition type KOFI with access sequence (e.g.KOFI: most specific tables first).Tables (Vkoa)001: customer group / material group / accountkey.002: customer group / account key.Master Data InputsCustomer account assignment group (e.g. 01domestic, 02 foreign, 03 affiliated).Material account assignment group (e.g. 01 tradinggoods, 02 services).3 · REMEMBER · WATCH OUTRememberEach revenue-relevant pricing line has an account key (ERL revenue,ERS deductions, ERF freight, MWS tax…).Revenue account determination uses condition technique: procedureKOFI00, condition type KOFI (KOFK with CO), access sequence, tables.Typical key: chart of accounts + sales org + customer accountassignment group + material account assignment group + account key →…!Watch outA missing VKOA entry blocks theinvoice from posting ("accountdetermination error").4 · IN A REAL PROJECTAfter launching a new product line, the nightly billing run produced 900 invoices with "accountdetermination error". The new materials had no account assignment group in the sales org 2 view, soVKOA's material-dependent table was not found and no fallback entry existed. The team maintained the group…Original ERPClimb learning sheet • Verify against your SAP release and edition

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.

Free account

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

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.