SAP MRP (Material Requirement Planning)

โšก Smart Summary

Material Requirement Planning in SAP PP calculates what to buy or build, when, and in what quantity, so that every component is available on the date production needs it without carrying surplus stock.

  • ๐Ÿ”˜ Purpose: MRP nets requirements against stock in hand and creates planned orders or purchase requisitions for the shortage.
  • โ˜‘๏ธ Transactions: MD01 plans a full plant, MD02 a single material, MD43 plans interactively, and MD04 shows the result.
  • โœ… Master data: MRP type PD on the MRP 1 view activates planning, while ND excludes the material.
  • ๐Ÿงช Parameters: Processing key, planning mode and scheduling indicator control what is planned and how dates are calculated.
  • ๐Ÿ› ๏ธ MPS: MRP types P0 to P3 plan critical materials separately and firm proposals inside the planning time fence.
  • ๐Ÿ“ˆ S/4HANA: MRP Live in transaction MD01N replaces the classic plant-level run and writes no MRP list.

SAP MRP Material Requirement Planning Run Using MD01, MD02 and MD04

What is SAP MRP?

SAP MRP (Material Requirement Planning) procures or produces the required material quantities on time, either for in-house use or to fulfill customer demand. In manufacturing, the function of MRP is to guarantee material availability on the date it is needed. The main objective is to plan supply against requirements, take the current stock in hand into account, and cover the shortages.

MRP Process Flow

The steps below trace a requirement from the market to a planned order or a purchase requisition.

  • With MRP, inventory can be optimized by planning receipts according to the actual need, so that surplus inventory is avoided.
  • Sales and distribution give concrete customer requirements from the market.
  • In Demand Management, sales are planned in advance through a sales forecast. The forecast is entered in demand management as a Planned Independent Requirement (PIR), that is, the requirement for the finished product.
  • To cover these requirements, MRP performs the net requirement calculation and plans the procurement quantities and the dates on which the material has to be procured or produced.
  • If a material is produced in-house, the system explodes the BOM and calculates the dependent requirements, that is, the quantity of components required to produce the finished product.
  • If a material shortage exists, planned orders are created at every BOM level to fulfill the requirements, and purchase requisitions are generated for externally procured raw materials. You can also create planned orders for externally procured materials, which can then be converted to purchase requisitions.
  • MRP performs lead time scheduling and calculates planned order dates from the routing times. It works backward from the requirement date, subtracting the goods receipt processing time, the in-house production time and the float time before production, and calculates the duration of the planned orders.
  • Production orders or purchase orders are created after the conversion of planned orders and purchase requisitions respectively.
  • MRP type โ€œPDโ€ in the material master MRP 1 view is essential to run MRP for the material. If you do not want to run MRP on a material, then MRP type โ€œNDโ€ can be maintained in the material master instead.

Master Production Schedule (MPS)

MPS is used specifically for critical materials, usually high-valued products, where you do not want changes to the production plan inside the planning time fence during the next MPS run. The plan is firmed automatically as soon as it moves inside the planning time fence, unlike a normal MRP run.

  • A separate run occurs for the MPS items; they are not included in the MRP run.
  • It ensures the availability of critical resources, which should not hamper production, by maintaining the stock.
  • The planning time fence (a number of days starting from the current date) is useful in an MPS scenario, where the procurement proposals (planned orders) can be protected from undergoing any change since the last MRP run.
  • No automatic changes happen to the procurement proposals once they enter the planning time fence (the PTF is maintained in the material master). All planned orders inside the planning time fence are therefore firmed automatically by the system.
  • MRP types โ€œP0โ€ to โ€œP3โ€ in the material master should be maintained to run MPS for materials.

MRP Planning Parameters

MRP parameters control which requirements (PIRs) inside the planning horizon are considered, how orders are scheduled, and how the BOM and routing data are used.

Processing Key

  • Net change (NETCH): The system includes those materials that have undergone changes relevant to receipts, issues or stock since their last MRP run.
  • Net change in planning horizon (NETPL): The system includes the same changed materials, but considers only the requirements inside a pre-defined planning horizon, unlike the NETCH key, which considers all future requirements.
  • Regenerative planning (NEUPL): It plans all materials in the MRP run irrespective of the changes they have undergone. This key is not widely used because it takes a long time to produce the final result.

