Table of Contents

Table "Prod. Order Component"

ID 5407
Namespace: Microsoft.Manufacturing.Document

Properties

Name Value
Caption Prod. Order Component
DataCaptionFields 1,2
DrillDownPageID Page Microsoft.Manufacturing.Document."Prod. Order Comp. Line List"
LookupPageID Page Microsoft.Manufacturing.Document."Prod. Order Comp. Line List"
Permissions TableData "Prod. Order Component" = rimd
DataClassification CustomerContent

Fields

Name Type Description
Status Enum Microsoft.Manufacturing.Document."Production Order Status"

Specifies the status of the production order to which the component list belongs.

"Prod. Order No." Code[20]

Specifies the number of the related production order.

"Prod. Order Line No." Integer

Specifies the number of the production order line to which the component list belongs.

"Line No." Integer
"Item No." Code[20]

Specifies the number of the item that is a component in the production order component list.

Description Text[100]

Specifies a description of the item on the line.

"Unit of Measure Code" Code[10]

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

Quantity Decimal
Position Code[10]

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

"Position 2" Code[10]

Specifies the components position in the BOM. It is copied from the production BOM when you calculate the production order.

"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 lead-time offset for the component line. It is copied from the corresponding field in the production BOM when you calculate the production order.

"Routing Link Code" Code[10]

Specifies the routing link code when you calculate the production order.

"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.

"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"Expected Quantity" Decimal

Specifies the quantity of the component expected to be consumed during the production of the quantity on this line.

"Remaining Quantity" Decimal

Specifies the difference between the finished and planned quantities, or zero if the finished quantity is greater than the remaining quantity.

"Act. Consumption (Qty)" Decimal

Specifies the quantity of the component that has been posted as consumed by the production order.

"Flushing Method" Enum Microsoft.Manufacturing.Setup."Flushing Method"

Specifies how consumption of the item (component) is calculated and handled in production processes. Manual: Enter and post consumption in the consumption journal manually. Forward: Automatically posts consumption according to the production order component lines when the first operation starts. Backward: Automatically calculates and posts consumption according to the production order component lines when the production order is finished. Pick + Forward / Pick + Backward: Variations with warehousing.

"Description 2" Text[50]

Specifies additional description text.

"Location Code" Code[10]

Specifies the location where the component is stored. Copies the location code from the corresponding field on the production order line.

"Shortcut Dimension 1 Code" Code[20]

Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Shortcut Dimension 2 Code" Code[20]

Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window.

"Bin Code" Code[20]

Specifies the bin in which the component is to be placed before it is consumed.

"Supplied-by Line No." Integer
"Planning Level Code" Integer
"Item Low-Level Code" Integer
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.

"Unit Cost" Decimal

Specifies the cost of one unit of the item or resource on the line.

"Cost Amount" Decimal

Specifies the total cost on the line by multiplying the unit cost by the quantity.

"Due Date" Date

Specifies the date when the produced item must be available. The date is copied from the header of the production order.

"Due Time" Time
"Qty. per Unit of Measure" Decimal
"Remaining Qty. (Base)" Decimal
"Quantity (Base)" Decimal
"Reserved Qty. (Base)" Decimal
"Reserved Quantity" Decimal

Specifies how many units of this item have been reserved.

"Expected Qty. (Base)" Decimal
"Due Date-Time" DateTime

Specifies the due date and the due time, which are combined in a format called "due date-time".

"Dimension Set ID" Integer
"Substitution Available" Boolean

Specifies if an item substitute is available for the production order component.

"Original Item No." Code[20]
"Original Variant Code" Code[10]
"Pick Qty." Decimal
"Qty. Picked" Decimal

Specifies the quantity of the item you have picked for the component line.

"Qty. Picked (Base)" Decimal
"Completely Picked" Boolean
"Pick Qty. (Base)" Decimal
"Direct Unit Cost" Decimal
"Indirect Cost %" Decimal
"Overhead Rate" Decimal
"Direct Cost Amount" Decimal
"Overhead Amount" Decimal
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

Caption

procedure Caption(): Text

Returns

Type Description
Text

ProdOrderNeeds

procedure ProdOrderNeeds(): Decimal

Returns

Type Description
Decimal

GetNeededQty

procedure GetNeededQty(CalcBasedOn: Option; IncludePreviousPosting: Boolean): Decimal

