Sub topic 13
What S/4HANA changes for order-to-cash
This chapter assumes you know the classic order-to-cash chain (sales order, delivery, goods issue, billing, payment) and basic double-entry accounting. It also assumes you can read simple SQL. Here you will see what S/4HANA changes in that chain and where those changes show up in tables, transactions, and daily work.
The document sequence stays the same. A sales order still leads to a delivery, a goods issue, a billing document and a payment. The changes sit underneath and around that sequence: how accounting data is stored, how customers are maintained, and how users reach the process.
The three changes that matter
| Area | ECC (classic) | S/4HANA |
|---|---|---|
| Accounting storage | Separate FI, CO, and asset ledgers (BKPF/BSEG, COEP, ANEP) | One line-item table, ACDOCA (the Universal Journal) |
| Customer maintenance | Customer master (KNA1, KNB1, KNVV) | Business Partner (BP), with customer data kept in the same tables as before |
| User interface | SAP GUI transactions | SAP Fiori apps, with SAP GUI still available |
The Universal Journal
In ECC, one billing document could create an FI document, several CO postings and, for assets, more entries. These lived in different tables. Reconciliation between FI and CO was a regular task.
In S/4HANA, the Universal Journal stores all of these postings as line items in table ACDOCA. FI, CO, asset accounting and the Material Ledger share one source. The accounting document header still lives in BKPF. Line items are in ACDOCA, keyed by ledger, company code, fiscal year, document number and line item.
Several ECC tables still exist as compatibility views. BSEG, for example, is now read through a view over ACDOCA, and the old aggregate tables such as GLT0 were replaced by views that calculate totals on the fly.
For order-to-cash, this has three practical effects:
- Billing creates a posting that already carries the controlling information, such as profit center and segment. No separate CO document is needed for revenue.
- Goods issue posts cost of goods sold with the same line item structure.
- You can reconcile SD to FI by reading one table.
Reading the journal for a billing document
Each ACDOCA line keeps a reference to the document that caused it. For a billing document, AWTYP is VBRK and AWREF holds the billing document number. The query below reads the lines in the leading ledger 0L.
DATA(lv_billing) = CONV vbeln_vf( '0090001234' ).
SELECT rbukrs, gjahr, belnr, docln, racct, hsl
FROM acdoca
WHERE rldnr = '0L'
AND awtyp = 'VBRK'
AND awref = @lv_billing
INTO TABLE @DATA(lt_journal).Expect at least two kinds of lines. One debits the customer reconciliation account. The others credit revenue and tax accounts. HSL is the amount in company code currency. Debits are positive and credits are negative.
Ledgers and parallel accounting
ACDOCA carries a ledger field, RLDNR. Ledger 0L is the leading ledger. A company that needs a second accounting standard can add a non-leading ledger. Both ledgers hold lines in the same table, separated by this field. If you omit RLDNR in a query, you may see each posting twice. This is a common source of wrong totals.
Business Partner
In ECC, you maintained a customer with transactions such as XD01 and VD01. In S/4HANA, the Business Partner is the leading object. You maintain customers with transaction BP, or with Fiori apps.
A Business Partner holds general data once. It can also carry several roles. Two roles matter for order-to-cash:
- FLCU00: customer in the accounting view (company code data).
- FLCU01: customer in the sales view (sales area data).
A supplier role can be added to the same partner, so a company that is both customer and vendor needs only one record.
Customer data does not disappear. KNA1, KNB1 and KNVV still hold it, and sales documents still read from them. The link is the number: in most systems the Business Partner number equals the customer number. During conversion, an existing customer becomes a Business Partner with the same number.
Common errors
- Using XD01 to create a customer. In S/4HANA these transactions are blocked or redirect to BP. Create the customer in BP with the customer roles.
- Creating a partner without the sales role. The partner exists, but a sales order fails because no sales area data is available. Add the sales role and a sales area.
- Missing number range alignment. If the Business Partner and customer number ranges do not match, the numbers differ and users are confused. Configure the ranges so they correspond.
Fiori and the user interface
SAP Fiori is the browser-based interface. Instead of remembering transaction codes, users open apps from the Fiori launchpad. SAP GUI transactions such as VA01 or VF01 still work, and many companies keep them for power users.
Some Fiori apps change how you work with order-to-cash:
- Manage Sales Orders and Create Sales Orders, for order entry and change.
- Sales Order Fulfillment, for finding orders with issues in delivery.
- Manage Billing Documents, for working with invoices.
- Display Customer Line Items and Manage Customer Line Items, for open receivables.
The apps read the same underlying documents. An order created in an app has the same document flow as one created in VA01.
Other changes to know about
- Credit management. The classic credit check (FD32 and the credit control area) is replaced by SAP Credit Management, which uses the Business Partner and a credit segment. The credit check in the sales order calls this component.
- Material numbers. The material number field is longer in S/4HANA (up to 40 characters). Code that hardcodes 18 characters can truncate values.
- Data model simplification. Some tables that stored status or totals, such as the old document index tables for SD, were removed or replaced. Check the simplification list before you rely on an old table.
- Availability check. Advanced ATP (aATP) is available as an option. The standard ATP check still works.
Verifying the chain with tables
To confirm that a transaction reached accounting, follow the documents step by step. First read the successors of the order in the document flow table VBFA. VBTYP_N identifies each follow-on type, for example J for a delivery and M for an invoice.
DATA(lv_vbeln) = CONV vbeln_va( '0000012345' ).
SELECT vbelv, posnv, vbeln, posnn, vbtyp_n
FROM vbfa
WHERE vbelv = @lv_vbeln
INTO TABLE @DATA(lt_flow).Then take the billing document number from the result and run the ACDOCA query shown earlier. If the billing document exists but ACDOCA returns no rows, the document is probably blocked from accounting. In that case, check the billing due list and the accounting status of the billing document.
Decision points for an implementation
- Plan the Business Partner conversion before anything else. Customer data cleanup is easier before conversion than after.
- Decide on the number of ledgers early. Adding a ledger later is possible but needs a plan for historic data.
- Review custom reports that read removed or replaced tables.
- Decide which users move to Fiori and which stay on SAP GUI.
Exercise
A report totals the amounts in ACDOCA for one billing document and shows twice the expected revenue. The company runs a leading ledger and one non-leading ledger. What is the likely cause, and how do you fix the query?
Show answer
The query does not filter on the ledger field RLDNR, so each posting is counted once per ledger. Add a condition such as RLDNR = '0L' to read only the leading ledger.
Exercise
A user creates a customer with the Business Partner transaction, but VA01 reports that the customer is not available for the sales area. Name the most likely missing item.
Show answer
The partner has no customer sales role (FLCU01) with data for that sales area, so no sales area data exists.