Sub topic 8
MRP views: planning parameters
This chapter assumes you know what a plant is, can navigate SAP GUI transactions such as MM03, and understand the basic idea of material requirements planning (MRP): comparing demand with supply and proposing orders to close the gap. You do not need to run MRP yourself. You need to know which material master fields steer it.
What the MRP views are for
MRP views hold the planning parameters of a material. MRP reads these parameters every time it runs for a plant. They decide whether a material is planned at all, when to reorder, how much to order, and whether the result is a purchase requisition or a planned order.
All MRP data is stored at plant level. The same material can therefore be planned differently in plant 1010 and plant 1020. The data is kept in table MARC, the same table that holds general plant data.
The MRP data is split across four views:
| View | Main content |
|---|---|
| MRP 1 | MRP type, reorder point, MRP controller, lot size, rounding |
| MRP 2 | Procurement type, planned delivery time, scheduling margin key, safety stock handling |
| MRP 3 | Planning strategy group, consumption mode, availability check |
| MRP 4 | Storage location MRP, repetitive manufacturing, discontinuation parameters |
MRP 1: whether and how a material is planned
MRP type
The MRP type (field DISMM in MARC) is the most important planning parameter. It controls whether the material takes part in planning and which procedure is used.
| MRP type | Procedure | Typical use |
|---|---|---|
| ND | No planning | Materials you do not plan, such as consumables bought ad hoc |
| PD | MRP (requirements-driven planning) | Materials planned from forecasts, sales orders and dependent requirements |
| VB | Manual reorder point planning | Materials planned against a reorder point entered by hand |
| VV | Forecast-based planning | Materials planned from a consumption forecast |
The MRP type is a code you define in customizing, so your system may have extra values. In the table above, ND, PD, VB and VV are standard.
If you set the MRP type to ND, MRP skips the material. This is a common cause of the question "why did MRP not create a requisition?"
MRP controller
The MRP controller (DISPO) identifies the planner or planner group responsible for the material. Planners use it to filter the MRP list and the stock/requirements list to see only their materials. It is a plant-specific code that you define in customizing. It is not a user ID.
Reorder point and safety stock
For reorder point planning (VB and VM), the reorder point (MINBE) is the stock level at which MRP triggers procurement. The reorder point should cover the demand during the replenishment lead time, plus safety stock.
Safety stock (EISBE, on MRP 2) is a buffer for unexpected demand or late deliveries. In requirements-driven planning, MRP treats it as a requirement that it tries to keep covered.
Lot-sizing procedure
The lot-sizing procedure (DISLS) defines how much MRP orders when it finds a shortage.
| Key | Name | Behavior |
|---|---|---|
| EX | Lot-for-lot | Order exactly the shortage quantity |
| FX | Fixed lot size | Order the fixed quantity, or a multiple of it |
| HB | Replenish to maximum stock level | Order up to the maximum stock level |
| WB | Weekly lot size | Combine the requirements of one week |
Related fields refine the result. Rounding value (BSTRF) rounds the order quantity up to a multiple of the value. Minimum lot size (BSTMI) and maximum lot size (BSTMA) set a lower and upper limit.
MRP 2: how the material is procured
Procurement type
The procurement type (BESKZ) says how the material is obtained:
- E: in-house production. MRP creates planned orders.
- F: external procurement. MRP creates purchase requisitions.
- X: both. You can use either, typically controlled through the special procurement key.
The procurement type interacts with the BOM and routing. Procurement type E without a BOM or routing leaves MRP with nothing to explode, which is a common setup error.
Lead times and scheduling
Times are given in days:
- Planned delivery time (PLIFZ): calendar days a vendor needs to deliver. MRP uses it for externally procured materials.
- GR processing time (WEBAZ): working days needed to inspect and put away goods after receipt.
- In-house production time (DZEIT): working days for production, used when no routing provides the lead time.
MRP schedules backward from the requirement date. It subtracts goods receipt processing time and delivery time to find the date when procurement must start. If this date is already in the past, MRP shows an exception message.
MRP 3: strategy and availability
The strategy group (STRGR) selects the planning strategy. A strategy determines how sales orders and forecasts interact with planning, for example make-to-stock or make-to-order. The consumption mode and the availability check (MTVFP) control how requirements are consumed and whether the system checks stock against sales orders. Leave these at defaults until you understand your planning process.
MRP 4 and storage location MRP
Normally MRP plans at plant level. If you need separate planning for a storage location, you can select it in the MRP 4 view. Do this only when you have a real reason, such as a storage location that is replenished from outside rather than from the plant stock.
Reading MRP parameters with ABAP SQL
MRP fields are plant-level, so you read them from MARC. The following program lists materials in plant 1010 together with the main MRP parameters.
REPORT zdemo_mrp_params.
SELECT marc~matnr,
marc~werks,
marc~dismm,
marc~dispo,
marc~disls,
marc~beskz,
marc~eisbe,
marc~minbe
FROM marc
WHERE marc~werks = '1010'
AND marc~dismm <> 'ND'
INTO TABLE @DATA(lt_mrp)
UP TO 100 ROWS.
cl_demo_output=>display( lt_mrp ).The filter dismm <> 'ND' removes materials that MRP ignores. Without a plant filter, the query reads across all plants, which is rarely what you want.
Common errors
- MRP type ND. The material is excluded from planning. MRP produces nothing, with no error.
- No MRP controller. MRP can still run, but planners cannot find the material in their lists. Some systems require the field.
- Missing lead time. A planned delivery time of zero means MRP assumes instant delivery, so procurement is proposed too late.
- Wrong procurement type. Type F on a manufactured material creates purchase requisitions instead of planned orders.
- Lot size too small. With fixed lot size FX and a quantity below the typical requirement, MRP creates many small proposals.
- Extending without MRP data. When you extend a material to a plant without the MRP views, MRP does not plan it until you add them.
How the parameters interact
S/4HANA note
In SAP S/4HANA, the classic MRP run (MD01, MD02) remains available. SAP also provides MRP Live (MD01N), which runs on the SAP HANA database and calculates all materials of a plant or an MRP area. The material master parameters described here are the same for both. MRP areas let you plan for a storage location or a subcontractor separately, and their parameters are stored with the material in MDMA rather than in the MRP 4 view.
Exercise
A planner reports that a purchased material in plant 1010 never gets a purchase requisition, although there is demand. Which two MRP fields do you check first, and what values would explain the problem?
Show answer
Check the MRP type (DISMM) and the procurement type (BESKZ). An MRP type of ND excludes the material from planning, so MRP creates nothing. A procurement type of E on a purchased material makes MRP try to create planned orders instead of purchase requisitions. A procurement type of F is correct for external procurement.
Exercise
A material has lot-sizing procedure FX, a fixed lot size of 100, and a shortage of 130 pieces. How many pieces does MRP order, and what changes if you switch to EX?
Show answer
With FX, MRP orders a multiple of the fixed lot size that covers the shortage, so it orders 200 pieces (two lots). With EX (lot-for-lot), it orders exactly 130 pieces.