Sub topic 6
Creating a purchase requisition
This chapter assumes you know the chapter on organizational units (plant, purchasing organization, purchasing group) and the chapter on material master data. It also assumes you can start transactions in SAP GUI or open apps in the Fiori launchpad.
What a purchase requisition is
A purchase requisition (PR) is an internal document that asks purchasing to procure a material or service in a given quantity by a given date. It commits no money and goes to no supplier. It starts the sourcing step and tells the buyer what is needed.
Each PR has a header and one or more items. The item is where the data lives: material or short text, quantity, unit, plant, delivery date, purchasing group, and optional account assignment. The PR number plus the item number (for example 10001234 / 00010) identifies a line. In the database, items are stored in table EBAN.
Where requisitions come from
- Manual creation. An employee or department creates the PR in a transaction or Fiori app.
- Material requirements planning (MRP). MRP converts planned orders into PRs for externally procured materials. These PRs carry a creation indicator that marks them as system-generated.
- Other modules. Plant maintenance, production orders, projects, and sales orders (for third-party items) can create PRs.
Manual and automatic PRs end up in the same table and follow the same release and conversion steps.
Creating a requisition manually
You can use either of these:
- ME51N (Create Purchase Requisition) in SAP GUI. Related transactions are ME52N (change), ME53N (display), and ME54N (release).
- Fiori apps such as Create Purchase Requisition, Manage Purchase Requisitions, and the Professional variant for purchasing staff. Available apps depend on your release and on the roles assigned to you.
In ME51N the main steps are:
- Choose the document type. The standard type is NB. The document type controls the number range and the field selection.
- Enter the item data: material, quantity, unit of measure, plant, delivery date, and purchasing group.
- Add account assignment if the item is not for stock.
- Check the sourcing fields, then save.
The system returns a message such as "Purchase requisition 10001234 created".
Item data that matters
| Field | Purpose |
|---|---|
| Material or short text | Without a material number the item is a free-text item. You must enter a material group. |
| Plant | Must be assigned to a company code, and the material must be extended to it. |
| Purchasing group | The buyer or team responsible. A default can come from the user's parameter ID EKG. |
| Delivery date | Date the goods are needed. It should not be in the past. |
| Valuation price | Estimate used for release strategy and budget checks. It comes from the material master or info record, or you enter it. |
| Desired and fixed supplier | Hints for the buyer, or a fixed source for conversion. |
Item categories and account assignment
The item category controls what the follow-on documents look like. Common values are standard, limit, consignment (K), subcontracting (L), stock transfer (U), third-party (S), and service (D).
The account assignment category decides where the cost goes.
| Category | Meaning | Extra data required |
|---|---|---|
| Blank | For stock | None. Goods are valuated into inventory. |
| K | Cost center | Cost center, G/L account |
| F | Internal order | Order, G/L account |
| P | Project (WBS element) | WBS element, G/L account |
| A | Asset | Asset number |
For an item with account assignment you enter the data on the account assignment tab. Consumption items post to the expense account when the goods are received, not to inventory. The chapter on account determination covers that posting.
Source determination on the requisition
The system tries to propose a source when you save a PR. It checks in this order:
- A fixed supplier you entered on the item.
- A source list entry for the material and plant.
- A valid outline agreement (contract or scheduling agreement) for the material.
- A purchasing info record.
If exactly one source is found, the system can assign it automatically, and a buyer can then create the PO without an RFQ. If several sources exist, the buyer chooses. If none exist, the buyer sends an RFQ or enters the supplier manually when creating the PO. Which sources count depends on settings such as the material's source list requirement and the purchasing organization.
Release and approval
If a release strategy applies to the PR, the item is blocked for conversion until the approvers release it. There are two variants:
- Overall release. The whole PR is released at once.
- Item-level release. Each item is released separately, so one approval can unlock some items and not others.
Release uses a classification-based strategy. The strategy is chosen from characteristics such as document type, plant, or total value. Approvers release in ME54N or the Fiori approval apps. The release strategy chapter covers the configuration.
Reading requisitions with ABAP SQL
You can check what happened to a PR in EBAN. This query lists open items for a plant. An item is open when it is not deleted and its ordered quantity is below its requested quantity.
DATA lv_werks TYPE eban-werks VALUE '1710'.
SELECT banfn, bnfpo, matnr, menge, meins, bsmng, lfdat, ebeln
FROM eban
WHERE werks = @lv_werks
AND loekz = @space
AND bsmng < menge
ORDER BY banfn, bnfpo
INTO TABLE @DATA(lt_open_prs).
LOOP AT lt_open_prs INTO DATA(ls_pr).
WRITE: / ls_pr-banfn, ls_pr-bnfpo, ls_pr-matnr, ls_pr-menge, ls_pr-bsmng.
ENDLOOP.BSMNG is the quantity already ordered. EBELN is filled when a PO has been created for the item. The value '1710' is a placeholder for a plant in your system.
Common errors
- "Material is not maintained in plant" or a missing purchasing view. The material was not extended to the plant, or the purchasing view is absent. Extend it in the material master.
- No purchasing group. Enter one on the item or maintain the EKG parameter in the user profile.
- Account assignment fields are required but missing. The category was set to K, F, P, or A without the matching object.
- PR cannot be converted. The item may still await release, may be flagged deleted or closed, or may be fully ordered already.
- Delivery date in the past. The system warns, and later steps such as MRP or the PO may behave unexpectedly.
- Wrong document type for a number range. External number ranges need a manually entered number.
Changing and closing requisitions
You can change a PR with ME52N until it is fully ordered. After a PO exists, changes to quantity or date do not flow into the PO automatically. If you change an item that has a release strategy applied, the release may be reset. A requisition item can be flagged as closed, or deleted with the deletion indicator, when it is no longer needed. Neither action removes the data, and both prevent later conversion.
Exercise
A buyer says a purchase requisition cannot be turned into a purchase order. Name three conditions to check, and say which EBAN field you would inspect to see whether a PO already exists.
Show answer
Check whether the item still awaits release under a release strategy, whether it has a deletion or closed flag, and whether it is already fully ordered (ordered quantity BSMNG equals or exceeds requested quantity MENGE). Inspect EBELN (with EBELP) to see whether a PO already exists for the item.
Exercise
You create a PR item with account assignment category K. What extra data must you enter, and does the goods receipt post to inventory?
Show answer
You must enter a cost center and a G/L account. The goods receipt does not post to inventory. It posts to the consumption (expense) account assigned to the cost center.