Sub topic 13
Tolerances and blocked invoices
This chapter assumes you know the three-way match from the previous chapter and have used the invoice entry screen in SAP GUI or Fiori. It also assumes you can read a basic ABAP report. It covers how S/4HANA decides whether a supplier invoice that differs from the purchase order or goods receipt may be posted, and what happens when it may not.
Why invoices differ from orders
The three-way match compares three values for each item: the ordered quantity and price, the goods receipt quantity, and the invoice quantity and price. In practice they rarely agree exactly. Suppliers round freight, prices change between order and invoice, and goods arrive in several partial deliveries.
If every difference stopped the invoice, accounts payable would spend its time on trivial cases. If no difference stopped it, a wrong price could be paid without anyone noticing. Tolerances set the boundary between the two.
How the check works
When you post an invoice, the system compares each item against the purchase order and the goods receipts. For every variance type it looks up a tolerance limit. There are three outcomes:
- The variance is within the limit, and the invoice posts normally.
- The variance is within the small-difference limit, and the system posts the invoice and books the difference to a difference account.
- The variance exceeds a limit, and the system still posts the invoice but sets a block on it.
The invoice is not rejected. It exists as an accounting document and the liability is recorded. The block only stops payment until someone releases it.
Tolerance keys
Tolerances are defined per company code and per tolerance key. In the configuration activity "Set Tolerance Limits" (transaction OMR6), each key has four optional limits: an absolute lower and upper amount, and a percentage lower and upper limit. A variance is blocked if it exceeds either the absolute or the percentage limit.
| Key | Meaning |
|---|---|
| AN | Amount for an item without order reference |
| AP | Amount for an item with order reference |
| BD | Form small differences automatically |
| BR | Percentage variance of the order price quantity unit, invoice before goods receipt |
| BW | Percentage variance of the order price quantity unit, goods receipt before invoice |
| DQ | Quantity variance |
| DW | Quantity variance when the goods receipt quantity is zero |
| KW | Variance from a condition value |
| LA | Amount of a blanket purchase order |
| LD | Blanket purchase order time limit exceeded |
| PP | Price variance |
| PS | Price variance against an estimated price |
| ST | Date variance (value multiplied by days) |
Two details cause most configuration mistakes:
- Each key has a "Do not check" indicator. If you leave it off and leave all limits empty, the tolerance is zero, so any variance of that type blocks the invoice. If you set it, the check is skipped entirely.
- Tolerances do not carry across company codes. A new company code needs its own set, or its invoices behave differently from the others.
Blocking reasons
The block that results depends on which check failed. The invoice item shows the reason, which falls into one of these groups:
- Quantity: the invoiced quantity exceeds the goods received quantity by more than the DQ limit.
- Price: the invoice price differs from the order price by more than the PP limit.
- Amount: the item value exceeds the AP limit.
- Date: the invoice arrives later than planned, beyond the ST limit.
- Manual: the person posting the invoice sets a block deliberately.
- Stochastic: a random sample of invoices is blocked for review. This is configured by value and by probability, and it works as a spot check.
Blocked invoices carry the payment block key R in the document header. That key is only the standard setting, so check your own configuration before filtering on it.
Finding and releasing blocked invoices
Release is done in transaction MRBR. You select by company code, supplier, or block reason, view the invoice and its variance, and then release it. The release clears the block and the invoice becomes payable in the next payment run. In the Fiori launchpad, look for the blocked-invoice release apps in your assigned catalogs. Which ones appear depends on your release and roles.
Some invoices need a correction instead of a release. If the supplier billed the wrong price, release would pay the wrong amount. Usually the right step is to ask for a credit memo or a corrected invoice, then post it. Reversing the blocked invoice is also possible.
Blocked invoices can also be released in the background. A scheduled job runs the automatic release for invoices whose cause has gone away, for example when a late goods receipt now covers a quantity variance.
Reading blocked invoices with ABAP
The invoice header table RBKP holds the payment block key. This report lists posted invoices of one company code that carry block R. The table RBKP_BLOCKED additionally records the variance reasons per invoice.
REPORT zp2p_blocked_invoices.
PARAMETERS p_bukrs TYPE bukrs OBLIGATORY.
SELECT belnr, gjahr, lifnr, rmwwr, waers, zlspr
FROM rbkp
WHERE bukrs = @p_bukrs
AND rbstat = '5' " 5 = posted
AND zlspr = 'R' " standard invoice block key
ORDER BY gjahr, belnr
INTO TABLE @DATA(lt_blocked).
IF lt_blocked IS INITIAL.
WRITE / 'No blocked invoices found.'.
ENDIF.
LOOP AT lt_blocked INTO DATA(ls_blocked).
WRITE: / ls_blocked-belnr, ls_blocked-gjahr, ls_blocked-lifnr,
ls_blocked-rmwwr, ls_blocked-waers.
ENDLOOP.Common errors
- Tolerances too wide. Large limits let price errors through without review. Review the PP and AP values with the controlling and accounts payable teams.
- Tolerances too tight. A zero limit on DQ blocks every partial delivery. Teams then release in bulk and stop checking the reasons.
- Blocks forgotten. Blocked invoices do not appear in payment proposals. Suppliers then chase payment, and discounts are lost. Assign someone to work the MRBR list on a schedule.
- Wrong block key. If your company uses a custom payment block key, filters on R miss those invoices.
Exercise
A supplier invoice for 100 pieces arrives, but the goods receipt shows only 90 pieces. The DQ tolerance key for the company code is empty and "Do not check" is not set. What happens when the invoice is posted, and what can you do afterwards?
Show answer
With an empty DQ limit and the check active, the tolerance is zero. The 10-piece quantity variance exceeds it, so the system posts the invoice with a block (payment block R). The invoice is not paid until the block is cleared. You can wait for the remaining goods receipt and then release it in MRBR, or have the invoice corrected or reversed if the supplier over-billed.
Exercise
Why does the system book small differences within the BD limit to a difference account instead of blocking the invoice?
Show answer
The BD key lets the system absorb trivial differences, such as rounding, automatically. The invoice posts with a zero balance and the difference goes to a difference account. This avoids blocks that would cost more effort to release than the amount involved.