Share via


Codeunit "Calculate BOM Tree"

ID 5870
Namespace: Microsoft.Inventory.BOM.Tree

Methods

InitVars

procedure InitVars()

InitBOMBuffer

procedure InitBOMBuffer(var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

InitTreeType

procedure InitTreeType(NewTreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
NewTreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GetTreeType

procedure GetTreeType(): Enum "BOM Tree Type"

Returns

Type Description
Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GenerateTreeForItems

Obsolete

This element will become obsolete from version 27.0. Replaced by procedure GenerateTreeForManyItems

[Obsolete(Replaced by procedure GenerateTreeForManyItems,27.0)]
procedure GenerateTreeForItems(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", TreeType: Option)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Option

GenerateTreeForManyItems

procedure GenerateTreeForManyItems(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", TreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GenerateTreeForItem

Obsolete

This element will become obsolete from version 27.0. Replaced by procedure GenerateTreeForOneItem()

[Obsolete(Replaced by procedure GenerateTreeForOneItem(),27.0)]
procedure GenerateTreeForItem(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", DemandDate: Date, TreeType: Option)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
DemandDate Date
TreeType Option

GenerateTreeForOneItem

procedure GenerateTreeForOneItem(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", DemandDate: Date, TreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
DemandDate Date
TreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GenerateTreeForSource

procedure GenerateTreeForSource(SourceRecordVar: Variant, var BOMBuffer: Record "BOM Buffer", BOMTreeType: Enum "BOM Tree Type", ShowBy: Enum "BOM Structure Show By", DemandDate: Date)

Parameters

Name Type Description
SourceRecordVar Variant
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMTreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"
ShowBy Enum Microsoft.Inventory.BOM."BOM Structure Show By"
DemandDate Date

GenerateTreeForAsm

Obsolete

This element will become obsolete from version 27.0. Replaced by procedure GenerateTreeForAssemblyHeader()

[Obsolete(Replaced by procedure GenerateTreeForAssemblyHeader(),27.0)]
procedure GenerateTreeForAsm(AsmHeader: Record "Assembly Header", var BOMBuffer: Record "BOM Buffer", TreeType: Option)

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Option

GenerateTreeForAssemblyHeader

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit AsmCalculateBOMTree

[Obsolete(Moved to codeunit AsmCalculateBOMTree,27.0)]
procedure GenerateTreeForAssemblyHeader(AsmHeader: Record "Assembly Header", var BOMBuffer: Record "BOM Buffer", TreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
AsmHeader Table Microsoft.Assembly.Document."Assembly Header"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GenerateTreeForProdLine

Obsolete

This element will become obsolete from version 27.0. Replaced by procedure GenerateTreeForProdOrderLine

[Obsolete(Replaced by procedure GenerateTreeForProdOrderLine,27.0)]
procedure GenerateTreeForProdLine(ProdOrderLine: Record "Prod. Order Line", var BOMBuffer: Record "BOM Buffer", TreeType: Option)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Option

GenerateTreeForProdOrderLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
procedure GenerateTreeForProdOrderLine(ProdOrderLine: Record "Prod. Order Line", var BOMBuffer: Record "BOM Buffer", TreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

CalculateTreeType

procedure CalculateTreeType(var BOMBuffer: Record "BOM Buffer", ShowTotalAvailability2: Boolean, TreeType: Enum "BOM Tree Type")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ShowTotalAvailability2 Boolean
TreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"

GenerateItemSubTree

procedure GenerateItemSubTree(ItemNo: Code[20], var BOMBuffer: Record "BOM Buffer"): Boolean

Parameters

Name Type Description
ItemNo Code[20]
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

Returns

Type Description
Boolean

CalcCompDueDate

procedure CalcCompDueDate(DemandDate: Date, ParentItem: Record Item, LeadTimeOffset: DateFormula): Date

Parameters

Name Type Description
DemandDate Date
ParentItem Table Microsoft.Inventory.Item.Item
LeadTimeOffset DateFormula

Returns

Type Description
Date

SetShowTotalAvailability

procedure SetShowTotalAvailability(NewShowTotalAvailability: Boolean)

Parameters

Name Type Description
NewShowTotalAvailability Boolean

SetItemFilter

procedure SetItemFilter(var Item: Record Item)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item

SetLocationSpecific

procedure SetLocationSpecific(NewLocationSpecific: Boolean)

Parameters

Name Type Description
NewLocationSpecific Boolean

GetShowTotalAvailability

procedure GetShowTotalAvailability(): Boolean

Returns

Type Description
Boolean

Events

OnAfterFilterBOMBuffer

[IntegrationEvent(False,False)]
local procedure OnAfterFilterBOMBuffer(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", DemandDate: Date, TreeType: Option)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
DemandDate Date
TreeType Option

OnAfterGenerateProdCompSubTree

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterGenerateProdCompSubTree(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", var ParentBOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnAfterTransferFromProdItem

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromProdItem(var BOMBuffer: Record "BOM Buffer", ProdBOMLine: Record "Production BOM Line", var EntryNo: Integer)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
EntryNo Integer

OnAfterTransferFromProdBOM

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromProdBOM(var BOMBuffer: Record "BOM Buffer", ProdBOMLine: Record "Production BOM Line")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"

OnAfterTransferFromProdRouting

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromProdRouting(var BOMBuffer: Record "BOM Buffer", var RoutingLine: Record "Routing Line")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"

OnBeforeCalcRoutingLineCosts

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeCalcRoutingLineCosts(var RoutingLine: Record "Routing Line", var LotSize: Decimal, var ScrapPct: Decimal, ParentItem: Record Item)

Parameters

Name Type Description
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
LotSize Decimal
ScrapPct Decimal
ParentItem Table Microsoft.Inventory.Item.Item

OnBeforeFilterBOMBuffer

[IntegrationEvent(False,False)]
local procedure OnBeforeFilterBOMBuffer(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", DemandDate: Date, TreeType: Option, var IsHandled: Boolean)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
DemandDate Date
TreeType Option
IsHandled Boolean

OnBeforeFilterByQuantityPer

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeFilterByQuantityPer(var ProductionBOMLine: Record "Production BOM Line", var IsHandled: Boolean, BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
IsHandled Boolean
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnBeforeGenerateTreeForItems

[IntegrationEvent(False,False)]
local procedure OnBeforeGenerateTreeForItems(var HideDialog: Boolean)

Parameters

Name Type Description
HideDialog Boolean

OnBeforeGenerateTreeForItemLocal

[IntegrationEvent(False,False)]
local procedure OnBeforeGenerateTreeForItemLocal(var ParentItem: Record Item, DemandDate: Date, TreeType: Option, var BOMBuffer: Record "BOM Buffer", var IsHandled: Boolean)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
DemandDate Date
TreeType Option
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
IsHandled Boolean

OnBeforeTransferFromProdBOM

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferFromProdBOM(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)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
ParentItem Table Microsoft.Inventory.Item.Item
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
EntryNo Integer
TreeType Option

OnBeforeTransferProdBOMLine

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeTransferProdBOMLine(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, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
ParentItem Table Microsoft.Inventory.Item.Item
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
EntryNo Integer
TreeType Option
IsHandled Boolean

OnGenerateAsmHeaderSubTreeOnAfterAsmLineLoop

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit AsmCalculateBOMTree

[Obsolete(Moved to codeunit AsmCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateAsmHeaderSubTreeOnAfterAsmLineLoop(var ParentBOMBuffer: Record "BOM Buffer", var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnGenerateProdCompSubTreeOnBeforeExitForNonProdOrder

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnBeforeExitForNonProdOrder(ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", var FoundSubTree: Boolean)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
FoundSubTree Boolean

OnGenerateProdCompSubTreeOnAfterGenerateItemSubTree

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnAfterGenerateItemSubTree(var ParentBOMBuffer: Record "BOM Buffer", var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnGenerateProdCompSubTreeOnAfterProdBOMLineLoop

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnAfterProdBOMLineLoop(var ParentBOMBuffer: Record "BOM Buffer", var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnGenerateItemSubTreeOnAfterParentItemGet

[IntegrationEvent(False,False)]
local procedure OnGenerateItemSubTreeOnAfterParentItemGet(var ParentItem: Record Item)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item

OnGenerateProdCompSubTreeOnBeforeBOMBufferModify

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnBeforeBOMBufferModify(var BOMBuffer: Record "BOM Buffer", var ParentBOMBuffer: Record "BOM Buffer", ParentItem: Record Item)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ParentItem Table Microsoft.Inventory.Item.Item

OnTraverseCostTreeOnAfterAddCosts

[IntegrationEvent(False,False)]
local procedure OnTraverseCostTreeOnAfterAddCosts(var ParentBOMBuffer: Record "BOM Buffer", var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnTraverseTreeOnBeforeCalcAbleToMakeParentAndTopItem

[IntegrationEvent(False,False)]
local procedure OnTraverseTreeOnBeforeCalcAbleToMakeParentAndTopItem(var BOMBuffer: Record "BOM Buffer", var ParentBOMBuffer: Record "BOM Buffer", var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
IsHandled Boolean

OnCalcRoutingLineCostsOnBeforeBOMBufferAdd

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnCalcRoutingLineCostsOnBeforeBOMBufferAdd(RoutingLine: Record "Routing Line", LotSize: Decimal, ScrapPct: Decimal, var CapCost: Decimal, var SubcontractedCapCost: Decimal, var CapOverhead: Decimal, var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
LotSize Decimal
ScrapPct Decimal
CapCost Decimal
SubcontractedCapCost Decimal
CapOverhead Decimal
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnGenerateProdCompSubTreeOnAfterBOMBufferModify

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnAfterBOMBufferModify(var BOMBuffer: Record "BOM Buffer", RoutingLine: Record "Routing Line", LotSize: Decimal, ParentItem: Record Item, ParentBOMBuffer: Record "BOM Buffer", TreeType: Option)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
LotSize Decimal
ParentItem Table Microsoft.Inventory.Item.Item
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Option

OnGenerateProdCompSubTreeOnBeforeRoutingLineLoop

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnGenerateProdCompSubTreeOnBeforeRoutingLineLoop(var RoutingLine: Record "Routing Line", var BOMBuffer: Record "BOM Buffer", var RunIteration: Boolean)

Parameters

Name Type Description
RoutingLine Table Microsoft.Manufacturing.Routing."Routing Line"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
RunIteration Boolean

OnGenerateTreeForItemLocalOnBeforeCalculateTreeType

[IntegrationEvent(False,False)]
local procedure OnGenerateTreeForItemLocalOnBeforeCalculateTreeType(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", var TreeType: Option, var EntryNo: Integer)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
TreeType Option
EntryNo Integer

OnInitItemAvailDatesOnBeforeCalcAvailableQty

[IntegrationEvent(False,False)]
local procedure OnInitItemAvailDatesOnBeforeCalcAvailableQty(var BOMItem: Record Item)

Parameters

Name Type Description
BOMItem Table Microsoft.Inventory.Item.Item

OnGenerateBOMCompSubTreeOnBeforeLoopBOMComponents

[IntegrationEvent(False,False)]
local procedure OnGenerateBOMCompSubTreeOnBeforeLoopBOMComponents(ParentItem: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeInitBOMBuffer

[IntegrationEvent(False,False)]
local procedure OnBeforeInitBOMBuffer(var BOMBuffer: Record "BOM Buffer", var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
IsHandled Boolean

OnCalcAvailabilityOnBeforeUpdateAvailableQty

[IntegrationEvent(False,False)]
local procedure OnCalcAvailabilityOnBeforeUpdateAvailableQty(var BOMBuffer: Record "BOM Buffer", ExpectedQty: Decimal, AvailQty: Decimal, var AvailableVsExpectedCondition: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ExpectedQty Decimal
AvailQty Decimal
AvailableVsExpectedCondition Boolean

OnBeforeGenerateProdOrderLineSubTree

Obsolete

This element will become obsolete from version 27.0. Moved to codeunit MfgCalculateBOMTree

[Obsolete(Moved to codeunit MfgCalculateBOMTree,27.0)]
[IntegrationEvent(False,False)]
local procedure OnBeforeGenerateProdOrderLineSubTree(ProdOrderLine: Record "Prod. Order Line", var BOMBuffer: Record "BOM Buffer", var ParentBOMBuffer: Record "BOM Buffer", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ParentBOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Result Boolean
IsHandled Boolean

OnGenerateTreeForSource

[IntegrationEvent(True,False)]
procedure OnGenerateTreeForSource(SourceRecordVar: Variant, var BOMBuffer: Record "BOM Buffer", BOMTreeType: Enum "BOM Tree Type", ShowBy: Enum "BOM Structure Show By", DemandDate: Date, var ItemFilter: Record Item, var EntryNo: Integer)

Parameters

Name Type Description
SourceRecordVar Variant
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMTreeType Enum Microsoft.Inventory.BOM.Tree."BOM Tree Type"
ShowBy Enum Microsoft.Inventory.BOM."BOM Structure Show By"
DemandDate Date
ItemFilter Table Microsoft.Inventory.Item.Item
EntryNo Integer

OnGenerateItemSubTreeOnSetIsLeaf

[IntegrationEvent(True,False)]
local procedure OnGenerateItemSubTreeOnSetIsLeaf(var ParentItem: Record Item, var BOMBuffer: Record "BOM Buffer", var ItemFilter: Record Item, var EntryNo: Integer)

Parameters

Name Type Description
ParentItem Table Microsoft.Inventory.Item.Item
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ItemFilter Table Microsoft.Inventory.Item.Item
EntryNo Integer

OnHasBOMStructure

[IntegrationEvent(False,False)]
local procedure OnHasBOMStructure(var Item: Record Item, var Result: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
Result Boolean

See also