Codeunit "Calculate Low-Level Code"

ID 99000793
Namespace: Microsoft.Manufacturing.ProductionBOM

Properties

Name Value
Permissions TableData Item = rm, TableData "Manufacturing Setup" = r
TableNo Table Microsoft.Inventory.Item.Item

Methods

CalcLevels

procedure CalcLevels(Type: Option, No: Code[20], Level: Integer, LevelDepth: Integer): Integer

Parameters

Name Type Description
Type Option
No Code[20]
Level Integer
LevelDepth Integer

Returns

Type Description
Integer

RecalcLowerLevels

procedure RecalcLowerLevels(ProdBOMNo: Code[20], LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean)

Parameters

Name Type Description
ProdBOMNo Code[20]
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean

RecalcAsmLowerLevels

procedure RecalcAsmLowerLevels(ParentItemNo: Code[20], LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean)

Parameters

Name Type Description
ParentItemNo Code[20]
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean

SetRecursiveLevelsOnItem

procedure SetRecursiveLevelsOnItem(var CompItem: Record Item, LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean)

Parameters

Name Type Description
CompItem Table Microsoft.Inventory.Item.Item
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean

SetRecursiveLevelsOnBOM

procedure SetRecursiveLevelsOnBOM(var CompBOM: Record "Production BOM Header", LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean)

Parameters

Name Type Description
CompBOM Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean

GetMax

procedure GetMax(Level1: Integer, Level2: Integer): Integer

Parameters

Name Type Description
Level1 Integer
Level2 Integer

Returns

Type Description
Integer

SetActualProdBOM

procedure SetActualProdBOM(ActualProdBOM2: Record "Production BOM Header")

Parameters

Name Type Description
ActualProdBOM2 Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"

Events

OnAfterCalcLevels

[IntegrationEvent(False,False)]
local procedure OnAfterCalcLevels(Type: Option, No: Code[20], var TotalLevels: Integer, Level: Integer, LevelDepth: Integer)

Parameters

Name Type Description
Type Option
No Code[20]
TotalLevels Integer
Level Integer
LevelDepth Integer

OnBeforeCalcLevels

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcLevels(Type: Option, No: Code[20], Level: Integer, LevelDepth: Integer, var Result: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
Type Option
No Code[20]
Level Integer
LevelDepth Integer
Result Integer
IsHandled Boolean

OnBeforeItemModify

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

Parameters

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

OnBeforeSetRecursiveLevelsOnBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecursiveLevelsOnBOM(var ProductionBOMHeader: Record "Production BOM Header", LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean
IsHandled Boolean

OnCalcLevelsForProdBOM

[IntegrationEvent(False,False)]
local procedure OnCalcLevelsForProdBOM(var Item: Record Item, No: Code[20], Level: Integer, LevelDepth: Integer, var TotalLevels: Integer)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
No Code[20]
Level Integer
LevelDepth Integer
TotalLevels Integer

OnSetRecursiveLevelsOnItemOnBeforeCompItemModify

[IntegrationEvent(False,False)]
local procedure OnSetRecursiveLevelsOnItemOnBeforeCompItemModify(var CompItem: Record Item, IgnoreMissingItemsOrBOMs: Boolean)

Parameters

Name Type Description
CompItem Table Microsoft.Inventory.Item.Item
IgnoreMissingItemsOrBOMs Boolean

OnBeforeSetRecursiveLevelsOnItem

[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecursiveLevelsOnItem(var CompItem: Record Item, LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
CompItem Table Microsoft.Inventory.Item.Item
LowLevelCode Integer
IgnoreMissingItemsOrBOMs Boolean
IsHandled Boolean

See also