SAP PP-PI in a sugar mill: how to model production with co-products

Sugar, molasses and bagasse come out of the same process. Here is how to model them in SAP PP-PI with master recipes, process orders, co-products, by-products and batches, and keep real costs.

Freshly cut cane stalks tied together with twine.

A sugar mill doesn’t make one product. Sugar, final molasses, bagasse and filter cake all come from the same cane, in a process that never stops while the mill is grinding. Configure SAP as if it were an assembly line and the system ends up describing a different plant, and nobody trusts the cost of sugar.

These are the modeling decisions we recommend making before the first master recipe is created.

Decision 1: co-product or by-product

In SAP the difference is more than a label. It changes how output is planned, posted and costed.

  • Co-product. Receives a share of the process cost. It is flagged with the co-product indicator in the MRP or costing view of the material master. Costs are split through an apportionment structure that assigns equivalence numbers to each co-product. In the process order, each co-product has its own order item.
  • By-product. An incidental output. It goes into the material list with a negative quantity and no co-product flag. Its receipt is posted with movement type 531, and its value, for example at a fixed price, reduces the order cost.

Sugar is the primary product. The debate is usually about final molasses: if it is sold or feeds a distillery, it carries economic weight and should be a co-product, or a fixed-price co-product if finance prefers the net realizable value method. Bagasse is almost always a by-product burned in the boilers, so its value flows into the cost of steam.

Rule of thumb: if management wants to see a product’s margin, make it a co-product.

The apportionment rule is a joint call for finance and production. Equivalence numbers can reflect relative market value or sucrose content, and each choice shifts margins. Write the criterion down and revisit it when prices move.

Decision 2: what each process order represents

Two structures are common:

  1. One order per period for the whole process. Cane goes in; sugar, molasses and by-products come out. The header can carry a process material (type PROC) that represents the process and is never stocked. Simple, but stage costs are blended.
  2. A chain of orders by stage, such as milling (cane → juice and bagasse) and sugar house (juice → sugar and molasses). You see cost by stage and intermediate inventory, at the price of more postings.

Intermediates such as juice, syrup or massecuite can be intra materials, which exist only between phases and are not costed, or stocked semi-finished goods. If your month-end close values sugar in process, you need stocked intermediates.

Then choose the order duration. A daily order matches the daily factory report. A monthly order cuts transactions but stretches traceability to a month. A shift order gives the finest detail and demands the most discipline.

Decision 3: confirming a process that never stops

  • Phase confirmations post times and quantities by phase. Auxiliary materials such as lime or flocculants can be backflushed, and goods receipt can be automatic when the last phase is confirmed.
  • Process management turns a released order into control recipes, sent to operators as PI sheets or to the plant control system. Process messages come back with actual times and quantities. This is available in S/4HANA on premises and in the private edition; check the scope if you run the public cloud edition.
  • One source per quantity: tons ground from the weighbridge, sugar from bagging, molasses from tank gauging.

If the daily sucrose balance doesn’t close in the factory, it won’t close in SAP either.

Decision 4: batches and quality

Sugar ships by batch, and customers buy specifications: polarization, color, moisture, ash.

  • Define what a batch is: a shift, a day or a warehouse. That definition caps what you can trace later.
  • Build a batch class with the characteristics customers require, so sales can use batch determination by specification.
  • With an in-process inspection type active, SAP creates an inspection lot at order release for lab results by phase.
  • A goods receipt inspection lot lets the usage decision release or block stock.

Lab results belong on the batch, not in a spreadsheet.

Decision 5: how actual cost arrives

Actual costs collect on the order header. At period end they are distributed to the co-product items through the apportionment structure; work in process and variances are calculated by item, and the items are settled. In S/4HANA, Material Ledger is mandatory; actual costing is optional and should be decided early. Also decide how cane cost arrives: supplier purchase price, own-farm cost or both.

Common mistakes

  • Modeling every tank as a stocked material.
  • Declaring molasses a by-product to keep things simple, then rebuilding when finance asks for its margin.
  • Confirming figures that don’t match the factory balance.
  • Batches without classification.
  • Setting equivalence numbers once and never reviewing them.
  • Testing only a normal day. Include mill stoppages, reprocessing and dirtier cane.

Checklist before configuring

  • Co-products and by-products agreed with finance, with the split rule in writing.
  • Order structure and duration defined.
  • Intermediates classified as stocked or intra.
  • One source for each quantity in the balance.
  • Batch definition and characteristics approved by quality.
  • Test plan built on real operating days.

If you are designing or reviewing your model, see our SAP PP-PI service or get in touch.

More insights

All insights

Let's talk about your operation

Tell us what you want to solve and we'll get back to you by email or WhatsApp.