Codeunit "BOM Matrix Management"

ID 99000771
Namespace: Microsoft.Manufacturing.ProductionBOM

Properties

Name Value
Permissions TableData Item = r, TableData "Production BOM Header" = r, TableData "Production BOM Version" = r, TableData "Production Matrix BOM Line" = rimd, TableData "Production Matrix BOM Entry" = rimd

Methods

FindRecord

procedure FindRecord(Which: Text[30], var ComponentList2: Record "Production Matrix BOM Line"): Boolean

Parameters

Name Type Description
Which Text[30]
ComponentList2 Table Microsoft.Manufacturing.ProductionBOM."Production Matrix BOM Line"

Returns

Type Description
Boolean

NextRecord

procedure NextRecord(Steps: Integer, var ComponentList2: Record "Production Matrix BOM Line"): Integer

Parameters

Name Type Description
Steps Integer
ComponentList2 Table Microsoft.Manufacturing.ProductionBOM."Production Matrix BOM Line"

Returns

Type Description
Integer

GetComponentNeed

procedure GetComponentNeed(No: Code[20], VariantCode: Code[10], ID: Code[20]): Decimal

Parameters

Name Type Description
No Code[20]
VariantCode Code[10]
ID Code[20]

Returns

Type Description
Decimal

CompareTwoItems

procedure CompareTwoItems(Item1: Record Item, Item2: Record Item, CalcDate: Date, NewMultiLevel: Boolean, var VersionCode1: Code[20], var VersionCode2: Code[20], var UnitOfMeasureCode1: Code[10], var UnitOfMeasureCode2: Code[10])

Parameters

Name Type Description
Item1 Table Microsoft.Inventory.Item.Item
Item2 Table Microsoft.Inventory.Item.Item
CalcDate Date
NewMultiLevel Boolean
VersionCode1 Code[20]
VersionCode2 Code[20]
UnitOfMeasureCode1 Code[10]
UnitOfMeasureCode2 Code[10]

BOMMatrixFromBOM

procedure BOMMatrixFromBOM(ProductionBOMHeader: Record "Production BOM Header", NewMultiLevel: Boolean)

Parameters

Name Type Description
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
NewMultiLevel Boolean

Events

OnBuildMatrixForItemOnAfterGetItem

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

Parameters

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

OnBuildMatrixForItemOnBeforeRecursion

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

Parameters

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

OnBuildMatrixForItemOnBeforeComponentListFind

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

Parameters

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

OnBeforeCompareTwoItems

[IntegrationEvent(False,False)]
local procedure OnBeforeCompareTwoItems(Item1: Record Item, Item2: Record Item, CalcDate: Date, NewMultiLevel: Boolean, var VersionCode1: Code[20], var VersionCode2: Code[20], var UnitOfMeasureCode1: Code[10], var UnitOfMeasureCode2: Code[10], var IsHandled: Boolean)

Parameters

Name Type Description
Item1 Table Microsoft.Inventory.Item.Item
Item2 Table Microsoft.Inventory.Item.Item
CalcDate Date
NewMultiLevel Boolean
VersionCode1 Code[20]
VersionCode2 Code[20]
UnitOfMeasureCode1 Code[10]
UnitOfMeasureCode2 Code[10]
IsHandled Boolean

OnBeforeBOMMatrixFromBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeBOMMatrixFromBOM(ProductionBOMHeader: Record "Production BOM Header", NewMultiLevel: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
NewMultiLevel Boolean
IsHandled Boolean

OnBeforeBuildMatrix

[IntegrationEvent(False,False)]
local procedure OnBeforeBuildMatrix(ProductionBOMNo: Code[20], VersionCode: Code[20], Level: Integer, Quantity: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMNo Code[20]
VersionCode Code[20]
Level Integer
Quantity Decimal
IsHandled Boolean

See also