Example: Calculating Product and Component Quantities 

Scenario

You want to make fruit juice from fruit premix, water, sugar, and lemon juice and fill it in 20-liter containers. Remaining quantities smaller than 20 liters are directed to a collecting tank. For shelf life reasons, you do not want to make a batch split for the fruit premix. Instead, you want to use one tank and thus a complete batch for the production. For this reason, you must match up the product quantity and all other component quantities with the actual fruit premix quantity.

Realization

Entries in the Master Recipe and Bill of Material (BOM)

In the BOM, you enter the required component quantities with reference to a base quantity of the material Fruit juice. These quantities are transferred to the Material Quantity Calculation screen in the master recipe. The following data is displayed, for example:

Calculating the Product Quantity

The product quantity in the order is determined by the available fruit premix quantity. For this reason, the system must calculate the fruit juice quantity as follows:

 

Fruit juice qty

=

Fruit premix quantity / 0.7

You therefore enter the following formula for the fruit juice:

 

[004,001] / 0,7

Calculating the Component Quantities

If you want the system to recalculate the component quantities after calculating the fruit juice quantity, you must enter formulas for them. The quantity of water, lemon juice, and sugar can be calculated in proportion to the fruit juice quantity. This means that you must enter the following formulas:

 

[001,001] * 0,25

 

[001,001] * 0,03

 

[001,001] * 0,09

Only whole numbers make sense for the containers. Since you direct remaining quantities into containers, the system must first calculate the number of containers in proportion to the fruit juice quantity and then round it down to whole numbers. The following applies:

 

No. of containers

=

Fruit juice qty DIV Maximum qty of container

This means, you must enter the following formula:

 

[001,001] DIV 20

Process During Order Processing

In the order, the material data is processed as follows:

  1. You create a process order for an order quantity or fruit juice quantity of 300 l for example.
  2. The system calculates the following:

As a result, the following data is displayed:

  1. You carry out batch determination for the Fruit premix component. You use the batch that has the earliest expiration date and a quantity of 175 l. In the totals record of the material component, you use the batch quantity 175 l as the original quantity and set the requirement quantity to 0.
  2. You manually start product quantity calculation. The system makes the following adjustments one after another:
    1. It calculates the fruit juice quantity. As specified in the formula, it uses the totals record for the fruit premix and thus the updated original quantity for this.
    2. It updates the quantity of water, sugar, and lemon juice as well as the number of containers using the formulas.

The following data is displayed: