Sub topic 14
Incoming payments and clearing open items
This chapter assumes you know how billing posts a receivable to the customer account (debit customer, credit revenue and tax). It also assumes you know basic double-entry accounting. Here you follow the last step of order-to-cash: the customer pays, and the receivable is closed.
What happens when a customer pays
Billing leaves an open item on the customer account in Accounts Receivable. An open item is a posted line that has not yet been matched with an offsetting line. An incoming payment posts a credit to the same customer account and a debit to a bank or bank clearing account. Clearing is the step that matches the invoice line against the payment line. Both lines get the same clearing document number and clearing date, and they stop being open.
The payment posting looks like this for a 1,000 invoice plus 190 tax:
| Step | Debit | Credit |
|---|---|---|
| Billing | Customer receivable 1,190 | Revenue 1,000, output tax 190 |
| Incoming payment | Bank 1,190 | Customer receivable 1,190 |
Ways to post and clear
- Manual: transaction F-28 (Post Incoming Payments) in SAP GUI, or the Fiori app Post Incoming Payments. You enter the bank account, amount and customer, then select the open items to clear.
- Automatic: the bank statement is imported and posted by the Manage Bank Statements process. Posting rules and search strings link payments to invoices, often by the invoice reference in the payment text.
- Account clearing without payment: F-32 (Clear Customer) matches items that offset each other, such as an invoice and a credit memo.
If the payment does not match the invoice exactly, you have three options:
- Post the difference as a residual item. The invoice is cleared and a new open item remains for the difference.
- Post it as a partial payment. The invoice stays open and the payment is attached to it as a payment on account.
- Write off the difference to an expense or revenue account, if it is within the tolerance configured for the company code. Cash discount differences are posted automatically to the discount account when the customer pays inside the discount period.
Verifying the result
Clearing sets fields on the line items in the Universal Journal. You can check whether a billing document's receivable line is still open by reading the receivable line and its clearing fields:
DATA(lv_billing) = CONV vbeln_vf( '0090001234' ).
SELECT rbukrs, gjahr, belnr, docln, kunnr, hsl, augdt, augbl
FROM acdoca
WHERE rldnr = '0L'
AND awtyp = 'VBRK'
AND awref = @lv_billing
AND koart = 'D'
INTO TABLE @DATA(lt_receivable).Here koart = 'D' keeps only customer lines. augbl is the clearing document number and augdt is the clearing date. If both are empty, the item is still open.
Common errors
- A payment on account sits unassigned, so the invoice looks overdue. Clear the two items against each other.
- The wrong customer is on the payment. Reverse the payment, then post it again.
- Clearing is posted in a closed posting period. Open the period or use the correct date.
- A reconciliation account shows a balance but the customer account does not. Always post to the customer account, never directly to the reconciliation account.
Exercise
A customer owes an invoice of 1,190 and pays 1,000. The finance team wants the invoice closed and the remaining 190 tracked as a new open item. Which approach is that, and what does the invoice line show afterwards?
Show answer
It is a residual item. The invoice line is cleared with a clearing document number and clearing date (augbl and augdt are filled), and a new open item of 190 is posted to the customer account.