Sub topic 11
Accounting entries and the GR/IR account
This chapter assumes you know basic debit and credit bookkeeping, and that you can post a goods receipt (the previous chapter) and have seen a purchase order with an account assignment category. It explains which accounting documents the procure-to-pay steps create and why a clearing account called GR/IR sits between them.
Why a clearing account exists
The goods receipt and the supplier invoice rarely arrive on the same day. The goods receipt tells you the stock arrived. The invoice tells you what you owe. Until both are posted, the books would be incomplete or wrong. SAP solves this with the GR/IR (goods receipt / invoice receipt) clearing account, a balance sheet liability account that holds the value of goods received but not yet invoiced.
The three postings
For a stock material with standard valuation, the process posts three accounting documents. The amounts below use a 1,000 purchase.
| Step | Debit | Credit |
|---|---|---|
| Goods receipt (movement type 101) | Stock account (BSX) 1,000 | GR/IR clearing (WRX) 1,000 |
| Invoice receipt | GR/IR clearing (WRX) 1,000 | Accounts payable (supplier) 1,000 |
| Payment | Accounts payable (supplier) 1,000 | Bank 1,000 |
After the invoice receipt, the GR/IR account nets to zero for that item. The stock account holds the value, and the supplier account holds the liability until payment.
How SAP finds the accounts
You do not enter accounts during a goods receipt. SAP derives them through automatic account determination (transaction OBYC). The system uses these keys:
- The valuation class of the material, set in the accounting view of the material master.
- The transaction key, such as BSX for stock postings or WRX for GR/IR.
- The chart of accounts, and the valuation grouping code if it is active.
If the valuation class or the OBYC entry is missing, the posting fails with an account determination error. This is one of the most common errors in a new system.
Price differences
Accounting entries differ when the invoice price differs from the purchase order price. With standard price control, the difference goes to a price difference account (key PRD). With moving average price, the system adjusts the stock value where stock remains. Check the price control indicator on the material before you analyze a variance.
Non-stock and account-assigned items
For an item with an account assignment, for example a cost center, there is no stock account. The goods receipt debits the consumption account (key GBB) and credits GR/IR. The cost center is updated at the goods receipt, not at the invoice.
Reading the result
In S/4HANA, goods receipts and invoice receipts write to the Universal Journal (table ACDOCA). Display the document with transaction MIGO (goods movement) or MIR4 (invoice), then use the Accounting documents button to see the lines. You can also read the line items of the GR/IR account to find open items.
Exercise
A purchase order for a stock material at 500 is received, and no invoice has arrived yet. Which accounts are debited and credited, and what is the GR/IR balance for that item?
Show answer
The goods receipt debits the stock account (key BSX) for 500 and credits GR/IR clearing (key WRX) for 500. The GR/IR balance for the item is a credit of 500 until the invoice receipt debits it.