Share via


Codeunit "Prod. Order Line-Reserve"

ID 99000837
Namespace: Microsoft.Manufacturing.Document

Properties

Name Value
Permissions TableData "Reservation Entry" = rimd, TableData "Prod. Order Line" = rimd, TableData "Prod. Order Component" = rimd, TableData "Action Message Entry" = rm

Methods

CreateReservation

procedure CreateReservation(var ProdOrderLine: Record "Prod. Order Line", Description: Text[100], ExpectedReceiptDate: Date, Quantity: Decimal, QuantityBase: Decimal, ForReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
Description Text[100]
ExpectedReceiptDate Date
Quantity Decimal
QuantityBase Decimal
ForReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

CreateReservationSetFrom

procedure CreateReservationSetFrom(TrackingSpecification: Record "Tracking Specification")

Parameters

Name Type Description
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

Caption

procedure Caption(ProdOrderLine: Record "Prod. Order Line"): Text

Parameters

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

Returns

Type Description
Text

FindReservEntry

procedure FindReservEntry(ProdOrderLine: Record "Prod. Order Line", var ReservationEntry: Record "Reservation Entry"): Boolean

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

Returns

Type Description
Boolean

VerifyChange

procedure VerifyChange(var NewProdOrderLine: Record "Prod. Order Line", var OldProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

VerifyQuantity

procedure VerifyQuantity(var NewProdOrderLine: Record "Prod. Order Line", var OldProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

UpdatePlanningFlexibility

procedure UpdatePlanningFlexibility(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

TransferPOLineToPOLine

procedure TransferPOLineToPOLine(var OldProdOrderLine: Record "Prod. Order Line", var NewProdOrderLine: Record "Prod. Order Line", TransferQty: Decimal, TransferAll: Boolean)

Parameters

Name Type Description
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TransferQty Decimal
TransferAll Boolean

TransferPOLineToItemJnlLine

procedure TransferPOLineToItemJnlLine(var OldProdOrderLine: Record "Prod. Order Line", var NewItemJournalLine: Record "Item Journal Line", TransferQty: Decimal)

Parameters

Name Type Description
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
TransferQty Decimal

DeleteLineConfirm

procedure DeleteLineConfirm(var ProdOrderLine: Record "Prod. Order Line"): Boolean

Parameters

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

Returns

Type Description
Boolean

DeleteLine

procedure DeleteLine(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

AssignForPlanning

procedure AssignForPlanning(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

Block

procedure Block(SetBlocked: Boolean)

Parameters

Name Type Description
SetBlocked Boolean

CallItemTracking

procedure CallItemTracking(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

UpdateItemTrackingAfterPosting

procedure UpdateItemTrackingAfterPosting(ProdOrderLine: Record "Prod. Order Line")

Parameters

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

InitFromProdOrderLine

procedure InitFromProdOrderLine(var TrackingSpecification: Record "Tracking Specification", var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

TransferInventoryProfileFromProdOrderLine

procedure TransferInventoryProfileFromProdOrderLine(var InventoryProfile: Record "Inventory Profile", var ProdOrderLine: Record "Prod. Order Line", var TrackingReservationEntry: Record "Reservation Entry")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TrackingReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

TransferPlanningLineToPOLine

procedure TransferPlanningLineToPOLine(var OldRequisitionLine: Record "Requisition Line", var NewProdOrderLine: Record "Prod. Order Line", TransferQty: Decimal, TransferAll: Boolean)

Parameters

Name Type Description
OldRequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TransferQty Decimal
TransferAll Boolean

Events

OnAfterCallItemTracking

[IntegrationEvent(False,False)]
local procedure OnAfterCallItemTracking(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

OnBeforeTransferPOLineToPOLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferPOLineToPOLine(var OldProdOrderLine: Record "Prod. Order Line", var NewProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnBeforeSetTrackingFilterFromItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeSetTrackingFilterFromItemJnlLine(OldReservEntry: Record "Reservation Entry", var NewItemJnlLine: Record "Item Journal Line", var ItemTrackingFilterIsSet: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
NewItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
ItemTrackingFilterIsSet Boolean
IsHandled Boolean

OnBeforeSetNewTrackingFromItemJnlLine

[IntegrationEvent(False,False)]
local procedure OnBeforeSetNewTrackingFromItemJnlLine(var CreateReservEntry: Codeunit "Create Reserv. Entry", var NewItemJnlLine: Record "Item Journal Line", OldReservEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

Name Type Description
CreateReservEntry Codeunit Microsoft.Inventory.Tracking."Create Reserv. Entry"
NewItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean

OnBeforeTransferPOLineToItemJnlLineReservEntry

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferPOLineToItemJnlLineReservEntry(OldReservEntry: Record "Reservation Entry", ProdOrderLine: Record "Prod. Order Line", ItemJnlLine: Record "Item Journal Line", var TransferQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
TransferQty Decimal
IsHandled Boolean

OnDeleteLineOnAfterDeleteReservEntries

[IntegrationEvent(False,False)]
local procedure OnDeleteLineOnAfterDeleteReservEntries(var ProdOrderLine: Record "Prod. Order Line")

Parameters

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

OnTransferPOLineToItemJnlLineOnBeforeHandleItemTrackingOutput

[IntegrationEvent(False,False)]
local procedure OnTransferPOLineToItemJnlLineOnBeforeHandleItemTrackingOutput(var OldProdOrderLine: Record "Prod. Order Line", var NewItemJnlLine: Record "Item Journal Line", var OldReservEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

Name Type Description
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
NewItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean

OnTransferPOLineToItemJnlLineOnBeforeTestItemJnlLineFields

[IntegrationEvent(False,False)]
local procedure OnTransferPOLineToItemJnlLineOnBeforeTestItemJnlLineFields(var ItemJournalLine: Record "Item Journal Line", var ProdOrderLine: Record "Prod. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
ItemJournalLine Table Microsoft.Inventory.Journal."Item Journal Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnVerifyChangeOnBeforeHasError

[IntegrationEvent(False,False)]
local procedure OnVerifyChangeOnBeforeHasError(NewProdOrderLine: Record "Prod. Order Line", OldProdOrderLine: Record "Prod. Order Line", var HasError: Boolean, var ShowError: Boolean)

Parameters

Name Type Description
NewProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
OldProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
HasError Boolean
ShowError Boolean

OnCallItemTrackingOnBeforeItemTrackingLinesRunModal

[IntegrationEvent(False,False)]
local procedure OnCallItemTrackingOnBeforeItemTrackingLinesRunModal(var ProdOrderLine: Record "Prod. Order Line", var ItemTrackingLines: Page "Item Tracking Lines")

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
ItemTrackingLines Page Microsoft.Inventory.Tracking."Item Tracking Lines"

OnDeleteLineConfirmOnAfterReservEntry2Modify

[IntegrationEvent(False,False)]
local procedure OnDeleteLineConfirmOnAfterReservEntry2Modify(var ReservEntry: Record "Reservation Entry")

Parameters

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

OnBeforeCallItemTracking

[IntegrationEvent(False,False)]
local procedure OnBeforeCallItemTracking(var ProdOrderLine: Record "Prod. Order Line", var IsHandled: Boolean)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
IsHandled Boolean

OnBeforeAutoReserveProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserveProdOrderLine(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date, var IsReserved: Boolean, Search: Text[1], NextStep: Integer, CalcReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
ReservSummEntryNo Integer
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
Description Text[100]
AvailabilityDate Date
IsReserved Boolean
Search Text[1]
NextStep Integer
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnCreateReservationOnBeforeCreateReservEntry

[IntegrationEvent(False,False)]
local procedure OnCreateReservationOnBeforeCreateReservEntry(var ProdOrderLine: Record "Prod. Order Line", var Quantity: Decimal, var QuantityBase: Decimal, var ReservationEntry: Record "Reservation Entry", var TrackingSpecification: Record "Tracking Specification", var IsHandled: Boolean, ExpectedReceiptDate: Date, Description: Text[100], ShipmentDate: Date)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
Quantity Decimal
QuantityBase Decimal
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
IsHandled Boolean
ExpectedReceiptDate Date
Description Text[100]
ShipmentDate Date

OnSetSourceForReservationOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 27.0. This event is never raised.

[Obsolete(This event is never raised.,27.0)]
[IntegrationEvent(False,False)]
local procedure OnSetSourceForReservationOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ProdOrderLine: Record "Prod. Order Line")

Parameters

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

OnAfterInitFromProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterInitFromProdOrderLine(var TrackingSpecification: Record "Tracking Specification", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnAfterTransferInventoryProfileFromProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnAfterTransferInventoryProfileFromProdOrderLine(var InventoryProfile: Record "Inventory Profile", ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
InventoryProfile Table Microsoft.Inventory.Tracking."Inventory Profile"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

OnSetProdOrderLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetProdOrderLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ProdOrderLine: Record "Prod. Order Line")

Parameters

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

OnAfterGetSourceValue

[IntegrationEvent(False,False)]
local procedure OnAfterGetSourceValue(ReservationEntry: Record "Reservation Entry", var SourceRecordRef: RecordRef, ReturnOption: Option)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SourceRecordRef RecordRef
ReturnOption Option

OnBeforeTransferPlanningLineToPOLine

[IntegrationEvent(False,False)]
local procedure OnBeforeTransferPlanningLineToPOLine(var OldRequisitionLine: Record "Requisition Line", var ProdOrderLine: Record "Prod. Order Line", TransferQty: Decimal, TransferAll: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
OldRequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TransferQty Decimal
TransferAll Boolean
IsHandled Boolean

OnTransferPlanningLineToPOLineOnBeforeCheckFields

[IntegrationEvent(False,False)]
local procedure OnTransferPlanningLineToPOLineOnBeforeCheckFields(var OldRequisitionLine: Record "Requisition Line", var ProdOrderLine: Record "Prod. Order Line", TransferQty: Decimal, TransferAll: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
OldRequisitionLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TransferQty Decimal
TransferAll Boolean
IsHandled Boolean

OnTransferReqLineToPOLineOnBeforeTransfer

[IntegrationEvent(False,False)]
local procedure OnTransferReqLineToPOLineOnBeforeTransfer(var OldReservEntry: Record "Reservation Entry", var OldReqLine: Record "Requisition Line", var ProdOrderLine: Record "Prod. Order Line")

Parameters

Name Type Description
OldReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
OldReqLine Table Microsoft.Inventory.Requisition."Requisition Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"

See also