Table of Contents

Table "Planning Component"

ID 99000829
Namespace: Microsoft.Inventory.Planning

Properties

Name Value
Caption Planning Component
DrillDownPageID Page Microsoft.Inventory.Planning."Planning Component List"
LookupPageID Page Microsoft.Inventory.Planning."Planning Component List"
DataClassification CustomerContent

Fields

Name Type Description
"Worksheet Template Name" Code[10]
"Worksheet Batch Name" Code[10]
"Worksheet Line No." Integer
"Line No." Integer
"Item No." Code[20]

Specifies the item number of the component.

Description Text[100]

Specifies the description of the component.

"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 second reference number for the component position, such as the alternate position number of a component on a circuit board.

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

"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 expected quantity of this planning component line.

"Description 2" Text[50]

Specifies additional description text.

"Flushing Method" Enum Microsoft.Manufacturing.Setup."Flushing Method"
"Location Code" Code[10]

Specifies the code for the inventory location, where the item on the planning component line will be registered.

"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]
"Supplied-by Line No." Integer
"Planning Level Code" Integer
"Ref. Order Status" Enum Microsoft.Manufacturing.Document."Production Order Status"
"Ref. Order No." Code[20]
"Ref. Order Line No." 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.

"Ref. Order Type" Enum Microsoft.Inventory.Requisition."Requisition Ref. Order Type"
"Unit Cost" Decimal

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

"Cost Amount" Decimal

Specifies the total cost for this planning component line.

"Due Date" Date

Specifies the date when this planning component must be finished.

"Due Time" Time
"Direct Unit Cost" Decimal
"Indirect Cost %" Decimal
"Overhead Rate" Decimal
"Direct Cost Amount" Decimal
"Overhead Amount" Decimal
"Qty. per Unit of Measure" Decimal
"Quantity (Base)" Decimal
"Reserved Qty. (Base)" Decimal
"Reserved Quantity" Decimal

Specifies the quantity of units that are reserved.

"Expected Quantity (Base)" Decimal
"Original Expected Qty. (Base)" Decimal
"Net Quantity (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
Critical Boolean
"Planning Line Origin" Enum Microsoft.Inventory.Planning."Planning Line Origin Type"
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

ShowReservation

procedure ShowReservation(): Boolean

Returns

Type Description
Boolean

ShowReservationEntries

procedure ShowReservationEntries(Modal: Boolean)

Parameters

Name Type Description
Modal Boolean

TransferFromAsmLine

procedure TransferFromAsmLine(var AsmLine: Record "Assembly Line")

Parameters

Name Type Description
AsmLine Table Microsoft.Assembly.Document."Assembly Line"

BlockDynamicTracking

procedure BlockDynamicTracking(SetBlock: Boolean)

Parameters

Name Type Description
SetBlock Boolean

UpdateDatetime

procedure UpdateDatetime()

OpenItemTrackingLines

procedure OpenItemTrackingLines()

CreateDim

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

Parameters

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

ValidateShortcutDimCode

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

Parameters

Name Type Description
FieldNumber Integer
ShortcutDimCode Code[20]

GetGLSetup

procedure GetGLSetup()

GetItem

procedure GetItem()

GetReqLine

procedure GetReqLine()

GetLocation

procedure GetLocation(LocationCode: Code[10])

Parameters

Name Type Description
LocationCode Code[10]

GetDefaultBin

procedure GetDefaultBin()

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 ReservationEntry: Record "Reservation Entry")

Parameters

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

SetReservationFilters

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

Parameters

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

ReservEntryExist

procedure ReservEntryExist(): Boolean

Returns

Type Description
Boolean

FilterLinesWithItemToPlan

procedure FilterLinesWithItemToPlan(var Item2: Record Item)

Parameters

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

FindLinesWithItemToPlan

procedure FindLinesWithItemToPlan(var Item2: Record Item): Boolean

Parameters

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

Returns

Type Description
Boolean

FindLinesForReservation

procedure FindLinesForReservation(ReservationEntry: Record "Reservation Entry"; AvailabilityFilter: Text; Positive: Boolean)

Parameters

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

FindCurrForecastName

procedure FindCurrForecastName(var ForecastName: Code[10]): Boolean

Parameters

Name Type Description
ForecastName Code[10]

Returns

Type Description
Boolean