Parameters

Name Type Description
CalcBasedOn Option
IncludePreviousPosting Boolean

Returns

Type Description
Decimal

ShowOrderTracking

procedure ShowOrderTracking()

ShowReservation

procedure ShowReservation()

ShowReservationEntries

procedure ShowReservationEntries(Modal: Boolean)

Parameters

Name Type Description
Modal Boolean

CopyFromPlanningComp

procedure CopyFromPlanningComp(PlanningComponent: Record "Planning Component")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"

AdjustQtyToQtyPicked

procedure AdjustQtyToQtyPicked(var QtyToPost: Decimal)

Parameters

Name Type Description
QtyToPost Decimal

AdjustQtyToReservedFromInventory

procedure AdjustQtyToReservedFromInventory(var QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock")

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

BlockDynamicTracking

procedure BlockDynamicTracking(SetBlock: Boolean)

Parameters

Name Type Description
SetBlock Boolean

CreateDim

procedure CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

IsInbound

procedure IsInbound(): Boolean

Returns

Type Description
Boolean

OpenItemTrackingLines

procedure OpenItemTrackingLines()

ValidateShortcutDimCode

procedure ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

LookupShortcutDimCode

procedure LookupShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

ShowShortcutDimCode

procedure ShowShortcutDimCode(var ShortcutDimCode: array[8] of Code[20])

Parameters

Name Type Description
ShortcutDimCode array[8] of Code[20]

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 ProdOrderComponent: Record "Prod. Order Component"; ItemNo: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

Return value: The added Prod. Order Component. Prod. Order Component 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 Prod. Order Component based on the current Prod. Order Component.

procedure InitNewLine(var NewProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
NewProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

Return value: The new Prod. Order Component.

UpdateDatetime

procedure UpdateDatetime()

RowID1

procedure RowID1(): Text[250]

Returns

Type Description
Text[250]

GetDefaultBin

procedure GetDefaultBin()

GetDefaultConsumptionBin

procedure GetDefaultConsumptionBin(var ProdOrderRtngLine: Record "Prod. Order Routing Line"): Code[20]

Parameters

Name Type Description
ProdOrderRtngLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

Returns

Type Description
Code[20]

GetRemainingQty

procedure GetRemainingQty(var RemainingQty: Decimal; var RemainingQtyBase: Decimal)

Parameters

Name Type Description
RemainingQty Decimal
RemainingQtyBase Decimal

GetReservationQty

procedure GetReservationQty(var QtyReserved: Decimal; var QtyReservedBase: Decimal; var QtyToReserve: Decimal; var QtyToReserveBase: Decimal): Decimal

Parameters

Name Type Description
QtyReserved Decimal
QtyReservedBase Decimal
QtyToReserve Decimal
QtyToReserveBase Decimal

Returns

Type Description
Decimal

GetSourceCaption

procedure GetSourceCaption(): Text

Returns

Type Description
Text

SetReservationEntry

procedure SetReservationEntry(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

SetReservationFilters

procedure SetReservationFilters(var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

ReservEntryExist

procedure ReservEntryExist(): Boolean

Returns

Type Description
Boolean

CheckBin

procedure CheckBin()

AutoReserve

procedure AutoReserve()

ShowItemSub

procedure ShowItemSub()

FilterLinesWithItemToPlan

procedure FilterLinesWithItemToPlan(var Item: Record Item; IncludeFirmPlanned: Boolean)

Parameters

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

FindLinesWithItemToPlan

procedure FindLinesWithItemToPlan(var Item: Record Item; IncludeFirmPlanned: Boolean): Boolean

Parameters

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

Returns

Type Description
Boolean

LinesWithItemToPlanExist

procedure LinesWithItemToPlanExist(var Item: Record Item; IncludeFirmPlanned: Boolean): Boolean

Parameters

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

Returns

Type Description
Boolean

FilterLinesForReservation

procedure FilterLinesForReservation(ReservationEntry: Record "Reservation Entry"; NewStatus: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
NewStatus Option
AvailabilityFilter Text
Positive Boolean

ShowDimensions

procedure ShowDimensions()

SetIgnoreErrors

procedure SetIgnoreErrors()

HasErrorOccured

procedure HasErrorOccured(): Boolean

Returns

Type Description
Boolean

SetFilterByReleasedOrderNo

procedure SetFilterByReleasedOrderNo(OrderNo: Code[20])

Parameters

Name Type Description
OrderNo Code[20]

SetFilterFromProdBOMLine

procedure SetFilterFromProdBOMLine(ProdBOMLine: Record "Production BOM Line")

Parameters

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

TestItemFields

procedure TestItemFields(ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10])

Parameters

Name Type Description
ItemNo Code[20]
VariantCode Code[10]
LocationCode Code[10]

CalcBaseQty

procedure CalcBaseQty(Qty: Decimal; FromFieldName: Text; ToFieldName: Text): Decimal

Parameters

Name Type Description
Qty Decimal
FromFieldName Text
ToFieldName Text

Returns

Type Description
Decimal

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim()

CheckIfProdOrderCompMeetsReservedFromStockSetting

procedure CheckIfProdOrderCompMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"): Boolean

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

Returns

Type Description
Boolean

IsInventoriableItem

procedure IsInventoriableItem(): Boolean

Returns

Type Description
Boolean

ReserveFromInventory

procedure ReserveFromInventory(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

SuspendDeletionCheck

procedure SuspendDeletionCheck(Suspend: Boolean)

Parameters

Name Type Description
Suspend Boolean

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var ProdOrderComponent: Record "Prod. Order Component"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterAutoReserve

[IntegrationEvent(False,False)]
local procedure OnAfterAutoReserve(var Item: Record Item; var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterAssignDecsriptionFromItemOrVariant

[IntegrationEvent(False,False)]
local procedure OnAfterAssignDecsriptionFromItemOrVariant(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; Item: Record Item; ItemVariant: Record "Item Variant")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item
ItemVariant Table Microsoft.Inventory.Item."Item Variant"

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var ProdOrderComponent: Record "Prod. Order Component"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; xProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterCopyFromPlanningComp

[IntegrationEvent(False,False)]
local procedure OnAfterCopyFromPlanningComp(var ProdOrderComponent: Record "Prod. Order Component"; PlanningComponent: Record "Planning Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"

OnAfterFilterLinesWithItemToPlan

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var ProdOrderComponent: Record "Prod. Order Component"; var Item: Record Item; IncludeFirmPlanned: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item
IncludeFirmPlanned Boolean

OnAfterFilterLinesForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesForReservation(var ProdOrderComponent: Record "Prod. Order Component"; ReservationEntry: Record "Reservation Entry"; NewStatus: Option; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
NewStatus Option
AvailabilityFilter Text
Positive Boolean

OnAfterGetBinCodeFromLocation

[IntegrationEvent(False,False)]
local procedure OnAfterGetBinCodeFromLocation(var ProdOrderComponent: Record "Prod. Order Component"; Location: Record Location; var BinCode: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Location Table Microsoft.Inventory.Location.Location
BinCode Code[20]

OnAfterGetSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetSKU(ProdOrderComponent: Record "Prod. Order Component"; var Result: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Result Boolean

OnAfterSetFilterFromProdBOMLine

[IntegrationEvent(False,False)]
local procedure OnAfterSetFilterFromProdBOMLine(var ProdOrderComponent: Record "Prod. Order Component"; ProdBOMLine: Record "Production BOM Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdBOMLine Table Microsoft.Manufacturing.ProductionBOM."Production BOM Line"

OnAfterUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateUnitCost(var ProdOrderComp: Record "Prod. Order Component"; GeneralLedgerSetup: Record "General Ledger Setup")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
GeneralLedgerSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"

OnAfterProdOrderNeeds

[IntegrationEvent(False,False)]
local procedure OnAfterProdOrderNeeds(ProdOrderComponent: Record "Prod. Order Component"; ProdOrderLine: Record "Prod. Order Line"; ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var NeededQty: Decimal)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
NeededQty Decimal

OnAfterRoundExpectedQuantity

[IntegrationEvent(False,False)]
local procedure OnAfterRoundExpectedQuantity(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterSetReservationFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterUpdateDateTime

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDateTime(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var ProdOrderComponent: Record "Prod. Order Component"; var xProdOrderComponent: Record "Prod. Order Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeAdjustQtyToQtyPicked

[IntegrationEvent(False,False)]
local procedure OnBeforeAdjustQtyToQtyPicked(var ProdOrderComponent: Record "Prod. Order Component"; var QtyToPost: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
QtyToPost Decimal
IsHandled Boolean

OnBeforeAutoReserve

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserve(var Item: Record Item; var ProdOrderComp: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeBinCodeOnLookup

[IntegrationEvent(False,False)]
local procedure OnBeforeBinCodeOnLookup(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeCalcBaseQty

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcBaseQty(var ProdOrderComponent: Record "Prod. Order Component"; CurrentFieldNo: Integer; Qty: Decimal; FromFieldName: Text; ToFieldName: Text; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
CurrentFieldNo Integer
Qty Decimal
FromFieldName Text
ToFieldName Text
Result Decimal
IsHandled Boolean

OnBeforeUpdateExpectedQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateExpectedQuantity(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeValidateCalculationFormula

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCalculationFormula(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var ProdOrderComponent: Record "Prod. Order Component"; var xProdOrderComponent: Record "Prod. Order Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeValidateQuantityper

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateQuantityper(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeGetDefaultConsumptionBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultConsumptionBin(var ProdOrderComponent: Record "Prod. Order Component"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var BinCode: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
BinCode Code[20]

OnBeforeGetUpdateFromSKU

[IntegrationEvent(False,False)]
local procedure OnBeforeGetUpdateFromSKU(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeUpdateUnitCost

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUnitCost(var ProdOrderComponent: Record "Prod. Order Component"; GLSetup: Record "General Ledger Setup"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
GLSetup Table Microsoft.Finance.GeneralLedger.Setup."General Ledger Setup"
IsHandled Boolean

OnBeforeUpdateUOMFromItem

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateUOMFromItem(var ProdOrderComponent: Record "Prod. Order Component"; Item: Record Item; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item
IsHandled Boolean

OnDeleteOnBeforeGetProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnDeleteOnBeforeGetProdOrderLine(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnGetDefaultConsumptionBinOnAfterGetBinCodeFromRtngLine

[IntegrationEvent(False,False)]
local procedure OnGetDefaultConsumptionBinOnAfterGetBinCodeFromRtngLine(var ProdOrderComponent: Record "Prod. Order Component"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var BinCode: Code[20])

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
BinCode Code[20]

OnGetNeededQtyAfterCalcCompQtyBase

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyAfterCalcCompQtyBase(var ProdOrderComp: Record "Prod. Order Component"; var CompQtyBase: Decimal; OutputQtyBase: Decimal)

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
CompQtyBase Decimal
OutputQtyBase Decimal

OnGetNeededQtyAfterCalcActConsumptionQty

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyAfterCalcActConsumptionQty(var ProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnGetNeededQtyOnBeforeCalcActNeededQtyBase

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnBeforeCalcActNeededQtyBase(var ProdOrderComponent: Record "Prod. Order Component"; var OutputQtyBase: Decimal; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
OutputQtyBase Decimal
Result Decimal
IsHandled Boolean

OnGetNeededQtyOnBeforeExitWithPreviousPosting

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnBeforeExitWithPreviousPosting(var ProdOrderComponent: Record "Prod. Order Component"; var CompQtyBase: Decimal; var Result: Decimal; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
CompQtyBase Decimal
Result Decimal
IsHandled Boolean

OnGetNeededQtyOnAfterCalcBasedOn

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnAfterCalcBasedOn(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnGetNeededQtyOnAfterLastOperationFound

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnAfterLastOperationFound(var ProdOrderComponent: Record "Prod. Order Component"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnGetNeededQtyOnBeforeAddOutputQtyBase

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnBeforeAddOutputQtyBase(var CapacityLedgerEntry: Record "Capacity Ledger Entry"; var OutputQtyBase: Decimal; var IsHandled: Boolean; var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
CapacityLedgerEntry Table Microsoft.Manufacturing.Capacity."Capacity Ledger Entry"
OutputQtyBase Decimal
IsHandled Boolean
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnGetNeededQtyOnBeforeCalcBasedOn

[IntegrationEvent(False,False)]
local procedure OnGetNeededQtyOnBeforeCalcBasedOn(var ProdOrderComponent: Record "Prod. Order Component"; var RoundingPrecision: Decimal)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
RoundingPrecision Decimal

OnValidateCalculationFormulaEnumExtension

[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaEnumExtension(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateCalculationFormulaOnAfterSetQuantity

[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaOnAfterSetQuantity(var ProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateExpectedQuantityOnAfterCalcActConsumptionQty

[IntegrationEvent(False,False)]
local procedure OnValidateExpectedQuantityOnAfterCalcActConsumptionQty(var ProdOrderComp: Record "Prod. Order Component"; xProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateExpectedQtyBaseOnAfterCalcActConsumptionQty

[IntegrationEvent(False,False)]
local procedure OnValidateExpectedQtyBaseOnAfterCalcActConsumptionQty(var ProdOrderComp: Record "Prod. Order Component"; xProdOrderComp: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComp Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateItemNoOnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnValidateItemNoOnBeforeGetDefaultBin(var ProdOrderComponent: Record "Prod. Order Component"; var Item: Record Item)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item

OnValidateRoutingLinkCodeBeforeValidateDueDate

[IntegrationEvent(False,False)]
local procedure OnValidateRoutingLinkCodeBeforeValidateDueDate(var ProdOrderComponent: Record "Prod. Order Component"; var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"

OnBeforeShowItemSub

[IntegrationEvent(False,False)]
local procedure OnBeforeShowItemSub(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeValidateBinCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateBinCode(var Rec: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
Rec Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeValidateExpectedQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExpectedQuantity(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeValidateExpectedQtyBase

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateExpectedQtyBase(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; FieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
FieldNo Integer
IsHandled Boolean

OnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var ProdOrderComponent: Record "Prod. Order Component"; var xProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeRoundExpectedQuantity

[IntegrationEvent(False,False)]
local procedure OnBeforeRoundExpectedQuantity(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeShowReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnValidateExpectedQtyBaseOnAfterCalcRemainingQuantity

[IntegrationEvent(False,False)]
local procedure OnValidateExpectedQtyBaseOnAfterCalcRemainingQuantity(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateItemNoOnAfterUpdateUOMFromItem

[IntegrationEvent(False,False)]
local procedure OnValidateItemNoOnAfterUpdateUOMFromItem(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component"; Item: Record Item)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
Item Table Microsoft.Inventory.Item.Item

OnBeforeUpdateBin

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateBin(var ProdOrderComponent: Record "Prod. Order Component"; FieldNo: Integer; FieldCaption: Text[30]; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
FieldNo Integer
FieldCaption Text[30]
IsHandled Boolean

OnAdjustQtyToReservedFromInventory

[IntegrationEvent(False,False)]
local procedure OnAdjustQtyToReservedFromInventory(var QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock")

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"

OnCheckIfProdOrderCompMeetsReservedFromStockSetting

[IntegrationEvent(False,False)]
local procedure OnCheckIfProdOrderCompMeetsReservedFromStockSetting(QtyToPost: Decimal; ReservedFromStock: Enum "Reservation From Stock"; var Result: Boolean)

Parameters

Name Type Description
QtyToPost Decimal
ReservedFromStock Enum Microsoft.Inventory.Tracking."Reservation From Stock"
Result Boolean

OnAfterShowDimensions

[IntegrationEvent(False,False)]
local procedure OnAfterShowDimensions(var ProdOrderComponent: Record "Prod. Order Component"; xProdOrderComponent: Record "Prod. Order Component")

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
xProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"

OnValidateRoutingLinkCodeOnBeforeUpdateDueDateAndTime

[IntegrationEvent(False,False)]
local procedure OnValidateRoutingLinkCodeOnBeforeUpdateDueDateAndTime(var ProdOrderComponent: Record "Prod. Order Component"; var ProdOrderLine: Record "Prod. Order Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ProdOrderRoutingLine Table Microsoft.Manufacturing.Document."Prod. Order Routing Line"
IsHandled Boolean

OnValidateUnitCostOnBeforeCheckCostingMethod

[IntegrationEvent(False,False)]
local procedure OnValidateUnitCostOnBeforeCheckCostingMethod(var ProdOrderComponent: Record "Prod. Order Component"; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
IsHandled Boolean

OnBeforeCreateDim

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var ProdOrderComponent: Record "Prod. Order Component"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; CurrentFieldNo: Integer; var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderComponent Table Microsoft.Manufacturing.Document."Prod. Order Component"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]
CurrentFieldNo Integer
IsHandled Boolean

See also