8.6 Revenue Account Determination and FI-SD General Ledger Integration
Key Takeaways
Revenue account determination employs the Condition Technique to dynamically map SD billing conditions to General Ledger accounts without hardcoding G/L accounts in transactional data.
Seven key fields govern G/L account resolution: application (V), condition type (KOFI/KOFK), chart of accounts, sales organization, customer account assignment group, material account assignment group, and account key.
Account Keys (such as ERL for revenue, ERS for sales deductions, and ERF for freight) are assigned in the Pricing Procedure to specific condition types.
Customer Account Assignment Groups reside in the Business Partner Sales Area Billing view, while Material Account Assignment Groups are configured in the Material Master Sales: Sales Org 2 view.
The Account Determination Analysis tool (VF02/VF03 Environment menu) traces access sequences and field values to diagnose accounting interface posting failures.
Revenue Account Determination and FI-SD General Ledger Integration
In an integrated enterprise ERP system, commercial transactions executed by sales representatives and logistics coordinators must translate automatically into statutory financial accounting entries. When an invoice is issued, the organization must debit the customer's accounts receivable balance and credit the appropriate operating revenue, discount deduction, freight income, and tax liability accounts in the general ledger.
Rather than forcing sales users to manually enter general ledger accounts or hardcoding account numbers into sales order forms, SAP S/4HANA utilizes Revenue Account Determination. This automated integration mechanism uses the same condition technique that drives sales pricing and classic (NAST) output determination, establishing a flexible, rules-based bridge between SD billing documents (VBRK/VBRP) and Financial Accounting (ACDOCA).
Core Architecture: The Condition Technique for Accounting
When a billing document is saved (or released via transaction VFX3), the billing engine calls the financial accounting interface. The system initiates account determination by evaluating an Account Determination Procedure assigned to the billing document type in table TVFK:
KOFI00: The standard account determination procedure for billing documents.- The procedure contains condition type
KOFI(account determination without a CO account assignment) andKOFK(account determination with a CO account assignment, for example to a cost center).
The account determination procedure evaluates its condition types, each linked to an access sequence (such as KOFI). The access sequence checks the account determination condition tables (001 to 005) from most specific to least specific, and the G/L accounts are maintained per table in transaction VKOA.
+-------------------------------------------------------------------------+
| 1. Account Determination Procedure |
| (Table TVFK -> Procedure KOFI00) |
+-------------------------------------------------------------------------+
│
▼
+-------------------------------------------------------------------------+
| 2. Account Determination Type |
| (Condition Type KOFI / Table T685) |
+-------------------------------------------------------------------------+
│
▼
+-------------------------------------------------------------------------+
| 3. Access Sequence |
| (Access Sequence KOFI / Table T682) |
+-------------------------------------------------------------------------+
│
▼
+-------------------------------------------------------------------------+
| 4. Condition Tables (VKOA) |
| Table 001: Cust.AAG / Mat.AAG / Account Key (Most Specific) |
| Table 002: Cust.AAG / Account Key |
| Table 003: Mat.AAG / Account Key |
| Table 004: General (no account key) |
| Table 005: Account Key |
+-------------------------------------------------------------------------+
│
▼
+-------------------------------------------------------------------------+
| 5. General Ledger Account Hit |
| Dr. Customer AR (Reconciliation Acct from BP Master) |
| Cr. Revenue G/L Account 400000 (from Table C001) |
+-------------------------------------------------------------------------+
The Seven Core Determination Parameters
To derive the exact general ledger revenue or deduction account, table VKOA evaluates up to seven distinct determination dimensions:
1. Application
Hardcoded as V for Sales and Distribution. (Application M governs Materials Management purchasing account determination).
2. Condition Type
The account determination condition type: KOFI (without a CO account assignment) or KOFK (with a CO account assignment).
3. Chart of Accounts
The statutory chart of accounts assigned to the Company Code governing the billing document's Sales Organization (e.g., YCOA for standard S/4HANA Cloud, or CAUS for North American local chart of accounts). This ensures account numbers conform to local legal chart structures.
4. Sales Organization
The operational sales organization (VBRK-VKORG). This allows multi-divisional enterprises operating within the same legal entity (Company Code) to post commercial revenue to distinct divisional P&L accounts.
5. Customer Account Assignment Group (KTGRD)
Maintained in the Customer Master / Business Partner record under Role FLCU01 (Customer) → Sales Area Data → Billing tab (field KNVV-KTGRD). Categorizes customers based on commercial and tax characteristics:
01= Domestic Revenues02= Foreign / Export Revenues03= Affiliated / Intercompany Customers
6. Material Account Assignment Group (KTGRM)
Maintained in the Material Master / Product Master under the Sales: Sales Org. 2 view (field MVKE-KTGRM). Categorizes products by business and manufacturing nature:
01= Finished Goods02= Trading Goods / Merchandise03= Services / Consulting04= Raw Materials / Scrap
7. Account Key
The crucial functional link between the Pricing Procedure and Financial Accounting. Configured in the Pricing Procedure (transaction V/08) in the Account Key and Accruals Key columns adjacent to pricing condition types:
ERL= Standard Gross Revenue (assigned to base price condition types such asPR00).ERS= Sales Deductions / Discounts (assigned to discounts such asK004,K005,K007, and the percentage discountRA00).ERF= Freight Revenue (assigned to freight condition types such asKF00).EVV= Cash clearing (cash settlement account, for example in cash sales).MWS= Output tax (assigned to tax condition types such asMWST). The tax account itself is not determined in SD account determination: it is maintained in Financial Accounting under Tax on Sales/Purchases → Posting → Define Tax Accounts (transactionOB40).- Accruals key (
ERU) = Rebate accruals.
Configuration Matrix in Transaction VKOA
Transaction VKOA is the master customizing transaction where functional consultants maintain the mapping between commercial attributes and G/L accounts. The system evaluates condition tables in a prioritized hierarchy from most specific to least specific:
Table 001: Customer AAG / Material AAG / Account Key (Table C001) <-- Evaluated 1st
Table 002: Customer AAG / Account Key (Table C002) <-- Evaluated 2nd
Table 003: Material AAG / Account Key (Table C003) <-- Evaluated 3rd
Table 004: General (no account key) (Table C004) <-- Evaluated 4th
Table 005: Account Key (Table C005) <-- Evaluated 5th
Practical VKOA Table 001 Configuration Matrix
Consider how an enterprise maps revenue and sales deductions in Table 001 (C001):
| App | Type | Chart | SOrg | Cust AAG | Mat AAG | ActKey | G/L Account | Description / Commercial Posting |
|---|---|---|---|---|---|---|---|---|
V | KOFI | CAUS | 1010 | 01 (Dom) | 01 (Fin) | ERL | 400000 | Domestic Revenue — Finished Goods |
V | KOFI | CAUS | 1010 | 02 (For) | 01 (Fin) | ERL | 400010 | Foreign Export Revenue — Finished Goods |
V | KOFI | CAUS | 1010 | 01 (Dom) | 03 (Srv) | ERL | 410000 | Service Revenue — Domestic Consulting |
V | KOFI | CAUS | 1010 | 01 (Dom) | 01 (Fin) | ERS | 420000 | Customer Discounts / Sales Deductions |
V | KOFI | CAUS | 1010 | 02 (For) | 01 (Fin) | ERS | 420010 | Export Sales Discounts |
V | KOFI | CAUS | 1010 | 01 (Dom) | 01 (Fin) | ERF | 430000 | Freight Invoiced to Customer |
Tip
Notice the architectural elegance of this matrix: If a domestic customer (01) purchases a finished good (01), revenue posts to account 400000. If an international customer (02) buys that exact same product, revenue automatically diverts to export revenue account 400010. If a service (03) is sold, it posts to service revenue 410000. No manual user intervention is ever required!
Areas of Account Determination
According to the official billing course, account determination in billing covers more than revenue accounts:
- Revenue, sales deductions, and freight: determined through
VKOAas described above. - Cash settlement: in cash sales, a G/L account for cash settlement is set in the document, so nothing is posted to a customer account.
- Reconciliation account: the system can determine a reconciliation account that differs from the one in the payer's master record.
- Payment cards: card payments require their own G/L accounts.
- Output tax: determined in Financial Accounting from the tax code (see the account key
MWS).
The Complete Balanced Accounting Entry in Financial Accounting
When the billing document is transferred to the Universal Journal (ACDOCA), the system produces a fully balanced, double-entry financial accounting document:
1. The Debit Side: Customer Reconciliation Account
- Where is it determined? It is not determined in
VKOA! The Customer Accounts Receivable balance is derived from the Reconciliation Account maintained in the Business Partner Company Code view under fieldKNB1-AKONT. - Entry: Debit Customer Subledger / Reconciliation Account for the Gross Total Amount (Base Price minus Discounts plus Freight plus Output Tax).
2. The Credit / Debit Sides: P&L Accounts (from VKOA)
- Gross Revenue (
ERL): Credit General Ledger Revenue Account (e.g.,400000). - Sales Discounts (
ERS): Debit General Ledger Sales Deductions Account (e.g.,420000). - Freight Charges (
ERF): Credit General Ledger Freight Income Account (e.g.,430000). - Output Sales Tax (
MWS): Credit Sales Tax Payable Account (derived from FI tax schemaOB40based on tax code).
Accounting Document (Document Type RV) in Table ACDOCA:
===============================================================================
Line Item | Account | Account Description | Debit | Credit
-------------------------------------------------------------------------------
001 | 120000 | Customer AR (Reconciliation Acct)| \$10,700 |
002 | 420000 | Customer Discounts (ERS) | \$ 500 |
003 | 400000 | Domestic Revenue (ERL) | | \$10,000
004 | 430000 | Freight Income (ERF) | | \$ 400
005 | 220000 | Sales Tax Payable (MWST) | | \$ 800
-------------------------------------------------------------------------------
Totals: | \$11,200 | \$11,200
===============================================================================
Diagnosing Failures: Account Determination Analysis
One of the most frequent support tickets in any SAP implementation occurs when a billing document fails to post to accounting, displaying the error message:
"Account determination error: Table C001 with key 1010/01/01/ERL not possible"
When this occurs, the SD billing document is saved in table VBRK, but its posting status is B (posting document not created, account determination error, field VBRK-RFBSK). No FI document is generated, customer receivables are not updated, and revenue is not recognized.
Step-by-Step Diagnostic Trace in VF02 / VF03
To identify and rectify the root cause, consultants execute the Account Determination Analysis tool:
- Open the failed billing document in transaction
VF02(Change) orVF03(Display). - Navigate to menu path:
Environment→Account determination analysis→Revenue accounts. - The analysis screen lists every pricing condition type present in the billing document (e.g.,
PR00,K004,KF00). - Expand condition type
PR00to inspect the access sequence evaluation tree:- The tool displays the exact runtime values extracted from communication structures
KOMK(header) andKOMP(item):- Chart of Accounts:
CAUS - Sales Organization:
1010 - Customer Account Assignment Group:
01 - Material Account Assignment Group:
01 - Account Key:
ERL
- Chart of Accounts:
- The tool evaluates each condition table in turn and shows for each access whether a record was found.
- If all tables in the access sequence fail, the access terminates with a red error icon.
- The tool displays the exact runtime values extracted from communication structures
+--------------------------------------------------------------------------+
| Account Determination Analysis (VF03 - Document 90000078) |
+--------------------------------------------------------------------------+
| [-] Condition Type: PR00 (Account Key: ERL) |
| [-] Access Sequence: KOFI |
| [?] Access 10: Table 001 (Cust.Grp / Mat.Grp / Acct Key) |
| - Search Key: CAUS / 1010 / 01 / 01 / ERL |
| - Result: Condition record NOT found in Table C001 |
| [?] Access 20: Table 002 (Cust.Grp / Acct Key) |
| - Search Key: CAUS / 1010 / 01 / ERL |
| - Result: Condition record NOT found in Table C002 |
| [X] Result: Account Determination Failed! |
+--------------------------------------------------------------------------+
Resolution Workflow
- Identify the missing key combination (e.g., Chart
CAUS, Sales Org1010, Cust.AAG01, Mat.AAG01, KeyERL). - Open transaction
VKOAin customizing, select Table 001, and insert the valid G/L revenue account (e.g.,400000). - Save and transport the customizing entry.
- Return to the blocked billing document in transaction
VF02and select menu path:Billing Document→Release to accounting(or execute mass release transactionVFX3). - The system re-evaluates
VKOA, generates the accounting document inACDOCA, and updates posting statusVBRK-RFBSKtoC(Posting document has been created).
Where are the Customer Account Assignment Group and Material Account Assignment Group maintained in master data to support revenue account determination?
Customer AAG in Company Code Account Control; Material AAG in Plant Storage Location view.
Customer AAG in the BP sales area billing data; material AAG in the Sales: Sales Org. 2 view.
Customer AAG in Sales Order Header (VBAK); Material AAG in Purchasing Info Record (EINA).
Customer AAG in Customer Hierarchy Node; Material AAG in Bill of Materials (BOM) item line.
What is the primary operational role of an Account Key (such as ERL, ERS, or ERF) configured within an SD Pricing Procedure in transaction V/08?
It sets the customer's credit check threshold.
It controls whether a condition record can be maintained manually by sales representatives in sales orders.
It connects a condition type to G/L accounts as a key field of the VKOA tables.
It defines the currency conversion rate applied to international foreign exchange pricing conditions.
A billing document is saved with posting status B (posting document not created because of an account determination error). Which diagnostic procedure identifies the missing G/L configuration?
Use Environment > Account determination analysis > Revenue accounts in VF02 or VF03
Review transaction OBYC to determine whether materials management valuation classes have expired.
Delete the billing document in transaction VF11 and re-create the preceding outbound delivery.
Execute transaction SM12 to release database record locks on table ACDOCA.
Sections you finish are checked off in the contents.