Hi All,
When I'm executing Manufacturing --> Execution --> Released Prod. Orders --> Functions --> Change Status I'm getting an error 'There is an integer that is too large'
Error Location Seems to be the following:
Object : Table 5810 Rounding Residual Buffer\UpdRoundingCheck
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" * NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
NewAdjustedCost seems to be holding the value -107,805,555,865,372,939,000,000,000,000,000
Please advice..
0
Comments
How about "no. of hits" and NewInboundEntryNo?
Greetz,
Marc
Code :
IF ((RdngPrecision >= NewAdjustedCost) OR
(RndngPrecisionACY >= NewAdjustedCostACY)) AND
(("Adjusted Cost" / NewAdjustedCost) <= 0) AND
(("Adjusted Cost (ACY)" * NewAdjustedCostACY) <= 0)
THEN
"No. of Hits" := "No. of Hits" + 1
bye
Matteo
Or, maybe you produced item and in the same production order consumed it?
I can modify the code as it is only checking whether the result is <=0 . But it is still giving error in another location
Location : Table 5820 Cost Element Buffer\RoundActualCost(ShareOfTotalCost,AmtRndgPrec,AmtRndgPrecACY)
Code : "Actual Cost" := "Actual Cost" * ShareOfTotalCost + "Rounding Residual";
"Actual Cost (ACY)" := "Actual Cost (ACY)" * ShareOfTotalCost + "Rounding Residual (ACY)";
"Rounding Residual" := "Actual Cost" - ROUND("Actual Cost",AmtRndgPrec);
"Rounding Residual (ACY)" := "Actual Cost (ACY)" - ROUND("Actual Cost (ACY)",AmtRndgPrecACY);
"Actual Cost" := ROUND("Actual Cost",AmtRndgPrec);
"Actual Cost (ACY)" := ROUND("Actual Cost (ACY)",AmtRndgPrecACY);
"Actual Cost" = -102,027,663,437,439,781,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000
ShareOfTotalCost = -1.65562913907284768
"Actual Cost (ACY)" = 0
AmtRndgPrec = AmtRndgPrecACY = 0.01
After Clicking 'Change Status', I'm selecting new status 'Finished' and Press 'Yes'. After that I'm getting a message 'Production Order RPO**** has not been finished. Some consumption is still missing. Do you still want to finish the Order?'
'Adjusting Value Entries..' window is displayed, showing the update and in between I'm getting the error message.
Released Production Order Header:
Source Type : Item
Source No. : M0170017-02-03
Released Production Order Lines:
1. Item No. : M0170017-02-03
Quantity : 87
Finished Quantity : 87
2. Item No. : M0170017-C1-04
Quantity : 87
Finished Quantity : 87
Inventory for Item M0170017-02-03 is -25
Is this a novemdecillion :-k & Negative to boot :shock:
http://www.jimloy.com/math/billion.htm
http://www.BiloBeauty.com
http://www.autismspeaks.org