{"title":"Codeunit 99000758 Mfg. Cost Calculation Mgt., procedures","url":"https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt/procedures/","author":"JOP-AL","license":"Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/","subject":"Microsoft Dynamics 365 Business Central","checked":"2026-11-20","changed":"2026-10-05","object":{"type":"codeunit","id":99000758,"name":"Mfg. Cost Calculation Mgt.","app":"Base Application","versions":"26-29","url":"https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt/","json":"https://jonas-paprotka.de/ref/codeunit/99000758-mfg-cost-calculation-mgt.json"},"aspect":"procedures","total":24,"rows":[{"name":"CalcRoutingCostPerUnit","sig":"(Enum Capacity Type, Code[20], var Decimal, var Decimal, var Decimal, var Decimal, var Enum Unit Cost Calculation Type)","named":"(Type: Enum \"Capacity Type\"; No: Code[20]; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum \"Unit Cost Calculation Type\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(Type: Enum \"Capacity Type\"; No: Code[20]; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum \"Unit Cost Calculation Type\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcRoutingCostPerUnit","sig":"(Enum Capacity Type, var Decimal, var Decimal, var Decimal, var Decimal, var Enum Unit Cost Calculation Type, Record Work Center, Record Machine Center)","named":"(Type: Enum \"Capacity Type\"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum \"Unit Cost Calculation Type\"; WorkCenter: Record \"Work Center\"; MachineCenter: Record \"Machine Center\")","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(Type: Enum \"Capacity Type\"; var DirUnitCost: Decimal; var IndirCostPct: Decimal; var OvhdRate: Decimal; var UnitCost: Decimal; var UnitCostCalculation: Enum \"Unit Cost Calculation Type\"; WorkCenter: Record \"Work Center\"; MachineCenter: Record \"Machine Center\")","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcShareOfTotalCapCost","sig":"(Record Prod. Order Line, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ShareOfTotalCapCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ShareOfTotalCapCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineStdCost","sig":"(Record Prod. Order Line, Decimal, Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; CurrencyFactor: Decimal; RndgPrec: Decimal; var StdMatCost: Decimal; var StdCapDirCost: Decimal; var StdSubDirCost: Decimal; var StdCapOvhdCost: Decimal; var StdMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; CurrencyFactor: Decimal; RndgPrec: Decimal; var StdMatCost: Decimal; var StdCapDirCost: Decimal; var StdSubDirCost: Decimal; var StdCapOvhdCost: Decimal; var StdMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineStdCost","sig":"(Record Prod. Order Line, Decimal, Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; CurrencyFactor: Decimal; RndgPrec: Decimal; var StdMatCost: Decimal; var StdNonInvMatCost: Decimal; var StdCapDirCost: Decimal; var StdSubDirCost: Decimal; var StdCapOvhdCost: Decimal; var StdMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; CurrencyFactor: Decimal; RndgPrec: Decimal; var StdMatCost: Decimal; var StdNonInvMatCost: Decimal; var StdCapDirCost: Decimal; var StdSubDirCost: Decimal; var StdCapOvhdCost: Decimal; var StdMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineExpCost","sig":"(Record Prod. Order Line, Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ShareOfTotalCapCost: Decimal; var ExpMatCost: Decimal; var ExpCapDirCost: Decimal; var ExpSubDirCost: Decimal; var ExpCapOvhdCost: Decimal; var ExpMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ShareOfTotalCapCost: Decimal; var ExpMatCost: Decimal; var ExpCapDirCost: Decimal; var ExpSubDirCost: Decimal; var ExpCapOvhdCost: Decimal; var ExpMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineExpCost","sig":"(Record Prod. Order Line, Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ShareOfTotalCapCost: Decimal; var ExpMatCost: Decimal; var ExpNonInvMatCost: Decimal; var ExpCapDirCost: Decimal; var ExpSubDirCost: Decimal; var ExpCapOvhdCost: Decimal; var ExpMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ShareOfTotalCapCost: Decimal; var ExpMatCost: Decimal; var ExpNonInvMatCost: Decimal; var ExpCapDirCost: Decimal; var ExpSubDirCost: Decimal; var ExpCapOvhdCost: Decimal; var ExpMfgOvhdCost: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineActCost","sig":"(Record Prod. Order Line, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ActMatCost: Decimal; var ActCapDirCost: Decimal; var ActSubDirCost: Decimal; var ActCapOvhdCost: Decimal; var ActMfgOvhdCost: Decimal; var ActMatCostCostACY: Decimal; var ActCapDirCostACY: Decimal; var ActSubDirCostACY: Decimal; var ActCapOvhdCostACY: Decimal; var ActMfgOvhdCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ActMatCost: Decimal; var ActCapDirCost: Decimal; var ActSubDirCost: Decimal; var ActCapOvhdCost: Decimal; var ActMfgOvhdCost: Decimal; var ActMatCostCostACY: Decimal; var ActCapDirCostACY: Decimal; var ActSubDirCostACY: Decimal; var ActCapOvhdCostACY: Decimal; var ActMfgOvhdCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderLineActCost","sig":"(Record Prod. Order Line, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ActMatCost: Decimal; var ActNonInvMatCost: Decimal; var ActCapDirCost: Decimal; var ActSubDirCost: Decimal; var ActCapOvhdCost: Decimal; var ActMfgOvhdCost: Decimal; var ActMatCostACY: Decimal; var ActNonInvMatCostACY: Decimal; var ActCapDirCostACY: Decimal; var ActSubDirCostACY: Decimal; var ActCapOvhdCostACY: Decimal; var ActMfgOvhdCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; var ActMatCost: Decimal; var ActNonInvMatCost: Decimal; var ActCapDirCost: Decimal; var ActSubDirCost: Decimal; var ActCapOvhdCost: Decimal; var ActMfgOvhdCost: Decimal; var ActMatCostACY: Decimal; var ActNonInvMatCostACY: Decimal; var ActCapDirCostACY: Decimal; var ActSubDirCostACY: Decimal; var ActCapOvhdCostACY: Decimal; var ActMfgOvhdCostACY: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderExpCapNeed","sig":"(Record Production Order, Boolean)","named":"(ProdOrder: Record \"Production Order\"; DrillDown: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrder: Record \"Production Order\"; DrillDown: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcProdOrderActTimeUsed","sig":"(Record Production Order, Boolean)","named":"(ProdOrder: Record \"Production Order\"; DrillDown: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrder: Record \"Production Order\"; DrillDown: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcOutputQtyBaseOnPurchOrder","sig":"(Record Prod. Order Line, Record Prod. Order Routing Line)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActOutputQtyBase","sig":"(var Record Prod. Order Line, Record Prod. Order Routing Line)","named":"(var ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActualOutputQtyWithNoCapacity","sig":"(Record Prod. Order Line, Record Prod. Order Routing Line)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActQtyBase","sig":"(Record Prod. Order Line, Record Prod. Order Routing Line)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActOperOutputAndScrap","sig":"(Record Prod. Order Line, Record Prod. Order Routing Line)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderRtngLine: Record \"Prod. Order Routing Line\")","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActNeededQtyBase","sig":"(Record Prod. Order Line, Record Prod. Order Component, Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderComp: Record \"Prod. Order Component\"; OutputQtyBase: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; ProdOrderComp: Record \"Prod. Order Component\"; OutputQtyBase: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcActTimeAndQtyBase","sig":"(Record Prod. Order Line, Code[10], var Decimal, var Decimal, var Decimal, var Decimal)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; OperationNo: Code[10]; var ActRunTime: Decimal; var ActSetupTime: Decimal; var ActOutputQty: Decimal; var ActScrapQty: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; OperationNo: Code[10]; var ActRunTime: Decimal; var ActSetupTime: Decimal; var ActOutputQty: Decimal; var ActScrapQty: Decimal)","returns":"","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcCompItemQtyBase","sig":"(Record Production BOM Line, Date, Decimal, Code[20], Boolean)","named":"(ProdBOMComponent: Record \"Production BOM Line\"; CalculationDate: Date; MfgItemQtyBase: Decimal; RtngNo: Code[20]; AdjdForRtngScrap: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(ProdBOMComponent: Record \"Production BOM Line\"; CalculationDate: Date; MfgItemQtyBase: Decimal; RtngNo: Code[20]; AdjdForRtngScrap: Boolean)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalculateCostTime","sig":"(Decimal, Decimal, Code[10], Decimal, Code[10], Decimal, Decimal, Decimal, Code[20], Enum Unit Cost Calculation Type, Boolean, Decimal)","named":"(MfgItemQtyBase: Decimal; SetupTime: Decimal; SetupTimeUOMCode: Code[10]; RunTime: Decimal; RunTimeUOMCode: Code[10]; RtngLotSize: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal; WorkCenterNo: Code[20]; UnitCostCalculation: Enum \"Unit Cost Calculation Type\"; CostInclSetup: Boolean; ConcurrentCapacities: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(MfgItemQtyBase: Decimal; SetupTime: Decimal; SetupTimeUOMCode: Code[10]; RunTime: Decimal; RunTimeUOMCode: Code[10]; RtngLotSize: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal; WorkCenterNo: Code[20]; UnitCostCalculation: Enum \"Unit Cost Calculation Type\"; CostInclSetup: Boolean; ConcurrentCapacities: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"FindRoutingLine","sig":"(var Record Routing Line, Record Production BOM Line, Date, Code[20])","named":"(var RoutingLine: Record \"Routing Line\"; ProdBOMLine: Record \"Production BOM Line\"; CalculationDate: Date; RoutingNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(var RoutingLine: Record \"Routing Line\"; ProdBOMLine: Record \"Production BOM Line\"; CalculationDate: Date; RoutingNo: Code[20])","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcQtyAdjdForBOMScrap","sig":"(Decimal, Decimal)","named":"(Qty: Decimal; ScrapPct: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(Qty: Decimal; ScrapPct: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CalcQtyAdjdForRoutingScrap","sig":"(Decimal, Decimal, Decimal)","named":"(Qty: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"(Qty: Decimal; ScrapFactorPctAccum: Decimal; FixedScrapQtyAccum: Decimal)","returns":"Decimal","kind":"procedure","access":"public","obsolete":null}]},{"name":"CanIncNonInvCostIntoProductionItem","sig":"()","named":"()","returns":"Boolean","kind":"procedure","access":"public","obsolete":null,"range":"26-29","first":26,"last":29,"obsoleteSince":null,"spans":[{"from":26,"to":29,"named":"()","returns":"Boolean","kind":"procedure","access":"public","obsolete":null}]}]}