Table of Contents

Table "Production BOM Line"

ID 99000772
Namespace: Microsoft.Manufacturing.ProductionBOM

Properties

Name Value
Caption Production BOM Line
DataClassification CustomerContent

Fields

Name Type Description
"Production BOM No." Code[20]
"Line No." Integer
"Version Code" Code[20]
Type Enum Microsoft.Manufacturing.ProductionBOM."Production BOM Line Type"

Specifies the type of production BOM line.

"No." Code[20]

Specifies the number of the involved entry or record, according to the specified number series.

Description Text[100]

Specifies a description of the production BOM line.

"Unit of Measure Code" Code[10]

Specifies how each unit of the item is measured, such as in pieces or tons. By default, the value in the Base Unit of Measure field on the item card is inserted.

Quantity Decimal
Position Code[10]

Specifies the position of the component on the bill of material.

"Position 2" Code[10]

Specifies more exactly whether the component is to appear at a certain position in the BOM to represent a certain production process.

"Position 3" Code[10]

Specifies the third reference number for the component position on a bill of material, such as the alternate position number of a component on a print card.

"Lead-Time Offset" DateFormula

Specifies the total number of days required to produce this item.

"Routing Link Code" Code[10]

Specifies the routing link code.

"Scrap %" Decimal

Specifies the percentage of the item that you expect to be scrapped in the production process.

"Variant Code" Code[10]

Specifies the variant of the item on the line.

Comment Boolean
"Description 2" Text[50]

Specifies additional description text.

"Starting Date" Date

Specifies the date from which this production BOM is valid.

"Ending Date" Date

Specifies the date from which this production BOM is no longer valid.

Length Decimal

Specifies the length of one item unit when measured in the specified unit of measure.

Width Decimal

Specifies the width of one item unit when measured in the specified unit of measure.

Weight Decimal

Specifies the weight of one item unit when measured in the specified unit of measure.

Depth Decimal

Specifies the depth of one item unit when measured in the specified unit of measure.

"Calculation Formula" Enum Microsoft.Foundation.Enums."Quantity Calculation Formula"

Specifies how to calculate the Quantity field.

"Quantity per" Decimal

Specifies how many units of the component are required to produce the parent item.

SystemId Guid
SystemCreatedAt DateTime
SystemCreatedBy Guid
SystemModifiedAt DateTime
SystemModifiedBy Guid
SystemCreatedByUserName Text[50]
SystemCreatedByFullName Text[80]
SystemModifiedByUserName Text[50]
SystemModifiedByFullName Text[80]
SystemRowVersion BigInteger

Methods

TestStatus

procedure TestStatus()

GetQtyPerUnitOfMeasure

procedure GetQtyPerUnitOfMeasure(): Decimal

Returns

Type Description
Decimal

GetBOMHeaderQtyPerUOM

procedure GetBOMHeaderQtyPerUOM(Item: Record Item): Decimal

Parameters

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

Returns

Type Description
Decimal

GetBOMLineQtyPerUOM

procedure GetBOMLineQtyPerUOM(Item: Record Item): Decimal

Parameters

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

Returns

Type Description
Decimal

SelectMultipleItems

Opens a page for selecting multiple items to add to the document. Selected items are added to the document.

procedure SelectMultipleItems()

AddItems

Adds items to the document based on the provided selection filter.

procedure AddItems(SelectionFilter: Text)

Parameters

Name Type Description
SelectionFilter Text

The filter to use for selecting items.

AddItem

Adds an item to the document.

procedure AddItem(var ProductionBOMLine: Record "Production BOM Line"; ItemNo: Code[20])

Parameters

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

Return value: The added Production BOM Line. Production BOM Line must have the number set.

ItemNo Code[20]

Return value: The number of the item to add.

Remarks

After the line is added, assembly order is automatically created if required. If the item has extended text, the text is added as a line.

InitNewLine

Initializes a new Production BOM Line based on the current Production BOM Line.

procedure InitNewLine(var NewProductionBOMLine: Record "Production BOM Line")

Parameters

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

Return value: The new Production BOM Line.

Events

OnAfterTestStatus

[IntegrationEvent(False,False)]
local procedure OnAfterTestStatus(ProductionBOMLine: Record "Production BOM Line"; ProductionBOMHeader: Record "Production BOM Header"; ProductionBOMVersion: Record "Production BOM Version")

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
ProductionBOMVersion Table Microsoft.Manufacturing.ProductionBOM."Production BOM Version"

OnAfterValidateNo

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

Parameters

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

OnBeforeGetBOMHeaderQtyPerUOM

[IntegrationEvent(False,False)]
local procedure OnBeforeGetBOMHeaderQtyPerUOM(var ProductionBOMLine: Record "Production BOM Line"; Item: Record Item; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Item Table Microsoft.Inventory.Item.Item
Result Decimal
IsHandled Boolean

OnBeforeGetBOMLineQtyPerUOM

[IntegrationEvent(False,False)]
local procedure OnBeforeGetBOMLineQtyPerUOM(var ProductionBOMLine: Record "Production BOM Line"; Item: Record Item; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Item Table Microsoft.Inventory.Item.Item
Result Decimal
IsHandled Boolean

OnBeforeGetQtyPerUnitOfMeasure

[IntegrationEvent(False,False)]
local procedure OnBeforeGetQtyPerUnitOfMeasure(var ProductionBOMLine: Record "Production BOM Line"; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Result Decimal
IsHandled Boolean

OnBeforeValidateRoutingLinkCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateRoutingLinkCode(var ProductionBOMLine: Record "Production BOM Line"; xProductionBOMLine: Record "Production BOM Line"; CallingFieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
xProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CallingFieldNo Integer
IsHandled Boolean

OnBeforeTestStatus

[IntegrationEvent(False,False)]
local procedure OnBeforeTestStatus(var ProductionBOMLine: Record "Production BOM Line"; var IsHandled: Boolean)

Parameters

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

OnDeleteOnCaseTypeElse

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

Parameters

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

OnValidateCalculationFormulaEnumExtension

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

Parameters

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

OnValidateNoOnAfterAssignItemFields

[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterAssignItemFields(var ProductionBOMLine: Record "Production BOM Line"; Item: Record Item; var xProductionBOMLine: Record "Production BOM Line"; CallingFieldNo: Integer)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
Item Table Microsoft.Inventory.Item.Item
xProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CallingFieldNo Integer

OnBeforeValidateNo

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateNo(var ProductionBOMLine: Record "Production BOM Line"; xProductionBOMLine: Record "Production BOM Line"; CallingFieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
xProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CallingFieldNo Integer
IsHandled Boolean

OnValidateNoOnAfterAssignProdBOMFields

[IntegrationEvent(False,False)]
local procedure OnValidateNoOnAfterAssignProdBOMFields(var ProductionBOMLine: Record "Production BOM Line"; ProductionBOMHeader: Record "Production BOM Header"; var xProductionBOMLine: Record "Production BOM Line"; CallingFieldNo: Integer)

Parameters

Name Type Description
ProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
ProductionBOMHeader Table Microsoft.Manufacturing.ProductionBOM."Production BOM Header"
xProductionBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"
CallingFieldNo Integer

See also