Manufacturing Orders in SAP Business One - Tutorial Featured Image

Publications

Manufacturing Orders in SAP Business One: Bill of Materials and Step-by-Step Production

Hector Pincheira

Hector Pincheira

CIO | CTO
Digital Strategy & Technology Innovation

items

There is a scene that repeats in almost every manufacturing company: the salesperson promises a delivery date, production says the job «is well along» and, when someone checks the warehouse, components are missing that nobody had ordered. The result is a late delivery that erodes the customer's trust. Mastering SAP Business One Production Orders closes exactly that gap: it turns a verbal promise into a document that issues materials, tracks progress and shows in real time what is missing to finish. In this tutorial, then, you will build the complete process, from the bill of materials to the SQL queries that give you full shop-floor visibility.

Unlike an after-the-fact cost analysis, here you will work the operational module: the one your team uses every day to turn raw material into finished goods. You will also close the tutorial with SQL queries for both engines (SQL Server and SAP HANA) to monitor production without depending on someone opening the ERP screen by screen.

Why you need to master production in SAP Business One

Most industrial companies that implement an ERP keep planning production in a parallel spreadsheet. As a result, the system and reality live divorced: theoretical inventory does not match the warehouse and nobody knows for certain what each batch produced really costs.

The production order is the document that closes that gap. When you issue it, SAP Business One reserves the components, defines how much output you expect and, when you receive the finished goods, deducts the raw material and values the real cost. Each order becomes an auditable internal contract: you know what went in, what came out and what is still pending. For example, if an order planned 100 units and you only reported 92, the system keeps that gap so management can analyze it, instead of letting it disappear into an email.

The real business impact

Translated into decisions, this means three concrete things. First, you stop over-buying «just in case», because consumption is tied to real orders. You also spot bottlenecks before they hit the delivery date. Finally, you get a reliable unit cost that supports your pricing decisions. As a result, the management conversation changes: from «I think we lose money on that product» to «we know exactly how much and why».

Prerequisites before creating the order

Before issuing your first order, you need three pieces configured. I review them below in dependency order, because each one enables the next.

First, the items must exist in the master data: both the finished product and every component. The finished product must also be flagged according to its inventory management method. Second, you need a Warehouse defined to issue and receive; many plants use a dedicated «Production» or WIP warehouse to isolate what is in process. Finally, you need permissions for the Production module, which the administrator enables under Authorizations.

SAP Business One Production Orders - production planning on the plant floor
The production order connects planning with what actually happens on the shop floor.

Step 1: Build the Bill of Materials (BOM)

The Bill of Materials is the product's recipe. Without it, every order would require loading the components by hand, which multiplies errors. So start here.

Go Production > Bill of Materials. In the field Product, enter the finished product code. Then select the BOM Type: «Production» is the standard option for manufacturing. Next, in the rows, add each component with its quantity per unit of product. For example, if a chair needs 4 legs, enter 4 in the Quantity column. Also define the Warehouse each component will be drawn from and the issue method: «Manual» or «Backflush».

The difference between the two methods is critical. With manual issue, you confirm how much material you actually used; with backflush, however, the system automatically deducts the theoretical quantity when you receive the finished goods. Backflush therefore speeds up high-volume plants, while manual issue delivers greater precision when scrap varies.

Common mistakes when building the BOM

A frequent mistake is forgetting scrap. If you know 5% of the raw material is lost in the process, your BOM quantity must reflect it; otherwise every order will report less consumption than actually occurred. Another common slip is leaving the wrong warehouse on a component, which creates phantom reservations in warehouses that hold no stock.

SAP Business One Production Orders: from the BOM to the released order

With the recipe ready, creating the order takes seconds. Go to Production > Production Order. Select the Type «Standard», enter the product and the planned quantity. When you pick the product, SAP Business One automatically loads the components from the BOM. That way you never retype the recipe.

The order starts out as Planned. At this stage you can still edit it freely. However, for it to reserve materials and enable transactions, you must change it to Released. From that moment on, the order is live on the shop floor. Finally, when you finish manufacturing, you close it, and the system freezes its figures for cost accounting.

SAP Business One Production Orders - operator on the production floor
Every status change on the order leaves a trail you can later audit with SQL.

Issuing components and receiving finished goods

Once released, the order offers two key actions. The Issue for Production moves the components out of the warehouse into the process; if you use backflush, this step happens on its own. Then the Receipt from Production brings the finished product into inventory and assigns it the accumulated cost. For example, if you issued 80,000 pesos of materials and 20,000 of labor, the finished goods enter valued at 100,000. As a result, your inventory reflects the real cost, not an estimate.

