Codeunit "Calculate Low-Level Code"
ID 99000793
Namespace: Microsoft.Manufacturing.ProductionBOM
Properties
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
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
procedure SetRecursiveLevelsOnBOM(var CompBOM: Record "Production BOM Header", LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean)
Parameters
GetMax
procedure GetMax(Level1: Integer, Level2: Integer): Integer
Parameters
Name
Type
Description
Level1
Integer
Level2
Integer
Returns
procedure SetActualProdBOM(ActualProdBOM2: Record "Production BOM Header")
Parameters
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
[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecursiveLevelsOnBOM(var ProductionBOMHeader: Record "Production BOM Header", LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean, var IsHandled: Boolean)
Parameters
OnCalcLevelsForProdBOM
[IntegrationEvent(False,False)]
local procedure OnCalcLevelsForProdBOM(var Item: Record Item, No: Code[20], Level: Integer, LevelDepth: Integer, var TotalLevels: Integer)
Parameters
OnSetRecursiveLevelsOnItemOnBeforeCompItemModify
[IntegrationEvent(False,False)]
local procedure OnSetRecursiveLevelsOnItemOnBeforeCompItemModify(var CompItem: Record Item, IgnoreMissingItemsOrBOMs: Boolean)
Parameters
OnBeforeSetRecursiveLevelsOnItem
[IntegrationEvent(False,False)]
local procedure OnBeforeSetRecursiveLevelsOnItem(var CompItem: Record Item, LowLevelCode: Integer, IgnoreMissingItemsOrBOMs: Boolean, var IsHandled: Boolean)
Parameters
See also