Sub topic 9
Open Items, Incoming and Outgoing Payments, and Clearing
This chapter assumes you know how a subledger posting reaches the general ledger (previous chapter) and are comfortable with debits, credits, and the Fiori launchpad. It covers how open items work and how payments clear them.
What an open item is
An open item is a line item on an open-item-managed account that has not yet been matched by an offsetting posting. Customer and supplier reconciliation accounts always work this way. A G/L account only does so if you set the open item management flag in its master record.
Each open item stays in the open list until a clearing document matches it. Clearing writes a clearing document number and clearing date onto every cleared line. In the Universal Journal these fields are on the ACDOCA line (AUGBL and AUGDT). Cleared lines remain in the table, so the history is preserved.
The payment flow
An invoice and its payment are two separate postings, and clearing links them.
- A supplier invoice debits an expense or stock account and credits the supplier. The credit is an open item.
- The payment run, or a manual outgoing payment, debits the supplier and credits the bank account.
- The system matches the invoice credit with the payment debit. Both lines get the same clearing document number.
Incoming payments mirror this on the customer side: the customer invoice is a debit open item, and the bank receipt credits the customer.
Ways to clear
| Method | When it is used |
|---|---|
| Manual incoming or outgoing payment | A single payment is entered and assigned to items in the app. |
| Automatic payment program | Payment runs select due supplier items and post the payments. |
| Automatic clearing | A scheduled run matches items by assignment criteria such as reference or amount. |
| Manual account clearing | An accountant selects items that offset each other, such as a credit memo and an invoice. |
For a payment that does not equal the invoice amount, you have two choices. A partial payment leaves the original item open and adds the payment on account. A residual item clears the original and creates a new open item for the difference.
Clearing differences
If the selected items do not net to zero, the system needs a way to post the difference. Small differences within tolerance go to a configured account, such as a cash discount or rounding account. Larger differences need a manual decision. Payment differences in foreign currency are posted as exchange rate differences at clearing.
Checking open items with a query
Clearing is visible in the data. Open items are lines with an empty clearing document. This optional check lists the open balance per supplier. It uses only the table fields that this chapter introduced.
SELECT lifnr,
SUM( hsl ) AS open_balance
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2025'
AND lifnr <> ''
AND augbl = ''
GROUP BY lifnr
ORDER BY lifnr
INTO TABLE @DATA(lt_open_items).The sample company code and year are placeholders. Production reports should use released CDS views.
Exercise
A supplier invoice for 1,000 is paid with 600. Compare the partial payment and residual item methods. What is open afterward in each case?
Show answer
With a partial payment, the 1,000 invoice stays open and the 600 payment is posted as an open item on the supplier, so 400 net remains outstanding. With a residual item, the invoice and the payment are cleared together, and a new open item for 400 is created. In both cases the supplier balance is 400, but the residual method leaves one open item instead of two.