Planning Mode

  • Adapt planning data: It only processes the changed data.
  • Re-explode BOM and routing: The BOM and routing data are read again for the existing orders.
  • Delete and recreate planning data: It completely deletes the planning data (all receipts) and creates it again.

Scheduling

  • Basic scheduling: MRP calculates only the basic dates for the orders, and the in-house production time from the material master is used.
  • Lead time scheduling: The production dates are determined by lead time scheduling for the planned orders. The routings are read in order to schedule the operations and calculate the capacity requirements on the work centers.

How to Run MRP for All Products

Before starting, make sure the material masters, BOMs and routings exist for the plant, because MRP explodes them during the run.

Step 1) From the SAP Easy Access screen, open transaction MD01. We will run MRP at plant level.

  1. Enter your manufacturing Plant for which you want to take the MRP run.
  2. Enter Processing key as โ€œNETCHโ€ (net change in total horizon).
  3. Input โ€œ1โ€ in Create Purchase Req., which means that for externally procured materials, MRP generates purchase requisitions instead of planned orders.
  4. Enter โ€œ3โ€ for Schedule lines, which means that MRP generates schedule lines for raw materials that have a scheduling agreement.
  5. Enter โ€œ1โ€ in MRP List, and the system creates an MRP list similar to the stock/requirements list for later analysis of the previous MRP run.
  6. Enter Planning mode โ€œ3โ€, as we will delete and recreate all planning data for all materials.
  7. Enter Scheduling indicator โ€œ2โ€, which means that MRP performs lead time scheduling and considers the routing times to calculate the planned order dates.

The MD01 selection screen appears.

MD01 total planning selection screen with plant and MRP control parameters

After filling in all the fields, click Green check mark button used to confirm the MD01 entries to go to the next screen.

A warning appears in the status bar.

MD01 status bar warning about the planning run parameters

Press Enter to ignore this message.

Second MD01 message prompting a check of the input parameters

The system asks you to re-check your input parameters, because the MRP run reschedules and overwrites the existing planning data. If the entries are correct, press Enter.

MD01 confirmation dialog before the planning run starts

Confirm this second prompt with Enter to start the run.

Step 2) The system takes some time to calculate the material requirements.

  1. After the calculation is done, a report appears. Here it is possible to see how many materials were planned and which parameters were used during the run.

MD01 planning run statistics report listing the materials planned

MRP Run for a Single Material

Transaction MD02 plans a single material together with all the components below it.

Step 1) In transaction MD02, we will run MRP for a single material.

  1. Input the material code for which you want to run MRP.
  2. Enter your manufacturing Plant code for which you want to take the MRP run.
  3. Enter Processing key as โ€œNETCHโ€ (net change in total horizon).
  4. Input โ€œ1โ€ in Create Purchase Req. so that externally procured materials get purchase requisitions.
  5. Enter โ€œ3โ€ for Schedule lines to cover raw materials with a scheduling agreement.
  6. Enter โ€œ1โ€ in MRP List to keep a snapshot of this run.
  7. Enter Planning mode โ€œ3โ€ to delete and recreate the planning data.
  8. Enter Scheduling indicator โ€œ2โ€ for lead time scheduling from the routing times.

The MD02 selection screen adds the material field.

MD02 single-item multi-level planning screen with the material entered

After filling in all the fields, click Green check mark button used to confirm the MD02 entries to go to the next screen.

MD02 message asking the planner to check the input parameters

The system asks you to re-check your input parameters, because the MRP run reschedules and overwrites the existing planning data. If the entries are correct, press Enter.

MD02 confirmation dialog before the single-item planning run starts

Confirm this second prompt with Enter to continue.

Step 2) The system takes some time to calculate the material requirements.

  1. After the calculation is done, a report appears. Here you can see how many materials were planned.

MD02 planning result showing the number of materials planned

Note: As there are 22 materials available in the plant, only these 22 materials were planned.

