Start practice

SAP document flow

System basics ·

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:

In the system
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 payOrder 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

TypeDocumentMovement typeQuantityAmountDate
Goods receipt5000027419101800 EA$1,480.0003/04
Goods receipt5000027533101400 EA$740.0003/11
Invoice receipt51056382071,200 EA$2,220.0003/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 withMost likelyOpen with
10Purchase requisitionME53N
45Purchase orderME23N
50Material documentMIGO (display) or MB51
51Invoice documentMIR4
80Outbound deliveryVL03N
90Billing documentVF03

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.