Having explored the mechanism of the Material Requirements Planning (MRP) engine in Apache OFBiz, it’s time to apply that knowledge. This guide demonstrates how to run the MRP engine to generate requirements for a skateboard manufacturing scenario. The MRP engine calculates requirements by considering variables such as sales orders, inventory levels, and production schedules, saving time and effort.
Using the skateboard example, we’ll walk you through the steps to set up and run the MRP engine, generate internal and external requirements, and balance supply and demand throughout the production process.
Note: In Apache OFBiz, external requirements are referred to as "product requirements."
If you haven’t set up the skateboard and its Bill of Materials (BOM) in Apache OFBiz, refer to the BOM setup guide for instructions.
Before running the MRP engine, ensure the Bill of Materials (BOM) for the skateboard is configured, add facility and supplier information for all components.
Suppliers must be assigned to components that are procured externally, and facilities must be set for both internally produced and externally procured components.


Note: Setting minimum stock and reorder quantities is optional and depends on business preferences.
Go to the Suppliers tab on the same Products screen.

Similarly, add the facility and inventory details for the other components as well.
After adding facility and supplier details for the components, you’re ready to run the MRP engine on the specified facility (Web Store Warehouse) to calculate requirements.
This section outlines how to calculate requirements for a sales order of 100 skateboards with an estimated delivery date of August 16, 2025, by running the MRP engine on June 16.
Each skateboard takes 30 minutes to produce, and each deck takes 15 minutes. The machine operates 8 hours a day, Monday to Friday, with Saturdays and Sundays as non-working days.


Note: The Default Years Offset setting is useful only when the system contains orders without any estimated delivery dates, typically created due to data imports from external sources.


Refresh the page until the STATUS ID changes from Pending to Finished, indicating that the MRP engine has successfully generated the requirements plan.
After the MRP run completes, review the generated requirements:


The requirements from the MRP run will appear with a STATUS ID of Proposed.
The MRP engine uses the following formula to calculate requirement quantities: Requirement Quantity = MAX(Reorder Qty, (Minimum Stock - Simulated Stock)) Where, where:
For a detailed explanation of the formulas, refer to the guide on the internals of the MRP Engine in Apache OFBiz. |
Internal Requirements
Simulated Stock = 0 – 100 = –100
Requirement Quantity = MAX(0, 0 – (–100)) = 100 units
Simulated Stock = 0 – 100 = –100
Requirement Quantity = MAX(0, 0 – (–100)) = 100 units
Product Requirements
Simulated Stock = 0 – 200 = –200
Requirement Quantity = MAX(0, 0 – (–200)) = 200 units
Simulated Stock = 0 – 100 = –100
Requirement Quantity = MAX(0, 0 – (–100)) = 100 units
Total production time = 100 × 0.5 hours = 50 hours
Working capacity = 8 hours/day → 7 working days needed (approx).
Counting back 7 working days from 15 August (excluding weekends), we get: 07 August 2025 (Thursday)
Deck production takes 3 working days (approx).
Counting back 3 working days from 07 August , we get: 04 August 2025 (Monday)
This is how Apache OFBiz calculates the timeline to ensure production is completed just in time for delivery.
After the MRP engine generates the requirements, the production manager reviews and approves them.
Once the product requirements are approved, a Purchase Order can be created to procure the necessary items from the supplier.
Similarly, after approving the internal requirements, a production run is automatically created to fulfill the Sales Order. To learn more about this process, refer to the detailed guide


To learn how to manage procurement and create a Purchase Order in Apache OFBiz, refer to the Purchase Order Workflow Explained: Managing Procurement with Apache OFBiz guide.
Material Requirements Planning (MRP) Engine of Apache OFBiz serves as a cornerstone in modern manufacturing enabling businesses to optimize inventory management, streamline production processes, and meet demand more effectively.
By understanding how it works, especially in real-world scenarios, businesses can eliminate manual planning, improve accuracy, and respond to changing demands. Mastering MRP isn’t just about better planning, it’s about creating a more agile, cost-efficient, and competitive operation.