Codeunit "Where-Used Management"

ID 99000770
Namespace: Microsoft.Manufacturing.ProductionBOM

Properties

Name Value
Permissions TableData "Production BOM Header" = r, TableData "Production BOM Version" = r, TableData "Where-Used Line" = rimd

Methods

FindRecord

procedure FindRecord(Which: Text[30], var WhereUsedList2: Record "Where-Used Line"): Boolean

Parameters

Name Type Description
Which Text[30]
WhereUsedList2 Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"

Returns

Type Description
Boolean

NextRecord

procedure NextRecord(Steps: Integer, var WhereUsedList2: Record "Where-Used Line"): Integer

Parameters

Name Type Description
Steps Integer
WhereUsedList2 Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"

Returns

Type Description
Integer

WhereUsedFromItem

procedure WhereUsedFromItem(Item: Record Item, CalcDate: Date, NewMultiLevel: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
CalcDate Date
NewMultiLevel Boolean

WhereUsedFromProdBOM

procedure WhereUsedFromProdBOM(ProdBOM: Record "Production BOM Header", CalcDate: Date, NewMultiLevel: Boolean)

Parameters

Name Type Description
ProdBOM Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
CalcDate Date
NewMultiLevel Boolean

IsActiveProductionBOM

procedure IsActiveProductionBOM(ProductionBOMLine: Record "Production BOM Line"): Boolean

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"

Returns

Type Description
Boolean

Events

OnAfterBuildWhereUsedList

[IntegrationEvent(False,False)]
local procedure OnAfterBuildWhereUsedList(Type: Option, No: Code[20], CalcDate: Date, var WhereUsedList: Record "Where-Used Line" temporary, NextWhereUsedEntryNo: Integer, Level: Integer, Quantity: Decimal, MultiLevel: Boolean)

Parameters

Name Type Description
Type Option
No Code[20]
CalcDate Date
WhereUsedList Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"
NextWhereUsedEntryNo Integer
Level Integer
Quantity Decimal
MultiLevel Boolean

OnBeforeIsActiveProductionBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeIsActiveProductionBOM(ProductionBOMLine: Record "Production BOM Line", var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Result Boolean
IsHandled Boolean

OnBeforeBuildWhereUsedList

[IntegrationEvent(False,False)]
local procedure OnBeforeBuildWhereUsedList(Type: Option, No: Code[20], var Multilevel: Boolean, var CalcDate: Date, var Level: Integer, var Quantity: Decimal, var NextWhereUsedEntryNo: Integer, var TempWhereUsedLine: Record "Where-Used Line" temporary)

Parameters

Name Type Description
Type Option
No Code[20]
Multilevel Boolean
CalcDate Date
Level Integer
Quantity Decimal
NextWhereUsedEntryNo Integer
TempWhereUsedLine Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"

OnBeforeWhereUsedListInsert

[IntegrationEvent(False,False)]
local procedure OnBeforeWhereUsedListInsert(var WhereUsedLine: Record "Where-Used Line", var ItemAssembly: Record Item, var CalcDate: Date, var Quantity: Decimal)

Parameters

Name Type Description
WhereUsedLine Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"
ItemAssembly Table Microsoft.Inventory.Item.Item
CalcDate Date
Quantity Decimal

OnBuildWhereUsedListOnLoopProdBomComponent

[IntegrationEvent(False,False)]
local procedure OnBuildWhereUsedListOnLoopProdBomComponent(var ProductionBOMLine: Record "Production BOM Line", var TempWhereUsedLine: Record "Where-Used Line" temporary, var NextWhereUsedEntryNo: Integer, No: Code[20], CalcDate: Date, var Level: Integer)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
TempWhereUsedLine Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"
NextWhereUsedEntryNo Integer
No Code[20]
CalcDate Date
Level Integer

OnBuildWhereUsedListOnAfterItemAssemblySetFilters

[IntegrationEvent(False,False)]
local procedure OnBuildWhereUsedListOnAfterItemAssemblySetFilters(var Item: Record Item, var No: Code[20])

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
No Code[20]

OnBuildWhereUsedListOnBeforeFindSetProdBOMComponent

[IntegrationEvent(False,False)]
local procedure OnBuildWhereUsedListOnBeforeFindSetProdBOMComponent(var ProductionBOMLine: Record "Production BOM Line")

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"

OnBeforeBuildWhereUsedListWithCheck

[IntegrationEvent(False,False)]
local procedure OnBeforeBuildWhereUsedListWithCheck(ProductionBOMLineType: Enum "Production BOM Line Type", No: Code[20], CalcDate: Date, IsMultiLevel: Boolean, var TempWhereUsedLine: Record "Where-Used Line" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLineType Enum Microsoft.Manufacturing.ProductionBOM."Production BOM Line Type"
No Code[20]
CalcDate Date
IsMultiLevel Boolean
TempWhereUsedLine Table Microsoft.Manufacturing.ProductionBOM."Where-Used Line"
IsHandled Boolean

OnBeforeGetItemBOMNo

[IntegrationEvent(False,False)]
local procedure OnBeforeGetItemBOMNo(ItemNo: Code[20], var Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

See also