SetRequisitionLine

procedure SetRequisitionLine(RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

ShowDimensions

procedure ShowDimensions()

InitFromRequisitionLine

procedure InitFromRequisitionLine(RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

CreateDimFromDefaultDim

procedure CreateDimFromDefaultDim()

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 PlanningComponent: Record "Planning Component"; ItemNo: Code[20])

Parameters

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

Return value: New Planning Component Record. Planning 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 Planning Component based on the current Planning Component.

procedure InitNewLine(var NewPlanningComponent: Record "Planning Component")

Parameters

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

Return value: The new Planning Component.

Events

OnAfterInitDefaultDimensionSources

[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var PlanningComponent: Record "Planning Component"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterFilterLinesWithItemToPlan

[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var PlanningComponent: Record "Planning Component"; var Item: Record Item)

Parameters

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

OnAfterGetItem

[IntegrationEvent(False,False)]
local procedure OnAfterGetItem(var Item: Record Item; var PlanningComponent: Record "Planning Component")

Parameters

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

OnAfterCreateDim

[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var PlanningComponent: Record "Planning Component"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
DefaultDimSource List of [Dictionary of [Integer, Code[20]]]

OnAfterFindLinesForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterFindLinesForReservation(var PlanningComponent: Record "Planning Component"; ReservationEntry: Record "Reservation Entry"; AvailabilityFilter: Text; Positive: Boolean)

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AvailabilityFilter Text
Positive Boolean

OnAfterSetReservationFilters

[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; PlanningComponent: Record "Planning Component")

Parameters

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

OnAfterTransferFromAsmLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromAsmLine(var PlanningComponent: Record "Planning Component"; AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnAfterValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
xPlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
FieldNumber Integer
ShortcutDimCode Code[20]

OnAfterValidateItemNo

[IntegrationEvent(False,False)]
local procedure OnAfterValidateItemNo(var PlanningComponent: Record "Planning Component"; Item: Record Item)

Parameters

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

OnBeforeShowReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)

Parameters

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

OnBeforeValidateShortcutDimCode

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
xPlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
FieldNumber Integer
ShortcutDimCode Code[20]

OnBeforeValidateCalculationFormula

[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCalculationFormula(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)

Parameters

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

OnBeforeGetUpdateFromSKU

[IntegrationEvent(False,False)]
local procedure OnBeforeGetUpdateFromSKU(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)

Parameters

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

OnBeforeGetWMSDefaultBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetWMSDefaultBin(var PlanningComponent: Record "Planning Component"; var BinCode: Code[20]; var IsHandled: Boolean; Location: Record Location)

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
BinCode Code[20]
IsHandled Boolean
Location Table Microsoft.Inventory.Location.Location

OnItemNoOnValidateOnAfterInitFromItem

[IntegrationEvent(False,False)]
local procedure OnItemNoOnValidateOnAfterInitFromItem(var PlanningComponent: Record "Planning Component"; Item: Record Item)

Parameters

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

OnValidateCalculationFormulaEnumExtension

[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaEnumExtension(var PlanningComponent: Record "Planning Component")

Parameters

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

OnValidateCalculationFormulaOnAfterSetQuantity

[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaOnAfterSetQuantity(var PlanningComponent: Record "Planning Component")

Parameters

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

OnAfterInitFromRequisitionLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromRequisitionLine(var PlanningComponent: Record "Planning Component"; RequisitionLine: Record "Requisition Line")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
RequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"

OnAfterGetUpdateFromSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetUpdateFromSKU(var PlanningComponent: Record "Planning Component"; StockeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
StockeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterValidateCalculationFormula

[IntegrationEvent(False,False)]
local procedure OnAfterValidateCalculationFormula(var PlanningComponent: Record "Planning Component")

Parameters

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

OnGetToBinOnBeforeGetWMSDefaultCode

[IntegrationEvent(False,False)]
local procedure OnGetToBinOnBeforeGetWMSDefaultCode(var PlanningComponent: Record "Planning Component"; var BinCode: Code[20])

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
BinCode Code[20]

OnBeforeGetDefaultBin

[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; var IsHandled: Boolean)

Parameters

Name Type Description
PlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
xPlanningComponent Table Microsoft.Inventory.Planning."Planning Component"
IsHandled Boolean

See also