Step 4: SQL queries to control production

Here is the differentiator. Instead of opening order by order, these queries give you the state of the shop floor on a single screen. The key tables are OWOR (order header) and WOR1 (its components). Also remember that the field Status uses codes: P = Planned, R = Released, L = Closed and C = Cancelled.

Query 1: Open production orders and their progress

This query lists the released orders with the percentage already produced. At a glance, then, you know what is running late.

SQL Server

-- Ordenes de fabricacion abiertas con avance
SELECT
    T0.DocNum        AS 'Orden',
    T0.ItemCode      AS 'Producto',
    T0.ProdName      AS 'Descripcion',
    T0.PlannedQty    AS 'Planificado',
    T0.CmpltQty      AS 'Producido',
    T0.PlannedQty - T0.CmpltQty AS 'Pendiente',
    CAST(T0.CmpltQty * 100.0 / NULLIF(T0.PlannedQty,0) AS DECIMAL(5,1)) AS 'Avance_%',
    T0.PostDate      AS 'Fecha_Alta',
    T0.DueDate       AS 'Fecha_Entrega'
FROM OWOR T0
WHERE T0.Status = 'R'
ORDER BY T0.DueDate ASC;

SAP HANA

-- Ordenes de fabricacion abiertas con avance
SELECT
    T0."DocNum"        AS "Orden",
    T0."ItemCode"      AS "Producto",
    T0."ProdName"      AS "Descripcion",
    T0."PlannedQty"    AS "Planificado",
    T0."CmpltQty"      AS "Producido",
    T0."PlannedQty" - T0."CmpltQty" AS "Pendiente",
    CAST(T0."CmpltQty" * 100.0 / IFNULL(NULLIF(T0."PlannedQty",0),1) AS DECIMAL(5,1)) AS "Avance_%",
    T0."PostDate"      AS "Fecha_Alta",
    T0."DueDate"       AS "Fecha_Entrega"
FROM OWOR T0
WHERE T0."Status" = 'R'
ORDER BY T0."DueDate" ASC;

Query 2: Component consumption, planned versus issued

Now we drill into the detail. This query compares how much material you planned with how much each order actually issued. Its real value, though, shows up when you review it daily: it exposes deviations before they turn into shortages.

SQL Server

-- Componentes: planeado vs emitido por orden
SELECT
    T0.DocNum       AS 'Orden',
    T0.ItemCode     AS 'Producto',
    T1.ItemCode     AS 'Componente',
    T1.PlannedQty   AS 'Plan_Componente',
    T1.IssuedQty    AS 'Emitido',
    T1.PlannedQty - T1.IssuedQty AS 'Por_Emitir',
    T1.Warehouse    AS 'Almacen'
FROM OWOR T0
INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry
WHERE T0.Status = 'R'
  AND T1.PlannedQty > T1.IssuedQty
ORDER BY T0.DocNum, T1.ItemCode;

SAP HANA

-- Componentes: planeado vs emitido por orden
SELECT
    T0."DocNum"       AS "Orden",
    T0."ItemCode"     AS "Producto",
    T1."ItemCode"     AS "Componente",
    T1."PlannedQty"   AS "Plan_Componente",
    T1."IssuedQty"    AS "Emitido",
    T1."PlannedQty" - T1."IssuedQty" AS "Por_Emitir",
    T1."Warehouse"    AS "Almacen"
FROM OWOR T0
INNER JOIN WOR1 T1 ON T0."DocEntry" = T1."DocEntry"
WHERE T0."Status" = 'R'
  AND T1."PlannedQty" > T1."IssuedQty"
ORDER BY T0."DocNum", T1."ItemCode";

Query 3: Material shortages against available stock

This is the query that prevents line stoppages. It crosses what you still have to issue with the real stock in the warehouse (table OITW). As a result, you immediately identify which component falls short of closing the order.

SQL Server

-- Faltantes: por emitir vs stock disponible
SELECT
    T1.ItemCode     AS 'Componente',
    SUM(T1.PlannedQty - T1.IssuedQty) AS 'Total_Por_Emitir',
    T2.OnHand       AS 'Stock_Disponible',
    T2.OnHand - SUM(T1.PlannedQty - T1.IssuedQty) AS 'Balance'
FROM OWOR T0
INNER JOIN WOR1 T1 ON T0.DocEntry = T1.DocEntry
INNER JOIN OITW T2 ON T1.ItemCode = T2.ItemCode AND T1.Warehouse = T2.WhsCode
WHERE T0.Status = 'R'
  AND T1.PlannedQty > T1.IssuedQty
