Table "Production Order"
ID 5405
Namespace: Microsoft.Manufacturing.Document
Properties
Fields
| Name |
Type |
Description |
| Status |
Enum Microsoft.Manufacturing.Document."Production Order Status"
|
Specifies the status of the production order.
|
| "No." |
Code[20]
|
Specifies the number of the involved entry or record, according to the specified number series.
|
| Description |
Text[100]
|
Specifies the description of the production order.
|
| "Search Description" |
Code[100]
|
Specifies the search description.
|
| "Description 2" |
Text[50]
|
Specifies information in addition to the description.
|
| "Creation Date" |
Date
|
Specifies the date on which you created the production order.
|
| "Last Date Modified" |
Date
|
Specifies when the production order card was last modified.
|
| "Source Type" |
Enum Microsoft.Manufacturing.Document."Prod. Order Source Type"
|
Specifies the source type of the production order.
|
| "Source No." |
Code[20]
|
Specifies the number of the source document that the entry originates from.
|
| "Routing No." |
Code[20]
|
Specifies the routing number used for this production order.
|
| "Variant Code" |
Code[10]
|
Specifies the variant code for production order item.
|
| "Inventory Posting Group" |
Code[20]
|
Specifies links between business transactions made for the item and an inventory account in the general ledger, to group amounts for that item type.
|
| "Gen. Prod. Posting Group" |
Code[20]
|
Specifies the item's product type to link transactions made for this item with the appropriate general ledger account according to the general posting setup.
|
| "Gen. Bus. Posting Group" |
Code[20]
|
Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup.
|
| Comment |
Boolean
|
|
| "Starting Time" |
Time
|
Specifies the starting time of the production order.
|
| "Starting Date" |
Date
|
Specifies the starting date of the production order.
|
| "Ending Time" |
Time
|
Specifies the ending time of the production order.
|
| "Ending Date" |
Date
|
Specifies the ending date of the production order.
|
| "Due Date" |
Date
|
Specifies the due date of the production order.
|
| "Finished Date" |
Date
|
Specifies the actual finishing date of a finished production order.
|
| Blocked |
Boolean
|
Specifies that the posting of consumption and output transactions for the released production order is blocked.
|
| "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.
|
| "Location Code" |
Code[10]
|
Specifies the location code to which you want to post the finished product from this production order.
|
| "Bin Code" |
Code[20]
|
Specifies a bin to which you want to post the finished items.
|
| "Replan Ref. No." |
Code[20]
|
|
| "Replan Ref. Status" |
Enum Microsoft.Manufacturing.Document."Production Order Status"
|
|
| "Low-Level Code" |
Integer
|
|
| Quantity |
Decimal
|
Specifies how many units of the item or the family to produce (production quantity).
|
| "Unit Cost" |
Decimal
|
|
| "Cost Amount" |
Decimal
|
|
| "Work Center Filter" |
Code[20]
|
|
| "Capacity Type Filter" |
Enum Microsoft.Manufacturing.Capacity."Capacity Type"
|
|
| "Capacity No. Filter" |
Code[20]
|
|
| "Date Filter" |
Date
|
|
| "Expected Operation Cost Amt." |
Decimal
|
|
| "Expected Component Cost Amt." |
Decimal
|
|
| "Actual Time Used" |
Decimal
|
|
| "Allocated Capacity Need" |
Decimal
|
|
| "Expected Capacity Need" |
Decimal
|
|
| "No. Series" |
Code[20]
|
|
| "Planned Order No." |
Code[20]
|
|
| "Firm Planned Order No." |
Code[20]
|
|
| "Simulated Order No." |
Code[20]
|
|
| "Expected Material Ovhd. Cost" |
Decimal
|
|
| "Expected Capacity Ovhd. Cost" |
Decimal
|
|
| "Inventory Adjmt. Entry Exists" |
Boolean
|
|
| "Starting Date-Time" |
DateTime
|
Specifies the starting date and starting time of the production order.
|
| "Ending Date-Time" |
DateTime
|
Specifies the ending date and ending time of the production order.
|
| "Document Put-away Status" |
Option
|
Specifies the status of the warehouse put-away.
|
| Reopened |
Boolean
|
Specifies if the production order is reopened.
|
| "Manual Scheduling" |
Boolean
|
Specifies that the End/Due Dates on the production have been scheduled manually.
|
| "Dimension Set ID" |
Integer
|
|
| "Completely Picked" |
Boolean
|
Specifies whether all production components have been completely picked.
|
| "Assigned User ID" |
Code[50]
|
Specifies the ID of the user who is responsible for the document.
|
| 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
InitRecord
TestNoSeries
AssistEdit
procedure AssistEdit(OldProdOrder: Record "Production Order"): Boolean
Parameters
Returns
GetNoSeriesCode
procedure GetNoSeriesCode(): Code[20]
Returns
| Type |
Description |
|
Code[20] |
|
CheckProdOrderStatus
procedure CheckProdOrderStatus(Name: Text[80])
Parameters
| Name |
Type |
Description |
|
Name
|
Text[80] |
|
DeleteProdOrderRelations
procedure DeleteProdOrderRelations()
DeleteFinishedProdOrderRelations
procedure DeleteFinishedProdOrderRelations()
AdjustStartEndingDate
procedure AdjustStartEndingDate()
UpdateDatetime
procedure UpdateDatetime()
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] |
|
Navigate
GetHeaderPutAwayStatus
procedure GetHeaderPutAwayStatus(SkipLineNo: Integer): Integer
Parameters
| Name |
Type |
Description |
|
SkipLineNo
|
Integer |
|
Returns
CreatePick
procedure CreatePick(AssignedUserID: Code[50]; SortingMethod: Option; SetBreakBulkFilter: Boolean; DoNotFillQtyToHandle: Boolean; PrintDocument: Boolean)
Parameters
| Name |
Type |
Description |
|
AssignedUserID
|
Code[50] |
|
|
SortingMethod
|
Option |
|
|
SetBreakBulkFilter
|
Boolean |
|
|
DoNotFillQtyToHandle
|
Boolean |
|
|
PrintDocument
|
Boolean |
|
SetHideValidationDialog
procedure SetHideValidationDialog(NewHideValidationDialog: Boolean)
Parameters
| Name |
Type |
Description |
|
NewHideValidationDialog
|
Boolean |
|
CreateInvtPutAwayPick
procedure CreateInvtPutAwayPick()
SetUpdateEndDate
procedure SetUpdateEndDate()
ShowDocDim
ProdOrderLineExist
procedure ProdOrderLineExist(): Boolean
Returns
IsStatusLessThanReleased
procedure IsStatusLessThanReleased(): Boolean
Returns
CreateDimFromDefaultDim
procedure CreateDimFromDefaultDim()
Events
OnAfterInitDefaultDimensionSources
[IntegrationEvent(False,False)]
local procedure OnAfterInitDefaultDimensionSources(var ProductionOrder: Record "Production Order"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; CallingFieldNo: Integer)
Parameters
OnAdjustStartEndingDateOnBeforeSetDueDate
[IntegrationEvent(False,False)]
local procedure OnAdjustStartEndingDateOnBeforeSetDueDate(var ProductionOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean)
Parameters
OnAfterOnDelete
[IntegrationEvent(False,False)]
local procedure OnAfterOnDelete(var ProductionOrder: Record "Production Order"; var RefreshOrder: Boolean)
Parameters
OnAfterCreateDim
[IntegrationEvent(False,False)]
local procedure OnAfterCreateDim(var ProductionOrder: Record "Production Order"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]; xProductionOrder: Record "Production Order")
Parameters
OnAfterValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnAfterValidateShortcutDimCode(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
OnAfterUpdateDateTime
[IntegrationEvent(False,False)]
local procedure OnAfterUpdateDateTime(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; CallingFieldNo: Integer)
Parameters
OnBeforeAssignItemNo
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignItemNo(var ProdOrder: Record "Production Order"; xProdOrder: Record "Production Order"; var Item: Record Item; CallingFieldNo: Integer)
Parameters
OnBeforeAssignFamily
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignFamily(var ProdOrder: Record "Production Order"; xProdOrder: Record "Production Order"; var Family: Record Family; CallingFieldNo: Integer)
Parameters
OnBeforeAssignSalesHeader
[IntegrationEvent(False,False)]
local procedure OnBeforeAssignSalesHeader(var ProdOrder: Record "Production Order"; xProdOrder: Record "Production Order"; var SalesHeader: Record "Sales Header"; CallingFieldNo: Integer)
Parameters
OnBeforeGetNoSeriesCode
[IntegrationEvent(False,False)]
local procedure OnBeforeGetNoSeriesCode(var ProductionOrder: Record "Production Order"; MfgSetup: Record "Manufacturing Setup"; var NoSeriesCode: Code[20]; var IsHandled: Boolean)
Parameters
OnBeforeDeleteFnshdProdOrderRelations
[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteFnshdProdOrderRelations(var ProdOrder: Record "Production Order")
Parameters
OnBeforeDeleteProdOrderLines
[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteProdOrderLines(ProductionOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line")
Parameters
OnBeforeDeleteRelations
[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteRelations(var ProdOrder: Record "Production Order")
Parameters
OnBeforeMultiLevelMessage
[IntegrationEvent(False,False)]
local procedure OnBeforeMultiLevelMessage(var IsHandled: Boolean; var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; CurrentFieldNo: Integer)
Parameters
OnBeforeUpdateEndingDate
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateEndingDate(var ProdOrderLine: Record "Prod. Order Line"; ProdOrder: Record "Production Order"; var IsHandled: Boolean; CurrFieldNo: Integer)
Parameters
OnBeforeUpdateProdOrderLineDueDate
[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateProdOrderLineDueDate(var ProdOrderLine: Record "Prod. Order Line"; var IsHandled: Boolean; var CalculateProdOrder: Codeunit "Calculate Prod. Order")
Parameters
OnBeforeValidateShortcutDimCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateShortcutDimCode(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; FieldNumber: Integer; var ShortcutDimCode: Code[20])
Parameters
OnBeforeValidateVariantCode
[IntegrationEvent(False,False)]
local procedure OnBeforeValidateVariantCode(var ProductionOrder: Record "Production Order"; xProductionOrder: Record "Production Order"; FieldNumber: Integer; var IsHandled: Boolean)
Parameters
OnValidateDueDateOnAfterModify
[IntegrationEvent(False,False)]
local procedure OnValidateDueDateOnAfterModify(ProductionOrder: Record "Production Order")
Parameters
OnValidateSourceNoOnSourceTypeEnumExtension
[IntegrationEvent(False,False)]
local procedure OnValidateSourceNoOnSourceTypeEnumExtension(var ProductionOrder: Record "Production Order")
Parameters
OnUpdateEndingDateOnBeforeCalcProdOrderRecalculate
[IntegrationEvent(False,False)]
local procedure OnUpdateEndingDateOnBeforeCalcProdOrderRecalculate(var ProdOrderLine: Record "Prod. Order Line")
Parameters
OnUpdateStartingEndingTimeOnBeforeProdOrderLineModify
[IntegrationEvent(False,False)]
local procedure OnUpdateStartingEndingTimeOnBeforeProdOrderLineModify(var ProdOrderLine: Record "Prod. Order Line"; var ProductionOrder: Record "Production Order")
Parameters
OnUpdateEndingDateOnBeforeProdOrderLineModify
[IntegrationEvent(False,False)]
local procedure OnUpdateEndingDateOnBeforeProdOrderLineModify(var ProdOrderLine: Record "Prod. Order Line"; var ProductionOrder: Record "Production Order")
Parameters
OnBeforeInitRecord
[IntegrationEvent(False,False)]
local procedure OnBeforeInitRecord(var ProductionOrder: Record "Production Order")
Parameters
OnAfterInitRecord
[IntegrationEvent(False,False)]
local procedure OnAfterInitRecord(var ProductionOrder: Record "Production Order")
Parameters
OnBeforeOnInsert
[IntegrationEvent(False,False)]
local procedure OnBeforeOnInsert(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; var InvtAdjmtEntryOrder: Record "Inventory Adjmt. Entry (Order)"; var IsHandled: Boolean)
Parameters
OnBeforeShowErrorOnRename
[IntegrationEvent(False,False)]
local procedure OnBeforeShowErrorOnRename(var IsHandled: Boolean; var ProductionOrder: Record "Production Order")
Parameters
OnBeforeRunCreatePickFromWhseSource
[IntegrationEvent(False,False)]
local procedure OnBeforeRunCreatePickFromWhseSource(var ProductionOrder: Record "Production Order"; AssignedUserID: Code[50]; SortingMethod: Option; PrintDocument: Boolean; DoNotFillQtyToHandle: Boolean; SetBreakBulkFilter: Boolean; HideValidationDialog: Boolean; var IsHandled: Boolean)
Parameters
OnBeforeTestNoSeries
[IntegrationEvent(False,False)]
local procedure OnBeforeTestNoSeries(ProductionOrder: Record "Production Order"; MfgSetup: Record "Manufacturing Setup"; var IsHandled: Boolean)
Parameters
OnBeforeCheckStatusNotFinished
[IntegrationEvent(False,False)]
local procedure OnBeforeCheckStatusNotFinished(ProductionOrder: Record "Production Order"; var IsHandled: Boolean)
Parameters
OnBeforeCreateDim
[IntegrationEvent(False,False)]
local procedure OnBeforeCreateDim(var ProductionOrder: Record "Production Order"; var IsHandled: Boolean)
Parameters
OnGetDefaultBinOnBeforeThirdPrioritySetBinCode
[IntegrationEvent(False,False)]
local procedure OnGetDefaultBinOnBeforeThirdPrioritySetBinCode(var ProductionOrder: Record "Production Order"; xProductionOrder: Record "Production Order"; var IsHandled: Boolean)
Parameters
OnInsertOnBeforeStatusCheck
[IntegrationEvent(False,False)]
local procedure OnInsertOnBeforeStatusCheck(var ProductionOrder: Record "Production Order"; var IsHandled: Boolean)
Parameters
OnBeforeConfirmUpdateAllLineDim
[IntegrationEvent(False,False)]
local procedure OnBeforeConfirmUpdateAllLineDim(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; NewParentDimSetID: Integer; OldParentDimSetID: Integer; var Confirmed: Boolean; var IsHandled: Boolean)
Parameters
OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim
[IntegrationEvent(False,False)]
local procedure OnValidateShortcutDimCodeOnBeforeUpdateAllLineDim(var ProductionOrder: Record "Production Order"; var xProductionOrder: Record "Production Order"; FieldNumber: Integer)
Parameters
OnShowDocDimOnAfterSetDimensionSetID
[IntegrationEvent(False,False)]
local procedure OnShowDocDimOnAfterSetDimensionSetID(var ProductionOrder: Record "Production Order"; xProductionOrder: Record "Production Order")
Parameters
OnUpdateAllLineDimOnAfterUpdateProdOrderCompDim
[IntegrationEvent(False,False)]
local procedure OnUpdateAllLineDimOnAfterUpdateProdOrderCompDim(var ProductionOrder: Record "Production Order"; var ProdOrderLine: Record "Prod. Order Line"; NewParentDimSetID: Integer; OldParentDimSetID: Integer)
Parameters
OnAfterDeleteProdOrderRelations
[IntegrationEvent(False,False)]
local procedure OnAfterDeleteProdOrderRelations(var ProductionOrder: Record "Production Order"; var ProdOrderCommentLine: Record "Prod. Order Comment Line"; var WhsePickRequest: Record "Whse. Pick Request"; var ReservationManagement: Codeunit "Reservation Management"; var ItemTrackingManagement: Codeunit "Item Tracking Management")
Parameters
OnCreatePickOnBeforeFindProdOrderComponent
[IntegrationEvent(False,False)]
local procedure OnCreatePickOnBeforeFindProdOrderComponent(var ProdOrderComponent: Record "Prod. Order Component")
Parameters
OnCreatePickOnBeforeRunCreatePickFromWhseSource
[IntegrationEvent(False,False)]
local procedure OnCreatePickOnBeforeRunCreatePickFromWhseSource(var ProdOrderComponent: Record "Prod. Order Component")
Parameters
See also