Sub topic 11
Production Planning and Manufacturing
This chapter covers how Production Planning (PP) turns demand into production orders, and how those orders connect to Inventory and Finance. It assumes you know the organizational structure (plants, company codes), material master basics, and the goods movement concepts from the Inventory chapter. It also assumes you can read simple relational joins.
What PP is responsible for
Production Planning and Manufacturing (PP) answers three questions. What do we need to make, how do we make it, and what did it actually consume and produce? PP does not own materials or cost accounting. It reads the material master, writes goods movements into Inventory, and sends cost postings to Finance and Controlling.
The module has four building blocks:
- Master data that describes how a product is made.
- Planning, which converts demand into proposed supply (planned orders and purchase requisitions).
- Execution, where production orders are released, components are issued, and finished goods are received.
- Costing and settlement, where the order's costs are collected and settled to the right account.
Production master data
PP adds its own master data on top of the shared objects described earlier.
| Object | Purpose |
|---|---|
| Material master (MRP, work scheduling, and costing views) | Planning parameters, procurement type, production times, standard price |
| Bill of material (BOM) | The components, with quantities, needed to make one unit of a parent material |
| Work center | A place where work happens, such as a machine or assembly line. Carries capacity and activity rates |
| Routing (task list) | The ordered operations, each assigned to a work center, with standard times |
| Production version | Links a BOM and a routing for a material in a plant |
All of these are plant-level objects. A BOM is created for a plant (or a BOM usage), and a work center belongs to a plant. This is why the same material can be made in different ways in different plants.
The BOM drives material requirements. The routing drives scheduling, capacity, and labor or machine cost. The production version tells the system which BOM and routing pair to use when it creates an order.
Procurement type decides who supplies what
Each material in each plant has a procurement type in its MRP view:
- E (in-house production): planning creates planned orders.
- F (external procurement): planning creates purchase requisitions.
- X (both): either can be used.
This field is the point where PP and Procurement meet. A component with type F in a BOM leads to a purchase requisition, which then follows the procure-to-pay chain. A component with type E leads to its own production order, which creates a multi-level production structure.
Material requirements planning
Material requirements planning (MRP) compares demand with available supply and proposes the difference. In S/4HANA, the recommended run is MRP Live, which executes on the SAP HANA database instead of in application server loops. This makes full planning runs much faster than in ECC.
MRP considers:
- Demand: sales orders, forecast, planned independent requirements, and dependent requirements from higher-level BOMs.
- Supply: stock, open purchase orders, open production orders, and planned orders.
- Parameters: lot-size procedure, safety stock, planned delivery time, in-house production time, and the MRP type.
The planning logic works top-down through the BOM, one level after another. The finished product is planned first. Its planned orders create dependent requirements for components, which are planned next.
The production order lifecycle
A production order is the central execution document. It copies the BOM into a list of components and the routing into a list of operations, then tracks everything that happens to them.
- Create. A planned order is converted, or an order is created directly. The system pulls in the BOM and routing through the production version and calculates planned costs.
- Release. Release is a status change that allows goods movements and confirmations. Before release, you can plan but not execute.
- Goods issue. Components are withdrawn from stock to the order (movement type 261). Inventory decreases and the order is debited.
- Confirmation. Operators report yield, scrap, and the time or machine hours used. These confirmed quantities and activities create the actual costs for labor and machine time.
- Goods receipt. The finished product is received into stock (movement type 101). Inventory increases and the order is credited.
- Technical completion and settlement. After the order is closed, the difference between debit and credit is settled.
Status values control what is allowed. An order that is created but not released rejects goods issues. A technically completed order rejects further confirmations. Many errors in practice, such as "order not released", come from these status rules rather than from missing data.
How PP connects to Finance
Production is where Inventory, Procurement, and Controlling meet in one document. Each step posts to the Universal Journal (ACDOCA) as well as to the stock:
- Goods issue (261): debits the order, credits raw material inventory.
- Activity confirmation: debits the order, credits the cost center that provides the work center's activity.
- Goods receipt (101): debits finished goods inventory, credits the order.
- Settlement: moves any remaining balance, a variance, to a variance account.
With standard costing, finished goods are valued at the standard price. The variance is the difference between the actual costs collected and the standard value of the goods received. With actual costing in the Material Ledger, which is always active in S/4HANA, the difference can instead revalue inventory and cost of goods sold.
Because ACDOCA stores the order number as a field on each line, you can query costs per production order directly. The query below sums amounts per order in company code currency. The field names are real ACDOCA fields. Adjust the company code and year to your system.
SELECT aufnr, racct, SUM( hsl ) AS amount
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2024'
AND aufnr <> @space
GROUP BY aufnr, racct
INTO TABLE @DATA(order_costs).Make-to-stock and make-to-order
The planning strategy determines how production relates to sales demand.
| Strategy | Production triggered by | Typical use |
|---|---|---|
| Make-to-stock (MTS) | Forecast or planned independent requirements | Standard products with steady demand |
| Make-to-order (MTO) | A specific sales order | Customized or high-value products |
In MTO, the sales order item is linked to the production through requirements, so the finished goods are reserved for that customer. This is where Sales and PP are most tightly coupled. A change on the sales order, such as quantity or date, will change the requirement, and MRP will propose a change in supply on its next run.
Common errors
- Missing production version. MRP or order creation cannot find which BOM and routing to use. Check that the version exists for the plant and that its validity dates cover the order date.
- Wrong procurement type. A component set to F is bought when you expected it to be made. Check the MRP view.
- Component availability. A release can be blocked or flagged because components are missing. Check the availability check settings and the stock situation, not only the BOM.
- Backflush surprises. If a component uses backflushing, goods issue happens automatically at confirmation. Manual issue then duplicates the consumption.
- Plant mismatch. Material views, BOMs, and work centers exist per plant. A material extended to one plant does not exist in another.
- Unsettled orders. Open orders keep costs in the order and do not appear in the target account. Period-end settlement is a standard step in record-to-report.
Where PP sits in the end-to-end picture
The plan-to-produce chain looks like this:
Demand -> MRP -> Planned order -> Production order -> Goods issue
-> Confirmation -> Goods receipt -> Settlement -> FinanceIt joins the others at defined points. Procurement supplies the components through purchase requisitions from MRP. Inventory records every goods movement. Sales provides the demand, and later ships the product. Finance receives the cost flows. When you debug a production problem, start by deciding which of these boundaries it crosses.
Exercise
A component in a BOM has procurement type F in the plant, but the planner expected it to be produced in-house. What does MRP create for it, and which module's process follows?
Show answer
MRP creates a purchase requisition for the component, not a planned order. The procure-to-pay chain in Procurement follows: purchase requisition, purchase order, goods receipt, supplier invoice, payment. To make it in-house, change the procurement type to E (or X) in the MRP view and make sure a BOM, routing, and production version exist for that plant.
Exercise
Goods issue to a production order fails with a status error. The BOM is correct and stock is available. What is the most likely cause, and what is the lifecycle step to fix it?
Show answer
The order has probably not been released. Goods movements and confirmations are only allowed after release, so release the order, then post the goods issue (movement type 261).
Exercise
With standard costing, what does the variance at settlement represent?
Show answer
It is the difference between the actual costs collected on the production order (components, activities) and the standard value of the finished goods received (the goods receipt credit). Settlement posts it to a variance account.