Share via


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]
Description Text[100]
"Unit of Measure Code" Code[10]
Quantity Decimal
Position Code[10]
"Position 2" Code[10]
"Position 3" Code[10]
"Lead-Time Offset" DateFormula
"Variant Code" Code[10]
"Qty. Rounding Precision" Decimal
"Qty. Rounding Precision (Base)" Decimal
"Expected Quantity" Decimal
"Flushing Method" Enum Microsoft.Manufacturing.Setup."Flushing Method"
"Location Code" Code[10]
"Shortcut Dimension 1 Code" Code[20]
"Shortcut Dimension 2 Code" Code[20]
"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
Width Decimal
Weight Decimal
Depth Decimal
"Calculation Formula" Enum Microsoft.Foundation.Enums."Quantity Calculation Formula"
"Quantity per" Decimal
"Ref. Order Type" Enum Microsoft.Inventory.Requisition."Requisition Ref. Order Type"
"Unit Cost" Decimal
"Cost Amount" Decimal
"Due Date" Date
"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
"Expected Quantity (Base)" Decimal
"Original Expected Qty. (Base)" Decimal
"Net Quantity (Base)" Decimal
"Due Date-Time" DateTime
"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
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