Sub topic 16
Returns, Credit Memos and Corrections
This chapter assumes you know the standard order-to-cash flow from sales order to billing and accounting. It also assumes you can read a document flow and know what goods issue and billing post to accounting. Here you will see what happens when the flow goes wrong or the customer sends goods back. You will learn which documents reverse, correct or compensate for earlier ones.
Why SAP does not simply delete documents
Once a delivery has been goods-issued or an invoice has been posted to accounting, the posting stays. SAP corrects it with a new document that points back to the original. This keeps the audit trail intact and keeps the document flow complete.
There are four common situations. Each uses a different tool.
| Situation | Document or action | Typical document type |
|---|---|---|
| Customer sends goods back | Returns order, returns delivery, credit memo | Order type RE |
| Price or quantity was wrong, no goods returned | Credit memo request or debit memo request | Order types CR and DR |
| Whole invoice was wrong | Cancel the billing document | Cancellation (S1) |
| Goods issue was posted by mistake | Reverse goods issue | Material document reversal |
The order types and billing types above are the SAP standard names. Your system may use copies with names starting with Z.
The returns process
A customer return runs through its own chain of documents. It mirrors the forward process.
- A returns order (standard type RE) records the customer's claim and the quantity coming back.
- A returns delivery (type LR) is created for the returns order.
- Goods receipt is posted on the returns delivery. Stock increases, usually in a blocked or quality stock.
- A credit memo (billing type G2) is created from the returns order. It reduces the customer's receivable.
The returns order is the controlling document. Its item category decides whether the item is relevant for delivery and billing. Standard returns items use category REN. Its billing block, usually set by the order type, stops the credit memo until someone has approved the return. You release the block after checking the goods.
What accounting sees
The goods receipt on a returns delivery posts to inventory and cost of goods sold, in the opposite direction from the original goods issue. Stock goes up and cost of goods sold goes down, valued at the current moving average price or standard price. This value can differ from the cost booked at the original sale. The difference appears as a price difference, so do not expect an exact mirror image.
The credit memo reverses the receivable and the revenue. The customer account is credited, and revenue and tax accounts are debited. The credit memo is also an open item on the customer account. It can be cleared against an open invoice or paid out to the customer.
Credit and debit memo requests
Sometimes no goods move, but the amount is wrong. A customer was charged the wrong price, or a discount was agreed after billing. In that case you create a credit memo request (type CR) with reference to the invoice. A debit memo request (type DR) works in the same way for undercharges.
These requests have no delivery. They are priced and then billed. Most systems apply a billing block so a reviewer approves the request before the credit memo is created. The request can also carry a reason code in the order reason field. Reports then group credits by cause.
The reference to the original invoice matters. It lets the system copy the price conditions, and it keeps the credit tied to the invoice in the document flow.
Cancelling a billing document
When a billing document is wrong as a whole, you cancel it. The system creates a cancellation document (type S1). It copies the original invoice and posts the opposite entries to accounting. The original is then marked as cancelled, and the sales order and delivery become available for billing again. You can then create a corrected invoice.
Cancellation has these limits.
- You cannot cancel an invoice that has been cleared, for example when payment was posted against it. Reset the clearing first, or issue a credit memo.
- Cancellation posts in the original posting period if that period is open. If the period is closed, the cancellation uses the first open period, which is set by the posting date you enter.
- A cancelled billing document keeps its number. The cancellation gets a new number.
Use cancellation when the invoice should never have existed. Use a credit memo when the invoice was valid but the customer is owed an amount.
Reversing a goods issue
If a goods issue is posted by mistake, you reverse it. Use the delivery transaction VL09 or the corresponding Fiori app. VL09 creates a reversal material document and sets the delivery back to "not yet goods-issued". Stock and cost of goods sold return to their earlier values.
Reversal is only possible while no billing document exists for the delivery. If the delivery was already billed, cancel the billing document first, then reverse the goods issue. The order of the steps matters, because each step checks the status of the one before it.
Verifying returns and corrections in the tables
Every correction is linked to its predecessor in the document flow table VBFA. The query below lists the immediate successors of an invoice. Run it against a billing document that had a return and you will see the returns order and the credit memo request among them.
DATA(lv_billing) = CONV vbeln_vf( '0090001234' ).
SELECT vbelv, posnv, vbeln, posnn, vbtyp_n
FROM vbfa
WHERE vbelv = @lv_billing
INTO TABLE @DATA(lt_flow).The column VBTYP_N holds the category of each successor. Returns orders use category H, credit memos use O, and cancellation documents use N. Credit memo requests use category K.
You can also check the accounting side. The query below reads the Universal Journal lines for a credit memo, using the same pattern as for any billing document.
DATA(lv_credit_memo) = CONV vbeln_vf( '0090001300' ).
SELECT rbukrs, gjahr, belnr, docln, racct, hsl
FROM acdoca
WHERE rldnr = '0L'
AND awtyp = 'VBRK'
AND awref = @lv_credit_memo
INTO TABLE @DATA(lt_journal).For a credit memo the amounts in HSL on the receivable line are negative. A cancellation shows the same pattern with the opposite sign of the original invoice.
Common errors
- Credit memo cannot be created. The returns order still has its billing block, or the returns delivery has no goods receipt yet. Check both statuses in the document flow.
- Cancellation is rejected. The invoice is already cleared in accounting. Reset the clearing or use a credit memo.
- Reference quantity exceeded. The returns order asks for more than was delivered on the referenced invoice. The system compares against the quantity billed.
- Value differs from the original sale. The returns goods receipt uses the current stock price. This is expected valuation behavior.
Exercise
A customer returns 10 of 100 delivered pieces. The original invoice was paid in full last month. Which documents do you create, and why is cancelling the invoice the wrong choice?
Show answer
Create a returns order (RE) with reference to the invoice, then a returns delivery and a goods receipt, then release the billing block and create a credit memo (G2) for 10 pieces. Cancellation is wrong for two reasons. The invoice is already cleared, so the system rejects the cancellation. It would also reverse the whole invoice, while only 10 pieces are affected.
Exercise
A delivery was goods-issued by mistake and has already been billed. In what order do you correct it?
Show answer
First cancel the billing document (S1). Then reverse the goods issue with VL09. Reversal of goods issue is blocked while an active billing document exists.