# SAP GR/IR clearing account balance: reconcile with MB5S and clear with MR11

> Source: https://netray.co/erp-help/sap-miro-grir-clearing-account-mr11-mb5s-how-to
> Publisher: Netray (netray.co), AI and integration engineering for ERP and manufacturing systems.
> Section: ERP Help

## Short answer

The GR/IR clearing account holds the value of goods received but not yet invoiced, and invoices not yet matched with receipts. It should trend to zero per PO item. Reconcile it with MB5S, find the PO items that are stuck, and clear true differences with MR11 or automatic clearing in F.13, after correcting the cause.

## Kind

how-to

## System

sap

## Erp

SAP ECC / S/4HANA

## Module

MM / FI GR/IR Clearing

## Query

SAP GR/IR clearing account balance not zero, how to clear with MR11 and MB5S

## Alternate Queries

- SAP GR/IR reconciliation MB5S
- SAP MR11 GR/IR account maintenance
- SAP GR/IR open items old goods receipts F.13

## Applies To

SAP ECC 6.0 and S/4HANA, MM with automatic account determination (transaction key WRX)

## Steps

### Reconcile and clear the GR/IR account

**Items:**

Run MB5S (Balance Display GR/IR) for the company code and key date. It compares the GR/IR account balance with the PO history and lists the difference.

Run FBL3N on the GR/IR account (transaction key WRX in OBYC) to see open items. Items are posted by goods receipt (credit) and invoice (debit); each pair should offset per PO item.

Use ME2N or ME80FN with the GR/IR selection, or EKBE, to find PO items where goods receipts exceed invoices or the reverse. Investigate each aged item.

Resolve the cause first: post the missing invoice in MIRO, post a delayed goods receipt in MIGO, set the delivery completed indicator, or reverse a wrong movement.

For small, genuine differences left over, run MR11 (GR/IR Clearing Account Maintenance) in test mode. It writes off the difference to price difference or an expense account.

Run F.13 (automatic clearing) on the GR/IR account so that matched items clear in the ledger. The clearing links to the assignment field, which is set to PO number and item.

Use F.19 (GR/IR clearing analysis) at period end if you need to regroup GR/IR balances for reporting, with the balance sheet adjustment documented.

## Sections

### What posts to GR/IR

**Body:**

A goods receipt against a PO debits stock (or consumption) and credits the GR/IR clearing account at PO price. The invoice receipt in MIRO debits GR/IR and credits the vendor. If quantities and prices match, the net per PO item is zero. Any difference is either a timing difference, which resolves itself, or a data problem that does not.

Price differences between the PO and invoice post to the price difference account (PRD) or into the stock for moving average price materials, so they do not remain on GR/IR. Quantity differences do remain, which is why GR/IR build-up is mostly a quantity story.

The PO history in table EKBE carries each movement with a process indicator in VGABE: 1 for goods receipt, 2 for invoice receipt. Comparing the sums of these per item is the basis for any reconciliation query.

**Code:**

- -- Quantity received vs invoiced per PO item
- SELECT EBELN, EBELP,
-   SUM(CASE WHEN VGABE = '1' THEN MENGE ELSE 0 END) AS gr_qty,
-   SUM(CASE WHEN VGABE = '2' THEN MENGE ELSE 0 END) AS ir_qty
- FROM EKBE WHERE BEWTP IN ('E','Q')
- GROUP BY EBELN, EBELP
- HAVING SUM(CASE WHEN VGABE = '1' THEN MENGE ELSE 0 END)
-     <> SUM(CASE WHEN VGABE = '2' THEN MENGE ELSE 0 END);

### Typical causes of stuck balances

**Body:**

Goods received but never invoiced: services or freight not billed, free-of-charge deliveries, or vendors who invoice in batches. Invoiced but never received: pre-payments or invoices posted against the wrong PO item, and goods that arrived but were not booked in MIGO.

Another group is posting errors that were reversed on one side only, or invoices posted at a different price with the wrong tax code. The delivery completed indicator (EKPO-ELIKZ) and final invoice indicator (EREKZ) also affect MR11 and F.19. Items marked complete are treated differently when you clear.

Do not use MR11 as a default fix. It writes off the value, and writes off hide process problems such as receiving without a PO or invoicing the wrong item.

### MR11 versus F.13 versus F.19

**Body:**

MR11 clears the differences on the GR/IR account for PO items in a way that removes the open balance by posting a correcting entry to another account. It is a business write-off and needs accounting approval. F.13 is automatic clearing in the ledger, which matches already offsetting items so the account shows only true open items. It writes no value.

F.19 is a period end analysis and regrouping report used to show GR/IR balances as receivables or payables on the balance sheet, with separate lines for goods received not invoiced. It is a reporting aid, not a correction.

### Controls to keep it small

**Body:**

Review GR/IR monthly by age bucket, with the oldest items first. Assign an owner per plant. Set a business rule for write-off thresholds and delegate small values to MR11 runs with reviewed variants. Agree with receiving that all deliveries are booked on the day they arrive.

## Pitfalls

- Running MR11 in update mode without a test run and without accounting sign-off.
- Clearing the ledger account with F.13 and believing the underlying PO item mismatch is solved.
- Ignoring service entry sheets (ML81N), which post to GR/IR like goods receipts and are easy to leave unapproved.
- Reconciling only by value and not by quantity, which hides offsetting errors.
- Setting the delivery completed flag on items to make them disappear from reports while goods are still due.

## Ai Angle

A grounded assistant can run the reconciliation logic across EKBE and the GR/IR ledger items, rank the aged PO items by value, and say for each whether goods or invoice is missing. ERPray shows the query so a finance analyst can verify the numbers, and the output goes to a person for the write-off decision. It does not run MR11 on its own.

## Faq

### What is the GR/IR clearing account in SAP?

**Answer:** It is a balance sheet account that holds goods received not yet invoiced. A goods receipt credits it and the invoice receipt debits it, per PO item. Its account is determined through the WRX transaction key in OBYC. A healthy balance is small and made up of recent items awaiting vendor invoices.

### What does MB5S show?

**Answer:** MB5S compares the GR/IR account balance with the PO history for a key date and displays, per PO item, the goods received and invoiced values and quantities. It is the first reconciliation step because it tells you whether the account balance agrees with the purchasing documents.

### Is MR11 safe to run?

**Answer:** Run it in test mode first and only with accounting approval. MR11 posts a correcting entry that writes off the open difference, so the account looks clean while the underlying issue remains if you have not found the cause. Use it for small, understood differences, not as routine cleanup.

### Why does GR/IR not clear automatically with F.13?

**Answer:** F.13 clears only items that net to zero per assignment, usually the PO and item. If the received and invoiced quantities or values differ, the items stay open. Check the clearing criteria on the account, and fix the underlying receipt or invoice before running clearing again.

## Search terms

SAP GR/IR clearing, SAP MB5S, SAP MR11, SAP F.13 automatic clearing, SAP GR/IR reconciliation, SAP WRX GR/IR account, SAP F.19 GR/IR analysis, SAP goods received not invoiced

---
Talk to an engineer: https://netray.co/contact?intent=erp_ai | Machine catalog: https://netray.co/agent/catalog.json
