Rounding quantities during order explosion


To round decimal fractions of quantities occurred from the setting of yield and so on, you can use the internal function Roundup or Round for the following properties.

"Production qty formula" and "Input qty formula" of the master input instruction class

"Production qty formula" and "Output qty formula" of the master output instruction class


Example of Roundup:

When you do not want to display decimal fractions

Roundup( x, 0 ) *x: Quantity to round up


In most cases, you only have to set the two properties of the master output instruction class.

Specific examples are given below.

Production qty formula

Roundup((ME.OutputWorkInst_Qty/ME.OutputWorkInst_OutputBomInst.Yield
+ME.OutputWorkInst_OutputBomInst.Scrap)/ME.OutputWorkInst_OutputBomInst.InOutRate,0)

Output qty formula

Round((ME.OutputWorkInst_Work.OperationOutMainItemQty
*ME.OutputWorkInst_OutputBomInst.InOutRate-ME.OutputWorkInst_OutputBomInst.Scrap)
*ME.OutputWorkInst_OutputBomInst.Yield,0)

Please note that Round (rounding down) is used instead of Roundup for the output qty formula. This is because the quantity is calculated in the reverse direction.

The production qty formula is used for calculating production quantity from output quantity.

Example: When calculating the production quantity of the final process based on the order quantity

The output qty formula is used for calculating output quantity from production quantity.

Example: When calculating the input quantity of the later process based on the result quantity of this process that is completed


HelpNo.:782500
© Since 2019 Asprova Corporation, All rights reserved.