Sub topic 9
Open Items, Incoming and Outgoing Payments, and Clearing
This chapter assumes you know the Universal Journal and how subledger postings reach the general ledger (the previous chapters). You should also know basic accounts payable and receivable terms: invoice, payment, and reconciliation account.
What an open item is
An open item is a journal entry line that has not yet been settled. A customer invoice creates a debit line on a customer account. It stays open until a payment, credit memo, or other offsetting line is matched to it. Matching the lines and marking them as settled is called clearing.
Open item management is a setting on the G/L account master record. It applies to:
- Reconciliation accounts for customers and suppliers (always open item managed).
- Clearing accounts, such as goods receipt/invoice receipt (GR/IR) and bank clearing accounts.
- Any other account where you need to track individual items until they are matched.
Accounts without open item management show only balances. Their line items are never cleared.
In ACDOCA, a line is open when its clearing date and clearing document fields (augdt, augbl) are empty. Cleared lines carry the clearing document number and date.
How clearing works
Clearing posts a clearing document. The document does not change the balance of the account. It links the offsetting open items so that together they net to zero in the currency of the document, and it stamps them with the clearing document number and date.
The key rules:
- Items must belong to the same account, or to the same business partner across reconciliation accounts.
- The cleared items must balance to zero. Any difference is posted as a residual item, a payment difference, or an exchange rate difference.
- The clearing date must fall in an open posting period.
- Clearing can be reset. Resetting reopens the items and reverses the clearing document, subject to period control.
Incoming and outgoing payments
Payments in S/4HANA reach the ledger in two ways: manual posting and automatic processing.
Manual payments
In the Fiori launchpad, you post incoming payments (customers) and outgoing payments (suppliers) with the apps for those tasks. The typical steps are:
- Enter the bank account, amount, and payment date.
- Select the business partner and let the app list its open items.
- Assign the payment to items. Unassigned amounts remain as on-account postings or residual items.
- Simulate, then post.
The posting debits the bank (or bank clearing) account, credits the customer reconciliation account, and clears the matched invoice in the same document. For a supplier payment, the signs reverse.
Automatic payment run
For supplier payments in bulk, the automatic payment program selects due invoices. It works in these steps:
- You define parameters: run date, identification, company codes, payment methods, and next payment date.
- The system proposes payments from open items, applying payment terms, blocks, and cash discount rules.
- You review and edit the proposal, for example to block an item.
- The payment run posts the documents and creates payment media (such as a bank file).
Customer-side automation usually relies on bank statement import. The system matches bank statement lines to open items by reference, amount, and partner, and then posts and clears them with posting rules.
Differences, discounts, and residual items
Real payments rarely match invoices exactly. The system offers these outcomes:
| Situation | Typical treatment |
|---|---|
| Payment lower than invoice, with a reason | Residual item: the invoice is cleared and a new open item for the difference is created |
| Payment lower than invoice, partial settlement | Partial payment: the invoice stays open and the payment is assigned to it |
| Small difference within tolerance | Posted automatically to a payment difference account |
| Cash discount taken | Posted to a cash discount account through automatic account determination |
| Payment with no matching invoice | On-account posting that stays open on the partner |
Tolerance groups set the limits for differences that users can post without approval. Check these when users report that a payment cannot be cleared.
Clearing in foreign currency
When an invoice and payment use a foreign currency, the exchange rate at payment can differ from the rate at invoice posting. Clearing posts the difference as a realized exchange rate gain or loss. This is not the same as period-end revaluation, covered in a later chapter. Revaluation adjusts open items that remain unsettled. Realized differences arise only when items are cleared.
Other clearing types
- Account clearing: Matches items in one G/L account, such as a bank clearing account, to net it to zero.
- GR/IR clearing: Matches goods receipt and invoice receipt lines for purchase orders. It usually runs as an automatic task near period end.
- Customer-supplier clearing: Offsets receivables against payables for a partner that is both a customer and a supplier.
Checking open items with a query
You can check how much of a customer reconciliation account is still open by reading uncleared lines. This example sums open amounts per customer for one company code. Production code would normally use released CDS views.
SELECT kunnr,
SUM( hsl ) AS open_amount
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND koart = 'D'
AND augbl = @space
GROUP BY kunnr
ORDER BY kunnr
INTO TABLE @DATA(lt_open_items).Compare the total with the balance of the reconciliation account at the same key date. Note that the query shows only the current state. A true open item list at a past date also needs clearing dates later than that date.
Common errors
- Clearing in a closed period. The posting is rejected. Check period control before the close.
- Items in different currencies. Clearing requires matching document currencies unless an explicit currency conversion applies.
- Blocked items. Payment blocks and dunning blocks stop items from entering payment runs.
- Wrong reconciliation account. Items cleared against the wrong partner leave both accounts with errors. Reset the clearing, then repost.
- Resetting a clearing document. It is not allowed if later documents depend on it or if the period is closed.
Why this matters for the close
Open items feed several close steps. Foreign currency valuation reads open items. Aging reports and bad debt allowances depend on accurate clearing. Leftover items in GR/IR and bank clearing accounts signal missing documents. Before closing a period, review these accounts and clear what can be cleared.
Exercise
A customer pays 980 against an invoice of 1,000 and gives no reason. The difference of 20 is within the user's tolerance group. What happens when you post the payment, and which fields in ACDOCA show that the invoice is settled?
Show answer
The system posts the 20 difference automatically to the payment difference account and clears the invoice. The invoice line and the payment line both receive the clearing document number (augbl) and clearing date (augdt).
Exercise
Why would the query in this chapter not reproduce the open item list as of last month's end?
Show answer
It filters on augbl being empty, which shows only items open now. Items cleared after last month's end were open then. A past-date list must include items whose clearing date is later than the key date.