Sub topic 18
Period-end GR/IR clearing and accruals
This chapter assumes you know how a goods receipt and an invoice receipt post to the GR/IR clearing account (covered in the chapters on accounting entries and invoice verification). It also assumes you can read a basic general ledger posting with debits and credits. Here you will see why the GR/IR account holds open balances at period end, how to analyze and clear them, and how accruals keep expenses in the right period.
Why the GR/IR account is never empty
With a standard valuated purchase order, the goods receipt and the invoice receipt are separate events. Each one posts against the GR/IR clearing account, and the account nets to zero only when both have happened for the same quantity and value.
| Event | Debit | Credit |
|---|---|---|
| Goods receipt | Inventory (or consumption) | GR/IR clearing |
| Invoice receipt | GR/IR clearing | Accounts payable (supplier) |
At period end, the balance of the GR/IR account is the sum of two kinds of open items:
- Goods received but not yet invoiced. The account has a credit balance.
- Invoiced but not yet received. The account has a debit balance.
Both are normal during the month. They become a problem when they stay open for a long time, because the balance sheet then shows liabilities that are not real, or hides expenses that already occurred.
What the period-end task has to answer
For each open GR/IR item, someone has to decide which of these situations applies:
- Timing difference. The invoice is on its way. Leave the item open and, if needed, accrue the cost.
- Delivery was never completed. The supplier will not deliver the rest. Close the purchase order item and clear the difference.
- Invoice was never needed or was posted wrongly. Correct the invoice or the receipt.
- Price or quantity differences were not resolved. Settle them with the supplier before clearing.
Clearing without this analysis moves an unexplained balance to the profit and loss statement. That hides the real cause.
Analyzing open items
Open items sit on the purchase order history. You can see the same pattern with the history table EKBE that you used earlier. Goods receipts have VGABE 1 and invoice receipts have VGABE 2. The next query lists, per PO item, the received and invoiced quantities so you can spot gaps.
SELECT ebeln, ebelp,
SUM( CASE vgabe WHEN '1' THEN menge ELSE 0 END ) AS gr_qty,
SUM( CASE vgabe WHEN '2' THEN menge ELSE 0 END ) AS ir_qty
FROM ekbe
WHERE ebeln = @lv_ebeln
GROUP BY ebeln, ebelp
INTO TABLE @DATA(lt_balance).
LOOP AT lt_balance INTO DATA(ls_bal).
IF ls_bal-gr_qty <> ls_bal-ir_qty.
WRITE: / ls_bal-ebelp, 'received', ls_bal-gr_qty, 'invoiced', ls_bal-ir_qty.
ENDIF.
ENDLOOP.This is a simplified view. It ignores reversals (EKBE keeps a shipping or debit/credit indicator, SHKZG, that marks them) and subsequent debits. In real analysis, use the standard reports rather than your own query.
In S/4HANA, the standard tools are:
- The Fiori app for GR/IR analysis, which lists open items per purchase order item with age and amount.
- The classic GR/IR clearing transaction (MR11), which proposes and posts the clearing. MR11 selects items where received and invoiced values differ.
- The Fiori app for clearing the GR/IR account, available in newer releases, for the same task. App names and availability depend on your release, so check the Fiori apps reference library for your system.
Clearing the account
Clearing with MR11 posts a document that moves the difference out of GR/IR. The offsetting account depends on the item:
| Situation | Typical offset |
|---|---|
| Goods received, never invoiced, delivery closed | Price difference or expense account, from account determination (transaction key such as WRX for GR/IR, with the offset posting key set up in configuration) |
| Invoiced, never received | Same, with opposite sign |
| Inventory-valued material | The posting may adjust stock value if stock still exists |
Treat the table as the general pattern. The real accounts come from your system's automatic account determination, and different valuation classes can lead to different accounts.
Important rules before clearing:
- Make sure the purchase order item is delivered completely, or mark it so. Otherwise the open quantity remains expected.
- Do not clear items just because they are old. Age is a reason to check, not proof.
- Clearing produces a normal accounting document. It can be reversed, but a wrong clear leaves a trail you then have to explain.
Accruals for goods received, not invoiced
Clearing is about cleaning up. Accrual is about reporting. If goods arrived in March but the invoice arrives in April, the cost belongs to March. The goods receipt already posted the expense or inventory in March, so the cost is in the right period. What is missing is any statement of the liability beyond the GR/IR line.
Many companies leave the GR/IR credit balance as a liability on the balance sheet. Others reclassify it at period end into "goods received/invoice received" accrued liabilities, and then reverse the reclassification in the next period. The reclassification keeps the GR/IR account from mixing real, expected invoices with clearing differences.
A second accrual case applies to services. A service entry sheet or a goods receipt for a non-valuated item posts expense directly. If the work is done but not yet entered, the cost has to be accrued manually or by a periodic accrual run, because the system has no receipt document to post from.
Common errors
- Clearing before the invoice arrives. If you clear a goods receipt and then the invoice comes, the invoice posts against an account that no longer carries the receipt. The result is a price difference or a debit balance on GR/IR. Check for invoices in parking or blocked status first.
- Ignoring blocked invoices. An invoice blocked for price variance has already posted its GR/IR debit if it is a posted-but-blocked document. A parked invoice has not posted anything. Know which one you have.
- Mixing currencies and valuation levels. GR/IR balances are kept in the company code currency for each account. Exchange rate effects between receipt and invoice appear as differences. They are not clearing errors.
- Forgetting reversals. Reversed receipts or invoices change the balances. A query that only adds quantities, such as the one above, can misreport them.
- Clearing as a monthly habit. If every month ends with a large clearing, the real defect is upstream, for example missing receipts or late invoice entry.
A practical month-end checklist
- List GR/IR open items older than your company's threshold.
- Group them by cause: late invoice, missing receipt, price difference, closed delivery.
- Contact the buyer or the supplier for each large item.
- Close delivery on purchase order items that will not be completed.
- Run the clearing for items that remain unexplained and are approved for write-off.
- Post accruals or reclassifications for items expected to be invoiced.
- Check that the GR/IR account balance ties to the open item analysis.
Exercise
On 28 March a goods receipt for 100 units valued at 1,000 is posted. The invoice arrives on 3 April. List what the GR/IR account shows at 31 March, what it shows after the invoice is posted in April, and name one reason you would not clear the item at 31 March.
Show answer
At 31 March the GR/IR account has a credit balance of 1,000, because the goods receipt credited it and no invoice has debited it yet. After the invoice posts in April, the invoice debits GR/IR by 1,000 and the item nets to zero (assuming the invoice matches the receipt in quantity and price). You should not clear the item at 31 March because the invoice is expected. It is a normal timing difference, and clearing would book a difference to profit and loss and leave the later invoice without a matching receipt balance.
Exercise
A purchase order item was ordered for 50 units. 40 units were received and invoiced. The supplier confirms it will never deliver the last 10. What is the GR/IR balance for this item, and what needs to be done to the purchase order item?
Show answer
The balance is zero, because 40 units were received and invoiced for the same value. No clearing posting is needed. The purchase order item should be closed, for example by setting the delivery completed indicator or by closing the item, so that the open quantity of 10 no longer appears as an expected delivery.