Codeunit "Production BOM-Copy"

ID 99000768
Namespace: Microsoft.Manufacturing.ProductionBOM

Properties

Name Value
TableNo Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"

Methods

CopyBOM

procedure CopyBOM(FromProductionBOMNo: Code[20], FromVersionCode: Code[20], ProductionBOMHeader: Record "Production BOM Header", ToVersionCode: Code[20])

Parameters

Name Type Description
FromProductionBOMNo Code[20]
FromVersionCode Code[20]
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
ToVersionCode Code[20]

CopyFromVersion

procedure CopyFromVersion(var ToProductionBOMVersion: Record "Production BOM Version")

Parameters

Name Type Description
ToProductionBOMVersion Table Microsoft.Manufacturing.ProductionBOM."Production BOM Version"

Events

OnAfterCopyBOM

[IntegrationEvent(False,False)]
local procedure OnAfterCopyBOM(BOMHeaderNo: Code[20], var CurrentBOMHeader: Record "Production BOM Header", FromVersionCode: Code[20], ToVersionCode: Code[20])

Parameters

Name Type Description
BOMHeaderNo Code[20]
CurrentBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
FromVersionCode Code[20]
ToVersionCode Code[20]

OnBeforeCopyBOM

[IntegrationEvent(False,False)]
local procedure OnBeforeCopyBOM(var ProdBOMHeader: Record "Production BOM Header", BOMHeaderNo: Code[20], FromVersionCode: Code[20], ToVersionCode: Code[20], var SkipBOMDeletion: Boolean, var LineNo: Integer)

Parameters

Name Type Description
ProdBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
BOMHeaderNo Code[20]
FromVersionCode Code[20]
ToVersionCode Code[20]
SkipBOMDeletion Boolean
LineNo Integer

OnAfterInsertProdBOMComponent

[IntegrationEvent(False,False)]
local procedure OnAfterInsertProdBOMComponent(var ToProductionBOMLine: Record "Production BOM Line", var FromProductionBOMLine: Record "Production BOM Line", var ProductionBOMHeader: Record "Production BOM Header", var SkipBOMDeletion: Boolean, var LineNo: Integer)

Parameters

Name Type Description
ToProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
FromProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
SkipBOMDeletion Boolean
LineNo Integer

OnBeforeInsertProdBOMComponent

[IntegrationEvent(False,False)]
local procedure OnBeforeInsertProdBOMComponent(var ToProductionBOMLine: Record "Production BOM Line", var FromProductionBOMLine: Record "Production BOM Line")

Parameters

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

See also