SAP document flow
Every business process in SAP leaves a chain of documents behind, and each document points to the one before it. That chain is the document flow. From a purchase order you can see its goods receipts and invoices; from a sales order you can see its delivery and billing document. When a supplier asks "did you get our goods?", the document flow answers in seconds.
Syntax
Where to see the chain:
ME23N Display Purchase Order, item tab Purchase Order History VA03 Display Sales Order, button Display Document Flow MB51 Material Document List (goods movements) FB03 Display Document (accounting), with links to the source document MIR4 Display Invoice Document
The two chains you meet most:
| Purchase to pay | Order to cash |
|---|---|
| Purchase requisition (ME51N) | Sales order (VA01) |
| Purchase order (ME21N) | Outbound delivery (VL01N) |
| Goods receipt, material document (MIGO) | Goods issue, material document |
| Supplier invoice (MIRO) | Billing document (VF01) |
| Payment (F110) | Incoming payment (F-28) |
Logistics documents also create accounting documents behind them: a goods receipt for stock creates an accounting document, an invoice creates one, a billing document creates one.
Examples
Purchase order history
| Type | Document | Movement type | Quantity | Amount | Date |
|---|---|---|---|---|---|
| Goods receipt | 5000027419 | 101 | 800 EA | $1,480.00 | 03/04 |
| Goods receipt | 5000027533 | 101 | 400 EA | $740.00 | 03/11 |
| Invoice receipt | 5105638207 | 1,200 EA | $2,220.00 | 03/12 |
Question: The supplier says they delivered 1,200 brackets. Is that right? Answer: Yes, in two deliveries: 800 on March 4 and 400 on March 11. Both receipts used movement type 101.
Question: Has the supplier invoiced everything? Answer: Yes. One invoice for 1,200 EA, document 5105638207, matches the total received.
Recognizing documents by number
| Starts with | Most likely | Open with |
|---|---|---|
| 10 | Purchase requisition | ME53N |
| 45 | Purchase order | ME23N |
| 50 | Material document | MIGO (display) or MB51 |
| 51 | Invoice document | MIR4 |
| 80 | Outbound delivery | VL03N |
| 90 | Billing document | VF03 |
Number ranges are set by each company, so these prefixes are common, not guaranteed. Open the document to be sure.
Variants
Item level history. The purchase order history is shown per item. An order with five items has five histories, so check the item you care about.
Reversals in the flow. A reversed goods receipt shows two lines: the 101 receipt and a 102 reversal with the same quantity. The net received quantity is what counts. The sap movement types guide lists the common codes.
From accounting back to logistics. In FB03 the document header shows the source, such as a material document or an invoice. Auditors start from a journal line and follow it back to the business document this way.
Service entry sheets. For services, a service entry sheet takes the place of the goods receipt in the chain, and the invoice is matched against it.
The individual steps are covered in migo goods receipt and miro invoice verification.
Common errors
No history tab on the item
Nothing has been posted against the item yet. No receipt and no invoice means the tab does not appear.
Quantities do not add up
Look for reversals (102) and return deliveries (122) in the history. They reduce the received quantity but appear as separate lines.
Looking in the wrong transaction
A 51 number opened in ME23N finds nothing, because it is an invoice document. Use MIR4 for invoice documents and FB03 for their accounting documents.
Different numbers for the same invoice
The invoice document from MIRO and the accounting document behind it have different numbers. Both are correct; they live in different number ranges.
Practice
The document flow level asks you to recognize documents by their numbers, put the steps of purchase to pay and order to cash in order, and find where the history of a document lives. The step by step lesson traces one purchase from requisition to invoice.
Start step by step: Document flow and number ranges
Free, in your browser, no sign up. Opens the level “Document flow and number ranges”.
FAQ
What is document flow in SAP?
The chain of linked documents in one business process, such as order, delivery and invoice, which you can open from any document in the chain.
Where do I see if a purchase order was delivered and invoiced?
In ME23N, on the Purchase Order History tab of each item. It lists every goods receipt and invoice with document numbers, quantities and dates.
Why do SAP documents have different number ranges?
So each document type is numbered on its own and easy to recognize. Ranges are set per company, but patterns such as 45 for orders are very common.
How do I find the accounting document of a goods receipt?
Open the material document in MIGO or from MB51 and follow the link to its accounting documents, or search in FB03 by reference.
What does a 102 line in the purchase order history mean?
A goods receipt was reversed. Nothing went back to the supplier; the earlier 101 posting was simply undone, often because it was posted for the wrong order or quantity. A physical return to the supplier shows as 122 instead.
Can I see the document flow of an invoice?
Yes. Open the invoice document in MIR4 and follow its links to the purchase order and to the accounting document. From the accounting document in FB03 you can go back to the invoice the same way.
Why does an auditor ask for the document flow?
To prove that each payment rests on an order, a receipt and an invoice. Following the chain from a journal line back to the purchase order shows that the money left for a real, approved purchase.
For learning only. Nothing here is legal, financial, tax or investment advice. Tolerances, policies and rates in the examples belong to a made up company; your employer’s settings decide what applies at work.