{"title":"Codeunit 99000781 Mfg. Calculate BOM Tree, events","url":"https://jonas-paprotka.de/ref/codeunit/99000781-mfg-calculate-bom-tree/events/","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":99000781,"name":"Mfg. Calculate BOM Tree","app":"Base Application","versions":"27-29","url":"https://jonas-paprotka.de/ref/codeunit/99000781-mfg-calculate-bom-tree/","json":"https://jonas-paprotka.de/ref/codeunit/99000781-mfg-calculate-bom-tree.json"},"aspect":"events","total":18,"rows":[{"name":"OnBeforeFilterByQuantityPer","sig":"(var Record Production BOM Line, var Boolean, Record BOM Buffer)","named":"(var ProductionBOMLine: Record \"Production BOM Line\"; var IsHandled: Boolean; BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var ProductionBOMLine: Record \"Production BOM Line\"; var IsHandled: Boolean; BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnBeforeExitForNonProdOrder","sig":"(Record Item, var Record BOM Buffer, var Boolean)","named":"(ParentItem: Record Item; var BOMBuffer: Record \"BOM Buffer\"; var FoundSubTree: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(ParentItem: Record Item; var BOMBuffer: Record \"BOM Buffer\"; var FoundSubTree: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterTransferFromProdItem","sig":"(var Record BOM Buffer, Record Production BOM Line, var Integer)","named":"(var BOMBuffer: Record \"BOM Buffer\"; ProdBOMLine: Record \"Production BOM Line\"; var EntryNo: Integer)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; ProdBOMLine: Record \"Production BOM Line\"; var EntryNo: Integer)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnAfterGenerateItemSubTree","sig":"(var Record BOM Buffer, var Record BOM Buffer)","named":"(var ParentBOMBuffer: Record \"BOM Buffer\"; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var ParentBOMBuffer: Record \"BOM Buffer\"; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeTransferFromProdBOM","sig":"(var Record BOM Buffer, var Record Production BOM Line, var Record Item, var Record BOM Buffer, var Integer, Enum BOM Tree Type)","named":"(var BOMBuffer: Record \"BOM Buffer\"; var ProdBOMLine: Record \"Production BOM Line\"; var ParentItem: Record Item; var ParentBOMBuffer: Record \"BOM Buffer\"; var EntryNo: Integer; TreeType: Enum \"BOM Tree Type\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; var ProdBOMLine: Record \"Production BOM Line\"; var ParentItem: Record Item; var ParentBOMBuffer: Record \"BOM Buffer\"; var EntryNo: Integer; TreeType: Enum \"BOM Tree Type\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterTransferFromProdBOM","sig":"(var Record BOM Buffer, Record Production BOM Line)","named":"(var BOMBuffer: Record \"BOM Buffer\"; ProdBOMLine: Record \"Production BOM Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; ProdBOMLine: Record \"Production BOM Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterGenerateProdCompSubTree","sig":"(var Record Item, var Record BOM Buffer, var Record BOM Buffer)","named":"(var ParentItem: Record Item; var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var ParentItem: Record Item; var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnAfterProdBOMLineLoop","sig":"(var Record BOM Buffer, var Record BOM Buffer)","named":"(var ParentBOMBuffer: Record \"BOM Buffer\"; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var ParentBOMBuffer: Record \"BOM Buffer\"; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnBeforeBOMBufferModify","sig":"(var Record BOM Buffer, var Record BOM Buffer, Record Item)","named":"(var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\"; ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\"; ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnAfterBOMBufferModify","sig":"(var Record BOM Buffer, Record Routing Line, Decimal, Record Item, Record BOM Buffer, Enum BOM Tree Type)","named":"(var BOMBuffer: Record \"BOM Buffer\"; RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ParentItem: Record Item; ParentBOMBuffer: Record \"BOM Buffer\"; TreeType: Enum \"BOM Tree Type\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ParentItem: Record Item; ParentBOMBuffer: Record \"BOM Buffer\"; TreeType: Enum \"BOM Tree Type\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeGenerateProdOrderLineSubTree","sig":"(Record Prod. Order Line, var Record BOM Buffer, var Record BOM Buffer, var Boolean, var Boolean)","named":"(ProdOrderLine: Record \"Prod. Order Line\"; var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\"; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(ProdOrderLine: Record \"Prod. Order Line\"; var BOMBuffer: Record \"BOM Buffer\"; var ParentBOMBuffer: Record \"BOM Buffer\"; var Result: Boolean; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeCalcRoutingLineCosts","sig":"(var Record Routing Line, var Decimal, var Decimal, Record Item)","named":"(var RoutingLine: Record \"Routing Line\"; var LotSize: Decimal; var ScrapPct: Decimal; ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var RoutingLine: Record \"Routing Line\"; var LotSize: Decimal; var ScrapPct: Decimal; ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnCalcRoutingLineCostsOnBeforeBOMBufferAdd","sig":"(Record Routing Line, Decimal, Decimal, var Decimal, var Decimal, var Decimal, var Record BOM Buffer)","named":"(RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ScrapPct: Decimal; var CapCost: Decimal; var SubcontractedCapCost: Decimal; var CapOverhead: Decimal; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ScrapPct: Decimal; var CapCost: Decimal; var SubcontractedCapCost: Decimal; var CapOverhead: Decimal; var BOMBuffer: Record \"BOM Buffer\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnBeforeTransferProdBOMLine","sig":"(var Record BOM Buffer, var Record Production BOM Line, var Record Item, var Record BOM Buffer, var Integer, Option, var Boolean)","named":"(var BOMBuffer: Record \"BOM Buffer\"; var ProdBOMLine: Record \"Production BOM Line\"; var ParentItem: Record Item; var ParentBOMBuffer: Record \"BOM Buffer\"; var EntryNo: Integer; TreeType: Option \" \",Availability,Cost; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; var ProdBOMLine: Record \"Production BOM Line\"; var ParentItem: Record Item; var ParentBOMBuffer: Record \"BOM Buffer\"; var EntryNo: Integer; TreeType: Option \" \",Availability,Cost; var IsHandled: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnBeforeRoutingLineLoop","sig":"(var Record Routing Line, var Record BOM Buffer, var Boolean)","named":"(var RoutingLine: Record \"Routing Line\"; var BOMBuffer: Record \"BOM Buffer\"; var RunIteration: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27","first":27,"last":27,"obsoleteSince":null,"spans":[{"from":27,"to":27,"named":"(var RoutingLine: Record \"Routing Line\"; var BOMBuffer: Record \"BOM Buffer\"; var RunIteration: Boolean)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterTransferFromProdRouting","sig":"(var Record BOM Buffer, var Record Routing Line)","named":"(var BOMBuffer: Record \"BOM Buffer\"; var RoutingLine: Record \"Routing Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"27-29","first":27,"last":29,"obsoleteSince":null,"spans":[{"from":27,"to":29,"named":"(var BOMBuffer: Record \"BOM Buffer\"; var RoutingLine: Record \"Routing Line\")","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnAfterCalcRoutingLineCosts","sig":"(Record Routing Line, Decimal, Decimal, var Decimal, var Decimal, var Decimal, var Record BOM Buffer, var Record Item)","named":"(RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ScrapPercent: Decimal; var CapacityCost: Decimal; var SubcontractedCapacityCost: Decimal; var CapacityOverhead: Decimal; var BOMBuffer: Record \"BOM Buffer\"; var ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(RoutingLine: Record \"Routing Line\"; LotSize: Decimal; ScrapPercent: Decimal; var CapacityCost: Decimal; var SubcontractedCapacityCost: Decimal; var CapacityOverhead: Decimal; var BOMBuffer: Record \"BOM Buffer\"; var ParentItem: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]},{"name":"OnGenerateProdCompSubTreeOnBeforeRoutingLineLoop","sig":"(var Record Routing Line, var Record BOM Buffer, var Boolean, Record Item)","named":"(var RoutingLine: Record \"Routing Line\"; var BOMBuffer: Record \"BOM Buffer\"; var RunIteration: Boolean; ItemFilter: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null,"range":"28-29","first":28,"last":29,"obsoleteSince":null,"spans":[{"from":28,"to":29,"named":"(var RoutingLine: Record \"Routing Line\"; var BOMBuffer: Record \"BOM Buffer\"; var RunIteration: Boolean; ItemFilter: Record Item)","returns":"","kind":"integrationevent","access":"local","obsolete":null}]}]}