Table "Planning Component"
ID 99000829
Namespace: Microsoft.Inventory.Planning
Properties
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
ShowReservation
procedure ShowReservation(): Boolean
Returns
ShowReservationEntries
procedure ShowReservationEntries(Modal: Boolean)
Parameters
| Name |
Type |
Description |
|
Modal
|
Boolean |
|
TransferFromAsmLine
procedure TransferFromAsmLine(var AsmLine: Record "Assembly Line")
Parameters
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
GetItem
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
GetSourceCaption
procedure GetSourceCaption(): Text
Returns
SetReservationEntry
procedure SetReservationEntry(var ReservationEntry: Record "Reservation Entry")
Parameters
SetReservationFilters
procedure SetReservationFilters(var ReservationEntry: Record "Reservation Entry")
Parameters
ReservEntryExist
procedure ReservEntryExist(): Boolean
Returns
FilterLinesWithItemToPlan
procedure FilterLinesWithItemToPlan(var Item2: Record Item)
Parameters
FindLinesWithItemToPlan
procedure FindLinesWithItemToPlan(var Item2: Record Item): Boolean
Parameters
Returns
FindLinesForReservation
procedure FindLinesForReservation(ReservationEntry: Record "Reservation Entry"; AvailabilityFilter: Text; Positive: Boolean)
Parameters
FindCurrForecastName
procedure FindCurrForecastName(var ForecastName: Code[10]): Boolean
Parameters
| Name |
Type |
Description |
|
ForecastName
|
Code[10] |
|
Returns
SetRequisitionLine
procedure SetRequisitionLine(RequisitionLine: Record "Requisition Line")
Parameters
ShowDimensions
procedure ShowDimensions()
InitFromRequisitionLine
procedure InitFromRequisitionLine(RequisitionLine: Record "Requisition Line")
Parameters
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
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
Events
OnAfterInitDefaultDimensionSources
[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var PlanningComponent: Record "Planning Component"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
OnAfterFilterLinesWithItemToPlan
[IntegrationEvent(False,False)]
local procedure OnAfterFilterLinesWithItemToPlan(var PlanningComponent: Record "Planning Component"; var Item: Record Item)
Parameters
OnAfterGetItem
[IntegrationEvent(False,False)]
local procedure OnAfterGetItem(var Item: Record Item; var PlanningComponent: Record "Planning Component")
Parameters
OnAfterCreateDim
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var PlanningComponent: Record "Planning Component"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])
Parameters
OnAfterFindLinesForReservation
[IntegrationEvent(False,False)]
local procedure OnAfterFindLinesForReservation(var PlanningComponent: Record "Planning Component"; ReservationEntry: Record "Reservation Entry"; AvailabilityFilter: Text; Positive: Boolean)
Parameters
OnAfterSetReservationFilters
[IntegrationEvent(False,False)]
local procedure OnAfterSetReservationFilters(var ReservEntry: Record "Reservation Entry"; PlanningComponent: Record "Planning Component")
Parameters
OnAfterTransferFromAsmLine
[IntegrationEvent(False,False)]
local procedure OnAfterTransferFromAsmLine(var PlanningComponent: Record "Planning Component"; AssemblyLine: Record "Assembly Line")
Parameters
OnAfterValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
OnAfterValidateItemNo
[IntegrationEvent(False,False)]
local procedure OnAfterValidateItemNo(var PlanningComponent: Record "Planning Component"; Item: Record Item)
Parameters
OnBeforeShowReservation
[IntegrationEvent(False,False)]
local procedure OnBeforeShowReservation(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)
Parameters
OnBeforeValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
OnBeforeValidateCalculationFormula
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateCalculationFormula(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)
Parameters
OnBeforeGetUpdateFromSKU
[IntegrationEvent(False,False)]
local procedure OnBeforeGetUpdateFromSKU(var PlanningComponent: Record "Planning Component"; var IsHandled: Boolean)
Parameters
OnBeforeGetWMSDefaultBin
[IntegrationEvent(False,False)]
local procedure OnBeforeGetWMSDefaultBin(var PlanningComponent: Record "Planning Component"; var BinCode: Code[20]; var IsHandled: Boolean; Location: Record Location)
Parameters
OnItemNoOnValidateOnAfterInitFromItem
[IntegrationEvent(False,False)]
local procedure OnItemNoOnValidateOnAfterInitFromItem(var PlanningComponent: Record "Planning Component"; Item: Record Item)
Parameters
OnValidateCalculationFormulaEnumExtension
[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaEnumExtension(var PlanningComponent: Record "Planning Component")
Parameters
OnValidateCalculationFormulaOnAfterSetQuantity
[IntegrationEvent(False,False)]
local procedure OnValidateCalculationFormulaOnAfterSetQuantity(var PlanningComponent: Record "Planning Component")
Parameters
OnAfterInitFromRequisitionLine
[IntegrationEvent(False,False)]
local procedure OnAfterInitFromRequisitionLine(var PlanningComponent: Record "Planning Component"; RequisitionLine: Record "Requisition Line")
Parameters
OnAfterGetUpdateFromSKU
[IntegrationEvent(False,False)]
local procedure OnAfterGetUpdateFromSKU(var PlanningComponent: Record "Planning Component"; StockeepingUnit: Record "Stockkeeping Unit")
Parameters
OnAfterValidateCalculationFormula
[IntegrationEvent(False,False)]
local procedure OnAfterValidateCalculationFormula(var PlanningComponent: Record "Planning Component")
Parameters
OnGetToBinOnBeforeGetWMSDefaultCode
[IntegrationEvent(False,False)]
local procedure OnGetToBinOnBeforeGetWMSDefaultCode(var PlanningComponent: Record "Planning Component"; var BinCode: Code[20])
Parameters
OnBeforeGetDefaultBin
[IntegrationEvent(False,False)]
local procedure OnBeforeGetDefaultBin(var PlanningComponent: Record "Planning Component"; var xPlanningComponent: Record "Planning Component"; var IsHandled: Boolean)
Parameters
See also