SAP MRP (planowanie zapotrzebowania materiałowego)

⚡ Inteligentne podsumowanie

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.

  • 🔘 Cel: MRP nets requirements against stock in hand and creates planned orders or purchase requisitions for the shortage.
  • transakcje: MD01 plans a full plant, MD02 a single material, MD43 plans interactively, and MD04 shows the result.
  • Dane podstawowe: MRP type PD on the MRP 1 view activates planning, while ND excludes the material.
  • 🧪 Parametry: 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

Czym jest 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.
  • Sprzedaż i dystrybucja dają konkretne wymagania klientów z rynku.
  • In Zarządzanie popytem, 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.
  • Zlecenia produkcyjne 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.

Główny harmonogram produkcji (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.

  • Oddzielny przebieg odbywa się dla pozycji MPS; nie są one uwzględniane w przebiegu MRP.
  • 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.

Parametry planowania MRP

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.

Klucz przetwarzania

  • 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.

Tryb planowania

  • 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 centra pracy.

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.

Krok 1) Z 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. Wprowadź klucz przetwarzania jako „NETCH” (zmiana netto całkowitego horyzontu).
  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

Po wypełnieniu wszystkich pól kliknij Zielony przycisk z zaznaczeniem, służący do potwierdzenia wpisów MD01 aby przejść do następnego ekranu.

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.

Krok 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.

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

  1. Wprowadź kod materiału, dla którego chcesz uruchomić MRP.
  2. Enter your manufacturing Plant code for which you want to take the MRP run.
  3. Wprowadź klucz przetwarzania jako „NETCH” (zmiana netto całkowitego horyzontu).
  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

Po wypełnieniu wszystkich pól kliknij Zielony przycisk z zaznaczeniem, służący do potwierdzenia wpisów MD02 aby przejść do następnego ekranu.

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.

Krok 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

Uwaga: 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.

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

  1. Wprowadź materiał, dla którego chcesz uruchomić MPS. Tutaj wzięliśmy identyfikator „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

Kliknij Zielony przycisk z zaznaczeniem, służący do potwierdzenia wpisów MD43 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. Kliknij Green check mark button clicked a second time to continue in MD43 again if everything is correct.

Krok 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. Sprawdź wygenerowane zamówienia planowane.

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.

Krok 1) Z SAP Ekran łatwego dostępu, otwarta transakcja MD04.

  1. Enter the material for which the stock/requirements list needs to be displayed.
  2. Wprowadź kod zakładu.

MD04 initial screen with the material and plant selection fields

Krok 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.

FAQ

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.

Podsumuj ten post następująco: