Skip to content
Tutorials Center
My learning

Topics

Lesson 12 of 36 ยท ERP Modules Overview

SAP Procure to Pay (P2P): Requisition, Purchase Order, Goods Receipt, Invoice

Follow the SAP procure-to-pay process step by step: purchase requisition, purchase order, goods receipt, invoice verification and payment, with accounting entries and three-way match.

Procure to pay (P2P) is the process that starts when someone needs something and ends when the supplier is paid. It is the best example of SAP integration, because one process crosses purchasing (MM), inventory (MM), invoice verification (MM) and finance (FI), and each step leaves a document. If you can explain P2P with transaction codes and accounting entries, you can explain half of SAP.

The flow

flowchart LR
    PR["Purchase<br/>requisition<br/>ME51N"] --> PO["Purchase<br/>order<br/>ME21N"]
    PO --> GR["Goods<br/>receipt<br/>MIGO"]
    GR --> IV["Invoice<br/>verification<br/>MIRO"]
    IV --> PAY["Payment<br/>F110"]

Each box is a document; later documents reference earlier ones.

Step 1: purchase requisition (PR)

A purchase requisition is an internal request to buy something. A department creates it with ME51N, or MRP creates it automatically. It carries material (or a short text for non-stock items), quantity, delivery date and plant. A PR may need release approval by a manager. It does not commit the company to anything yet.

Step 2: request for quotation and source of supply

If the buyer needs prices, they send a request for quotation (ME41) to several vendors and compare quotes. Otherwise SAP finds a source of supply: a stored info record (the vendor's price for a material), an outline agreement (contract or scheduling agreement), or a source list.

Step 3: purchase order (PO)

The buyer turns the PR into a purchase order (ME21N, the display is ME23N). The PO is the legal order sent to the vendor (by print, email or EDI). Its header holds the vendor, purchasing organization, purchasing group and payment terms; each item holds material, quantity, price, delivery date, plant and storage location. The item category decides the follow-up: standard (stock), consignment, subcontracting, or "account assigned" (for direct cost such as consulting).

At this step finance usually posts nothing, but SAP can reserve budget (commitments).

Step 4: goods receipt (GR)

When the goods arrive, the warehouse posts a goods receipt in MIGO (movement type 101) against the PO. Two documents are created:

  • A material document: records the quantity change in stock.
  • An accounting document: records the value.

For a stock material the accounting entry is:

Account Debit Credit
Raw materials (inventory) 1,000
GR/IR clearing 1,000

GR/IR ("goods receipt / invoice receipt") is a temporary clearing account for goods that have arrived but are not yet invoiced.

Step 5: invoice verification (IV)

When the vendor's invoice arrives, accounts payable enters it against the PO in MIRO. SAP offers a three-way match: PO quantity and price, goods receipt quantity, and invoice quantity and price must agree within tolerances. If they do not, the invoice is blocked for payment and someone investigates.

On posting, the accounting entry is:

Account Debit Credit
GR/IR clearing 1,000
Vendor payable (via reconciliation account) 1,000

The GR/IR account is now cleared (its balance is zero), and the debt to the vendor is on record. Taxes are posted to input tax accounts using the tax code from the PO or invoice.

Step 6: payment

The automatic payment program (F110) selects open vendor items due, proposes payments, creates payment documents and generates bank files. An outgoing payment debits the vendor account and credits the bank account. Cash discounts are taken automatically if the payment terms say so (for example 2% within 10 days). You will explore this in accounts payable and receivable.

Documents created along the way

Step Document Typical number range
PR Purchase requisition 10xxxxxxxx
PO Purchase order 45xxxxxxxx
GR Material document + accounting document 50xxxxxxxx / 49xxxxxxxx
IV Invoice document + accounting document 51xxxxxxxx
Payment Payment document 15xxxxxxxx

The numbers differ per system. What matters is that SAP stores a document flow (and the purchase order history on each PO item) so you can walk from the PO to every follow-up document.

Python Stand-in: P2P accounting entries and three-way match

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The balances at the end show the P2P result: raw materials hold the value (+1000), GR/IR and the vendor account are cleared (0), and the bank is reduced (-1000). Real SAP posts the same logic, but with tax, discounts and more accounts.

Try it: a blocked invoice

Python Stand-in: invoice with price difference

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Common variations

  • Non-PO invoice: an invoice posted directly in FI (FB60) for utilities or rent with no purchase order.
  • Service purchase orders with a service entry sheet instead of a goods receipt.
  • Consignment: the vendor owns the stock in your warehouse until you consume it.
  • Subcontracting: you send components to a vendor who returns a finished product.
  • Returns: a return PO and goods issue (movement type 122) reduce stock and later get a credit memo.
  • Evaluated receipt settlement (ERS): SAP creates the invoice automatically from goods receipts without waiting for a vendor invoice.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does a purchase requisition represent?

    The PR is internal; the purchase order is the legal document sent to the vendor.
  2. 2. Which account is cleared when the invoice is posted against a received PO?

    Goods receipt credits GR/IR; invoice verification debits it.
  3. 3. What does the three-way match compare?

    Quantities and prices of PO, goods receipt and invoice must agree within tolerance.
  4. 4. Which transaction runs the automatic payment program?

    F110 selects due items and creates payments.

Summary

  • P2P: requisition, purchase order, goods receipt, invoice verification, payment.
  • Goods receipt creates a material and an accounting document (inventory against GR/IR).
  • Invoice verification matches PO, receipt and invoice; mismatches block payment.
  • Payment runs (F110) clear the vendor liability against the bank.

Next: Order to cash flow