Master Production Schedule (MPS) Run

MD43 uses the same control parameters as the MRP run above, but it runs interactively, so the planner reviews the result before saving it.

Step 1) In transaction MD43, we will run MPS for a single material.

  1. Input the material for which you want to run MPS. Here we have taken ID โ€œ13967476โ€.
  2. Enter your manufacturing Plant โ€œINA2โ€ for which you want to take the MPS run.
  3. Enter Processing key as โ€œNETCHโ€.
  4. Input โ€œ1โ€ in Create Purchase Req.
  5. Enter โ€œ3โ€ for Schedule lines.
  6. Enter โ€œ1โ€ in MRP List.
  7. Enter Planning mode โ€œ3โ€.
  8. Enter Scheduling indicator โ€œ2โ€.

The MD43 initial screen appears.

MD43 interactive single-item planning initial screen

Click Green check mark button used to confirm the MD43 entries to move to the next screen after filling in all the fields. The system shows a message MD43 status bar message shown after the entries are confirmed. Click Green check mark button clicked a second time to continue in MD43 again if everything is correct.

Step 2) In this step, we generate the interactive planning data, which lets you see the planning results at the same time.

  1. Press the โ€œPlanningโ€ button, which generates planned orders for the shortage quantity.
  2. Check the planned orders generated.

MD43 interactive planning table with the generated planned orders

MRP Evaluation: Stock/Requirements List

In this list, you will see the requirements, the current stock and the planned receipts, that is, the orders for the material.

Step 1) From the SAP Easy Access screen, open transaction MD04.

  1. Enter the material for which the stock/requirements list needs to be displayed.
  2. Enter the Plant code.

MD04 initial screen with the material and plant selection fields

Step 2) After entering the information in all the fields, click Green check mark button used to open the MD04 stock requirements list to go to the next screen, and the stock/requirements list is displayed.

The generated stock/requirements list of the material shows that:

  • the BOM for material D13967476 was exploded, and
  • a purchase requisition of 50 (fixed lot size 50 maintained in material master code A01232589) was generated against the net requirement of โ€“ 41.606.

MD04 stock requirements list showing the exploded BOM and the purchase requisition

Troubleshooting MRP Run Errors

  • There might be a case where the material master record does not exist. Create the material master for the material before running MPS or MRP.
  • Ensure that the BOM and routing data are in place before running MRP, so that procurement proposals are generated at all BOM levels. Otherwise planned orders are created without a BOM, which causes problems later in the consumption process.
  • If a material is skipped, check the MRP type on the MRP 1 view. An MRP type of ND excludes the material from every run.
  • Processing key NETCH plans only materials with a planning file entry, so a material changed outside MRP may need a regenerative run.

FAQs

Machine learning sharpens the forecast that feeds MRP, flags demand anomalies and suggests safety stock. SAP Predictive MRP simulates demand and capacity scenarios in S/4HANA before the operative planning run.

Copilot can draft the ABAP or scripting code that schedules a background planning run and extracts MD04 data. The planning logic still belongs to SAP, so test generated code in a sandbox client.

MRP Live in transaction MD01N replaces the classic run and plans several materials and plants together. It writes no MRP list, so SAP recommends MD04, and it falls back to classic MRP for unsupported features.

MD04 is the stock/requirements list and is dynamic, showing every change made after the run. MD05 is the MRP list, a static snapshot of the last run, so its exception messages can be outdated.

PD is deterministic planning and ND switches planning off. VB is manual reorder point planning, VM automatic reorder point planning and VV forecast-based planning. P0 to P3 are reserved for master production scheduling.

Exception messages are numbered hints raised during the run, such as bring the process forward, postpone it, or cancel the proposal. Planners filter the collective display by exception group to find orders needing attention.

A net change run plans only materials that carry a planning file entry for the plant. If the entry is missing, or the material is excluded from MRP, it is skipped until a regenerative run.

The lot-size key on the MRP 1 view decides whether the shortage is covered exactly, grouped by period, or rounded to a fixed quantity. A fixed lot size of 50 explains an oversized proposal.

Summarize this post with: