Share via


Table "BOM Buffer"

ID 5870
Namespace: Microsoft.Inventory.BOM

Properties

Name Value
Caption BOM Buffer
DataCaptionFields 3,5
ReplicateData False
DataClassification SystemMetadata

Fields

Name Type Description
"Entry No." Integer
Type Enum Microsoft.Inventory.BOM."BOM Type"
"No." Code[20]
Description Text[100]
"Unit of Measure Code" Code[10]
"Variant Code" Code[10]
"Location Code" Code[10]
"Replenishment System" Enum Microsoft.Inventory.Item."Replenishment System"
Indentation Integer
"Is Leaf" Boolean
Bottleneck Boolean
"Lot Size" Decimal
"Low-Level Code" Integer
"Rounding Precision" Decimal
"Qty. per Parent" Decimal
"Qty. per Top Item" Decimal
"Able to Make Top Item" Decimal
"Able to Make Parent" Decimal
"Available Quantity" Decimal
"Gross Requirement" Decimal
"Scheduled Receipts" Decimal
"Unused Quantity" Decimal
"Lead Time Calculation" DateFormula
"Lead-Time Offset" DateFormula
"Rolled-up Lead-Time Offset" Integer
"Needed by Date" Date
"Safety Lead Time" DateFormula
"Unit Cost" Decimal
"Indirect Cost %" Decimal
"Overhead Rate" Decimal
"Scrap %" Decimal
"Scrap Qty. per Parent" Decimal
"Scrap Qty. per Top Item" Decimal
"Resource Usage Type" Option
"Single-Level Material Cost" Decimal
"Single-Level Capacity Cost" Decimal
"Single-Level Cap. Ovhd Cost" Decimal
"Single-Level Subcontrd. Cost" Decimal
"Single-Level Mfg. Ovhd Cost" Decimal
"Single-Level Scrap Cost" Decimal
"Rolled-up Material Cost" Decimal
"Rolled-up Capacity Cost" Decimal
"Rolled-up Capacity Ovhd. Cost" Decimal
"Rolled-up Subcontracted Cost" Decimal
"Rolled-up Mfg. Ovhd Cost" Decimal
"Rolled-up Scrap Cost" Decimal
"Single-Lvl Mat. Non-Invt. Cost" Decimal
"Rolled-up Mat. Non-Invt. Cost" Decimal
"Total Cost" Decimal
"BOM Unit of Measure Code" Code[10]
"Qty. per BOM Line" Decimal
Inventoriable Boolean
"Calculation Formula" Enum Microsoft.Foundation.Enums."Quantity Calculation Formula"
SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemRowVersion BigInteger

Methods

TransferFromItem

procedure TransferFromItem(var EntryNo: Integer, Item: Record Item, DemandDate: Date)

Parameters

Name Type Description
EntryNo Integer
Item Table Microsoft.Inventory.Item.Item
DemandDate Date

TransferFromBOMComp

procedure TransferFromBOMComp(var EntryNo: Integer, BOMComp: Record "BOM Component", NewIndentation: Integer, ParentQtyPer: Decimal, ParentScrapQtyPer: Decimal, NeedByDate: Date, ParentLocationCode: Code[10])

Parameters

Name Type Description
EntryNo Integer
BOMComp Table Microsoft.Inventory.BOM."BOM Component"
NewIndentation Integer
ParentQtyPer Decimal
ParentScrapQtyPer Decimal
NeedByDate Date
ParentLocationCode Code[10]

InitFromItem

procedure InitFromItem(Item: Record Item)

Parameters

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

InitFromRes

procedure InitFromRes(Resourse: Record Resource)

Parameters

Name Type Description
Resourse Table Microsoft.Projects.Resources.Resource.Resource

UpdateAbleToMake

procedure UpdateAbleToMake(AvailQty: Decimal)

Parameters

Name Type Description
AvailQty Decimal

AddMaterialCost

procedure AddMaterialCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddCapacityCost

procedure AddCapacityCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddCapOvhdCost

procedure AddCapOvhdCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddSubcontrdCost

procedure AddSubcontrdCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddMfgOvhdCost

procedure AddMfgOvhdCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddScrapCost

procedure AddScrapCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

AddNonInvMaterialCost

procedure AddNonInvMaterialCost(SingleLvlCostAmt: Decimal, RolledUpCostAmt: Decimal)

Parameters

Name Type Description
SingleLvlCostAmt Decimal
RolledUpCostAmt Decimal

GetItemCosts

procedure GetItemCosts()

GetItemUnitCost

procedure GetItemUnitCost()

GetResCosts

procedure GetResCosts()

RoundCosts

procedure RoundCosts(ShareOfTotalCost: Decimal)

Parameters

Name Type Description
ShareOfTotalCost Decimal

RoundUnitAmt

procedure RoundUnitAmt(Amt: Decimal, ShareOfCost: Decimal): Decimal

Parameters

Name Type Description
Amt Decimal
ShareOfCost Decimal

Returns

Type Description
Decimal

CalcOvhdCost

procedure CalcOvhdCost()

CalcDirectCost

procedure CalcDirectCost(): Decimal

Returns

Type Description
Decimal

CalcIndirectCost

procedure CalcIndirectCost(): Decimal

Returns

Type Description
Decimal

CalcUnitCost

procedure CalcUnitCost()

IsLineOk

procedure IsLineOk(LogWarning: Boolean, var BOMWarningLog: Record "BOM Warning Log"): Boolean

Parameters

Name Type Description
LogWarning Boolean
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"

Returns

Type Description
Boolean

AreAllLinesOk

procedure AreAllLinesOk(var BOMWarningLog: Record "BOM Warning Log"): Boolean

Parameters

Name Type Description
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"

Returns

Type Description
Boolean

SetLocationVariantFiltersFrom

procedure SetLocationVariantFiltersFrom(var ItemFilter: Record Item)

Parameters

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

SetItemWarningLog

procedure SetItemWarningLog(var BOMWarningLog: Record "BOM Warning Log", var Item: Record Item, WarningText: Text)

Parameters

Name Type Description
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"
Item Table Microsoft.Inventory.Item.Item
WarningText Text

Events

OnAfterCalcUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcUnitCost(var BOMBuffer: Record "BOM Buffer")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"

OnAfterGetItemCosts

[IntegrationEvent(False,False)]
local procedure OnAfterGetItemCosts(var BOMBuffer: Record "BOM Buffer", Item: Record Item)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item

OnAfterInitFromItem

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromItem(var BOMBuffer: Record "BOM Buffer", Item: Record Item, StockkeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterInitFromRes

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromRes(var BOMBuffer: Record "BOM Buffer", Resource: Record Resource)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Resource Table Microsoft.Projects.Resources.Resource.Resource

OnAfterIsLineOk

[IntegrationEvent(False,False)]
local procedure OnAfterIsLineOk(var BOMBuffer: Record "BOM Buffer", LogWarning: Boolean, var BOMWarningLog: Record "BOM Warning Log", var Result: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
LogWarning Boolean
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"
Result Boolean

OnAfterRoundCosts

[IntegrationEvent(False,False)]
local procedure OnAfterRoundCosts(var BOMBuffer: Record "BOM Buffer", ShareOfTotalCost: Decimal)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
ShareOfTotalCost Decimal

OnBeforeCalcOvhdCost

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcOvhdCost(var BOMBuffer: Record "BOM Buffer", var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
IsHandled Boolean

OnBeforeInitFromItem

[IntegrationEvent(False,False)]
local procedure OnBeforeInitFromItem(var BOMBuffer: Record "BOM Buffer", Item: Record Item, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnBeforeIsBOMOk

[IntegrationEvent(False,False)]
local procedure OnBeforeIsBOMOk(var BOMBuffer: Record "BOM Buffer", var Result: Boolean, var IsHandled: Boolean, var LogWarning: Boolean, var BOMWarningLog: Record "BOM Warning Log")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Result Boolean
IsHandled Boolean
LogWarning Boolean
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"

OnBeforeIsLowLevelOk

[IntegrationEvent(False,False)]
local procedure OnBeforeIsLowLevelOk(var BOMBuffer: Record "BOM Buffer", var Result: Boolean, var IsHandled: Boolean, var LogWarning: Boolean, var BOMWarningLog: Record "BOM Warning Log")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Result Boolean
IsHandled Boolean
LogWarning Boolean
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"

OnBeforeInitFromRes

[IntegrationEvent(False,False)]
local procedure OnBeforeInitFromRes(var BOMBuffer: Record "BOM Buffer", Resource: Record Resource, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Resource Table Microsoft.Projects.Resources.Resource.Resource
IsHandled Boolean

OnBeforeUpdateAbleToMake

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateAbleToMake(var BOMBuffer: Record "BOM Buffer", var AvailQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
AvailQty Decimal
IsHandled Boolean

OnGetItemCostsOnBeforeRoundCosts

[IntegrationEvent(False,False)]
local procedure OnGetItemCostsOnBeforeRoundCosts(var BOMBuffer: Record "BOM Buffer", var Item: Record Item)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item

OnTransferFromItemCopyFields

[IntegrationEvent(False,False)]
local procedure OnTransferFromItemCopyFields(var BOMBuffer: Record "BOM Buffer", Item: Record Item)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item

OnTransferFromBOMCompCopyFields

[IntegrationEvent(False,False)]
local procedure OnTransferFromBOMCompCopyFields(var BOMBuffer: Record "BOM Buffer", BOMComponent: Record "BOM Component")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMComponent Table Microsoft.Inventory.BOM."BOM Component"

OnBeforeIsQtyPerOk

[IntegrationEvent(False,False)]
local procedure OnBeforeIsQtyPerOk(var BOMBuffer: Record "BOM Buffer", var BOMWarningLog: Record "BOM Warning Log", LogWarning: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"
LogWarning Boolean
Result Boolean
IsHandled Boolean

OnBeforeIsReplenishmentOk

[IntegrationEvent(False,False)]
local procedure OnBeforeIsReplenishmentOk(var BOMBuffer: Record "BOM Buffer", var BOMWarningLog: Record "BOM Warning Log", LogWarning: Boolean, var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"
LogWarning Boolean
Result Boolean
IsHandled Boolean

OnBeforeRoundUnitAmt

[IntegrationEvent(False,False)]
local procedure OnBeforeRoundUnitAmt(Amt: Decimal, ShareOfCost: Decimal, var IsHandled: Boolean, var ReturnValue: Decimal)

Parameters

Name Type Description
Amt Decimal
ShareOfCost Decimal
IsHandled Boolean
ReturnValue Decimal

OnAfterCalcDirectCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcDirectCost(var BOMBuffer: Record "BOM Buffer", var Cost: Decimal)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Cost Decimal

OnAfterCalcIndirectCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcIndirectCost(var BOMBuffer: Record "BOM Buffer", var Cost: Decimal)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Cost Decimal

OnAfterCalcOvhdCost

[IntegrationEvent(False,False)]
local procedure OnAfterCalcOvhdCost(var BOMBuffer: Record "BOM Buffer", LotSize: Decimal)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
LotSize Decimal

OnAfterGetUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterGetUnitCost(var BOMBuffer: Record "BOM Buffer", var Item: Record Item)

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item

OnIsQtyPerOKOnAfterCheckItemAssemblyBOM

[IntegrationEvent(False,False)]
local procedure OnIsQtyPerOKOnAfterCheckItemAssemblyBOM(Item: Record Item, var BOMWarningLog: Record "BOM Warning Log")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
BOMWarningLog Table Microsoft.Inventory.BOM."BOM Warning Log"

OnInitFromItemOnAfterSetReplenishmentSystem

[IntegrationEvent(False,False)]
local procedure OnInitFromItemOnAfterSetReplenishmentSystem(var BOMBuffer: Record "BOM Buffer", Item: Record Item, StockkeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
BOMBuffer Table Microsoft.Inventory.BOM."BOM Buffer"
Item Table Microsoft.Inventory.Item.Item
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

See also