Sub topic 12
Invoice verification and the three-way match
This chapter assumes you know how a purchase order (PO) and a goods receipt (GR) are posted, and that you understand debits, credits, and the GR/IR clearing account from the previous chapter.
What invoice verification does
Invoice verification is the step where you record the supplier's invoice against the PO. It is usually posted in transaction MIRO or the Fiori app Create Supplier Invoice. The posting does three things:
- It creates a supplier invoice document in Materials Management (MM) and a matching accounting document.
- It credits the supplier's account, which creates an open payable.
- It updates the PO history (table EKBE) with a new entry of type VGABE 2.
The three-way match
Before the system accepts the invoice, it compares three sources:
- The purchase order: the agreed quantity and price.
- The goods receipt: the quantity that actually arrived.
- The invoice: the quantity and amount the supplier is billing.
The system checks each item. The invoiced quantity should not exceed the quantity received minus what has already been invoiced. The invoiced price should match the PO price. If a value is outside the allowed tolerance, the invoice is blocked. The next chapter covers tolerances.
Accounting entries
For a stock-valued item at moving average price, the earlier goods receipt posted debit inventory and credit GR/IR. The invoice then posts:
| Account | Debit | Credit |
|---|---|---|
| GR/IR clearing | 1,000 | |
| Input tax | 190 | |
| Supplier (accounts payable) | 1,190 |
The GR/IR balance for those items is now cleared. If the invoice price differs from the PO price, the difference goes to a price difference account, or to inventory, depending on the price control of the material.
Posting an invoice
- Open Create Supplier Invoice (MIRO) and enter the invoice date, the posting date, and the gross amount.
- Enter the PO number. The system proposes the items from the PO history that still need an invoice.
- Check the quantities and amounts per item.
- Confirm that the balance shown on screen is zero. This means the entered items plus tax equal the gross amount.
- Post the invoice.
You can see the result in the PO history. Use the query below to list the goods receipts (VGABE 1) and invoice receipts (VGABE 2) for one PO:
SELECT ebeln, ebelp, vgabe, belnr, buzei, menge
FROM ekbe
WHERE ebeln = @lv_ebeln
ORDER BY ebelp, belnr
INTO TABLE @DATA(lt_history).
LOOP AT lt_history INTO DATA(ls_hist).
" VGABE 1 = goods receipt, 2 = invoice receipt
WRITE: / ls_hist-ebelp, ls_hist-vgabe, ls_hist-belnr, ls_hist-menge.
ENDLOOP.Common errors
- Balance not zero: the gross amount does not equal the item amounts plus tax. Check the tax code and any delivery costs.
- No items proposed: the PO item may lack a goods receipt, and the item is flagged as GR-based invoice verification. Post the goods receipt first.
- Invoice blocked: the price or quantity is outside tolerance.
Exercise
A PO item is for 10 pieces. 8 pieces were received and 8 were invoiced. The supplier now sends a second invoice for the remaining 2 pieces, but no further goods receipt has been posted. What does the three-way match do with this invoice, and why?
Show answer
The match fails for quantity. The invoiced quantity (2) exceeds the received quantity minus the quantity already invoiced (8 - 8 = 0). The system therefore blocks the invoice, or rejects it for GR-based items, until the goods receipt for the remaining 2 pieces is posted.