Sub topic 10
Posting goods issue
This chapter assumes you know what an outbound delivery is, how picking works, and the basics of double-entry accounting. Goods issue is the step where goods physically leave your stock and the books record it.
What goods issue does
Posting goods issue (PGI) is the transaction that confirms the goods have left the warehouse. You run it on the outbound delivery, usually in VL02N or the Fiori app "Post Goods Issue for Outbound Delivery". A single PGI triggers several effects at once:
- The delivery's overall goods movement status changes to "completed".
- Warehouse stock is reduced, and the stock ownership moves to the customer.
- A material document is created (movement type 601 for a standard delivery).
- An accounting document is created, so the cost of the goods reaches the general ledger.
- The delivery becomes relevant for billing.
Before PGI can succeed, picking must be complete and the picked quantity confirmed. If the delivery has a goods issue block, such as a credit hold, you cannot post.
The accounting entry
For a normal stock item, PGI books the cost of goods sold. The amount comes from the material's valuation price, not from the sales price.
| Account | Debit | Credit |
|---|---|---|
| Cost of goods sold | Yes | |
| Inventory (stock) | Yes |
The system finds these accounts through account determination, using the valuation class of the material and the transaction key GBB with the account modifier VAX. You'll see how that works in the chapter on accounting integration.
Where the process goes next
Reversing a goods issue
If you post PGI by mistake, reverse it with VL09 (or the Fiori equivalent). The reversal creates a material document with movement type 602 and a matching accounting document. You can only reverse it if no billing document exists for the delivery. After the reversal you can change the delivery or delete it.
Verifying the result
To check the accounting side, find the material document first. It appears in the document flow of the delivery. In S/4HANA, material documents are stored in table MATDOC, and the cost postings appear in ACDOCA. The following query reads the Universal Journal lines that belong to a material document.
DATA(lv_mblnr) = CONV mblnr( '4900001234' ).
SELECT rbukrs, gjahr, belnr, docln, racct, hsl
FROM acdoca
WHERE rldnr = '0L'
AND awtyp = 'MKPF'
AND awref = @lv_mblnr
INTO TABLE @DATA(lt_journal).You should see two lines: a debit on the cost of goods sold account and a credit on the inventory account, both for the same amount.
Common errors
- Picking incomplete: the delivery has an open picking status, so PGI is rejected. Confirm the pick quantity first.
- Insufficient stock: the plant or storage location has too little unrestricted stock. Check stock with MMBE and correct the quantity or post a receipt.
- Missing account determination: the system can't find the GBB/VAX account. Ask FI to maintain it for the valuation class.
- Closed posting period: the PGI date falls in a period that isn't open. Use an open period or ask for it to be opened.
Exercise
A delivery was invoiced yesterday, and you now find that the goods issue was posted with the wrong quantity. Can you reverse the goods issue with VL09 right away? What should you do?
Show answer
No. Reversal is blocked while a billing document exists for the delivery. Cancel the billing document first, then reverse the goods issue, correct the delivery, and post it again. Then create a new billing document.