GROUP BY T1.ItemCode, T2.OnHand
HAVING T2.OnHand - SUM(T1.PlannedQty - T1.IssuedQty) < 0
ORDER BY 'Balance' ASC;

SAP HANA

-- Faltantes: por emitir vs stock disponible
SELECT
    T1."ItemCode"   AS "Componente",
    SUM(T1."PlannedQty" - T1."IssuedQty") AS "Total_Por_Emitir",
    T2."OnHand"     AS "Stock_Disponible",
    T2."OnHand" - SUM(T1."PlannedQty" - T1."IssuedQty") AS "Balance"
FROM OWOR T0
INNER JOIN WOR1 T1 ON T0."DocEntry" = T1."DocEntry"
INNER JOIN OITW T2 ON T1."ItemCode" = T2."ItemCode" AND T1."Warehouse" = T2."WhsCode"
WHERE T0."Status" = 'R'
  AND T1."PlannedQty" > T1."IssuedQty"
GROUP BY T1."ItemCode", T2."OnHand"
HAVING T2."OnHand" - SUM(T1."PlannedQty" - T1."IssuedQty") < 0
ORDER BY "Balance" ASC;
SAP Business One Production Orders - industrial machinery in operation
With the right queries, the state of the shop floor fits on a single screen.

Advanced variations and use cases

The module goes beyond the standard order. For example, the Special type lets you manufacture without a predefined BOM, useful for prototypes or one-off jobs. In addition, the Disassembly type does the opposite: it breaks a product down into its components, ideal for rework or for recovering parts from obsolete finished goods.

Another frequent scenario is project-based production. So if you assign each order to a project code, you can then group manufacturing costs by job or contract. Likewise, those who work with subcontractors usually model outsourced work as an order with an «external service» component, so the third party's cost stays inside the finished product.

Best practices and common mistakes

The most profitable practice is closing orders on time. A released order left open by oversight distorts your work-in-process inventory and pollutes your cost reports. So run Query 1 at least once a week to hunt down zombie orders.

Another sensitive point is valuation. If your finished product uses standard cost, check that the standard is up to date before receiving; otherwise you will carry a cost difference that accounting will have to adjust. Also avoid issuing components from a warehouse with no stock: SAP Business One can allow negative inventory if configured that way, and that imbalance is hard to trace afterwards.

Finally, a classic mistake is confusing planned quantity with actual quantity. The order keeps both for a reason: the difference is management information. Yet many users «square» the figure to close quickly, and in doing so they destroy the most valuable data in the module.

SAP Business One Production Orders - detail of gears and the production process
The BOM configuration details determine the quality of the whole process.

Official SAP Resources

To go deeper, lean on the official documentation. The SAP Business One Help built into the system (F1 on any field) explains every field on the order. In addition, the SAP Help Portal publishes the Production module guide, and the SAP Community keeps active forums where you can look up real cases of BOM and cost configuration.

Conclusion: from the promise to the data

Mastering production orders is not an operator's topic; it is a management decision. When the shop floor works with real orders and you monitor them with SQL, you stop governing production by intuition and start governing it by evidence. Consequently, delivery dates are met, costs become reliable and purchasing stops inflating out of fear of shortages.

If you lead technology or operations at a manufacturing company, this is one of the modules that pays back its implementation fastest. So the next step is yours: take one of the three queries, run it against your database and see what it tells you about your shop floor today. If you want the rest of the practical SAP Business One series, with tutorials and production-ready SQL, join the Strategic Circle at hectorpincheira.com and get full access to the members-only content.

Most Read

Ballena jorobada bajo el agua con su aleta pectoral extendida: la esperanza en la tecnología y la biomimética
La ballena que volvió: la esperanza en la tecnología y la que no cabe en un tablero
SAP data in ChatGPT: an open door at the far end of a dark room
The Tab Next Door: The SAP Data in ChatGPT That Nobody Authorized
SAP Business One Purchase Price Variance - featured image of the tutorial
SAP Business One Purchase Price Variance: Detect the Inflation in Your Buying Costs
QlikSense format changeovers: actual minutes against the standard
QlikSense Format Changeovers: the Minutes Nobody Bills
QlikSense buttons and actions: executive dashboard with indicators
QlikSense Buttons and Actions: the Dashboard that Runs the Meeting
SAP Business One Internal Reconciliation - featured image of the tutorial
SAP Business One Internal Reconciliation: Clear False Open Items

RELATED ARTICLES