Share via


Codeunit "Reservation Management"

ID 99000845
Namespace: Microsoft.Inventory.Tracking

Properties

Name Value
Permissions TableData "Item Ledger Entry" = rm, TableData "Reservation Entry" = rimd, TableData "Action Message Entry" = rimd

Methods

IsPositive

procedure IsPositive(): Boolean

Returns

Type Description
Boolean

FormatQty

procedure FormatQty(Quantity: Decimal): Decimal

Parameters

Name Type Description
Quantity Decimal

Returns

Type Description
Decimal

SetCalcReservEntry

procedure SetCalcReservEntry(TrackingSpecification: Record "Tracking Specification", var ReservEntry: Record "Reservation Entry")

Parameters

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

SetOrderTrackingSurplusEntries

procedure SetOrderTrackingSurplusEntries(var TempReservEntry: Record "Reservation Entry" temporary)

Parameters

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

SetReservSource

procedure SetReservSource(NewRecordVar: Variant)

Parameters

Name Type Description
NewRecordVar Variant

SetReservSource

procedure SetReservSource(NewRecordVar: Variant, Direction: Enum "Transfer Direction")

Parameters

Name Type Description
NewRecordVar Variant
Direction Enum Microsoft.Foundation.Enums."Transfer Direction"

SetReservSource

procedure SetReservSource(NewSourceRecRef: RecordRef)

Parameters

Name Type Description
NewSourceRecRef RecordRef

SetReservSource

procedure SetReservSource(NewSourceRecRef: RecordRef, Direction: Enum "Transfer Direction")

Parameters

Name Type Description
NewSourceRecRef RecordRef
Direction Enum Microsoft.Foundation.Enums."Transfer Direction"

SetExternalDocumentResEntry

procedure SetExternalDocumentResEntry(ReservEntry: Record "Reservation Entry", UpdReservation: Boolean)

Parameters

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

UpdateReservation

procedure UpdateReservation(EntryIsPositive: Boolean)

Parameters

Name Type Description
EntryIsPositive Boolean

UpdateStatistics

procedure UpdateStatistics(var TempEntrySummary: Record "Entry Summary" temporary, AvailabilityDate: Date, HandleItemTracking2: Boolean)

Parameters

Name Type Description
TempEntrySummary Table Microsoft.Inventory.Tracking."Entry Summary"
AvailabilityDate Date
HandleItemTracking2 Boolean

AutoReserve

procedure AutoReserve(var FullAutoReservation: Boolean, Description: Text[100], AvailabilityDate: Date, MaxQtyToReserve: Decimal, MaxQtyToReserveBase: Decimal)

Parameters

Name Type Description
FullAutoReservation Boolean
Description Text[100]
AvailabilityDate Date
MaxQtyToReserve Decimal
MaxQtyToReserveBase Decimal

AutoReserveOneLine

procedure AutoReserveOneLine(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date)

Parameters

Name Type Description
ReservSummEntryNo Integer
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
Description Text[100]
AvailabilityDate Date

InsertReservationEntries

procedure InsertReservationEntries(var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, ReservQty: Decimal, Description: Text[100], ExpectedDate: Date, QtyThisLine: Decimal, QtyThisLineBase: Decimal, TrackingSpecification: Record "Tracking Specification"): Boolean

Parameters

Name Type Description
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
ReservQty Decimal
Description Text[100]
ExpectedDate Date
QtyThisLine Decimal
QtyThisLineBase Decimal
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

Returns

Type Description
Boolean

CreateReservation

procedure CreateReservation(Description: Text[100], ExpectedDate: Date, Quantity: Decimal, QuantityBase: Decimal, TrackingSpecification: Record "Tracking Specification")

Parameters

Name Type Description
Description Text[100]
ExpectedDate Date
Quantity Decimal
QuantityBase Decimal
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"

DeleteReservEntries

procedure DeleteReservEntries(DeleteAll: Boolean, DownToQuantity: Decimal)

Parameters

Name Type Description
DeleteAll Boolean
DownToQuantity Decimal

DeleteReservEntries

procedure DeleteReservEntries(DeleteAll: Boolean, DownToQuantity: Decimal, var ReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
DeleteAll Boolean
DownToQuantity Decimal
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

CalculateRemainingQty

procedure CalculateRemainingQty(var RemainingQty: Decimal, var RemainingQtyBase: Decimal)

Parameters

Name Type Description
RemainingQty Decimal
RemainingQtyBase Decimal

GetAvailabilityFilter

procedure GetAvailabilityFilter(AvailabilityDate: Date): Text[80]

Parameters

Name Type Description
AvailabilityDate Date

Returns

Type Description
Text[80]

CopySign

procedure CopySign(FromValue: Decimal, var ToValue: Decimal)

Parameters

Name Type Description
FromValue Decimal
ToValue Decimal

ClearSurplus

procedure ClearSurplus()

AutoTrack

procedure AutoTrack(TotalQty: Decimal)

Parameters

Name Type Description
TotalQty Decimal

MatchSurplus

procedure MatchSurplus(var ReservEntry: Record "Reservation Entry", var SurplusEntry: Record "Reservation Entry", QtyToTrack: Decimal, SearchForSupply: Boolean, var AvailabilityDate: Date, TrackingPolicy: Enum "Order Tracking Policy"): Decimal

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SurplusEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
QtyToTrack Decimal
SearchForSupply Boolean
AvailabilityDate Date
TrackingPolicy Enum Microsoft.Inventory.Tracking."Order Tracking Policy"

Returns

Type Description
Decimal

ModifyUnitOfMeasure

procedure ModifyUnitOfMeasure()

MakeRoomForReservation

procedure MakeRoomForReservation(var ReservEntry: Record "Reservation Entry")

Parameters

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

CollectTrackingSpecification

procedure CollectTrackingSpecification(var TargetTrackingSpecification: Record "Tracking Specification" temporary): Boolean

Parameters

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

Returns

Type Description
Boolean

SourceQuantity

procedure SourceQuantity(var ReservEntry: Record "Reservation Entry", SetAsCurrent: Boolean): Decimal

Parameters

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

Returns

Type Description
Decimal

FilterReservFor

procedure FilterReservFor(SourceRecRef: RecordRef, var ReservEntry: Record "Reservation Entry", Direction: Enum "Transfer Direction"): Text

Parameters

Name Type Description
SourceRecRef RecordRef
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Direction Enum Microsoft.Foundation.Enums."Transfer Direction"

Returns

Type Description
Text

GetSourceRecordValue

procedure GetSourceRecordValue(var ReservEntry: Record "Reservation Entry", SetAsCurrent: Boolean, ReturnOption: Option): Decimal

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SetAsCurrent Boolean
ReturnOption Option

Returns

Type Description
Decimal

MarkReservConnection

procedure MarkReservConnection(var ReservEntry: Record "Reservation Entry", TargetReservEntry: Record "Reservation Entry"): Decimal

Parameters

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

Returns

Type Description
Decimal

IssueActionMessage

procedure IssueActionMessage(var SurplusEntry: Record "Reservation Entry", UseGlobalSettings: Boolean, AllDeletedEntry: Record "Reservation Entry")

Parameters

Name Type Description
SurplusEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
UseGlobalSettings Boolean
AllDeletedEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

ModifyActionMessage

procedure ModifyActionMessage(RelatedToEntryNo: Integer, Quantity: Decimal, DoDelete: Boolean)

Parameters

Name Type Description
RelatedToEntryNo Integer
Quantity Decimal
DoDelete Boolean

FindDate

procedure FindDate(var ReservEntry: Record "Reservation Entry", Which: Option, ReturnRecord: Boolean): Date

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Which Option
ReturnRecord Boolean

Returns

Type Description
Date

ClearActionMessageReferences

procedure ClearActionMessageReferences()

SetItemTrackingHandling

procedure SetItemTrackingHandling(Mode: Option)

Parameters

Name Type Description
Mode Option

DeleteItemTrackingConfirm

procedure DeleteItemTrackingConfirm(): Boolean

Returns

Type Description
Boolean

SetTrackingFromReservEntry

procedure SetTrackingFromReservEntry(ReservEntry: Record "Reservation Entry")

Parameters

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

SetTrackingFromWhseActivityLine

procedure SetTrackingFromWhseActivityLine(WhseActivityLine: Record "Warehouse Activity Line")

Parameters

Name Type Description
WhseActivityLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"

SetMatchFilter

procedure SetMatchFilter(var ReservEntry: Record "Reservation Entry", var FilterReservEntry: Record "Reservation Entry", SearchForSupply: Boolean, AvailabilityDate: Date)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
FilterReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SearchForSupply Boolean
AvailabilityDate Date

LookupLine

procedure LookupLine(SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer)

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer

LookupDocument

procedure LookupDocument(SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer)

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer

CalcIsAvailTrackedQtyInBin

procedure CalcIsAvailTrackedQtyInBin(ItemNo: Code[20], BinCode: Code[20], LocationCode: Code[10], VariantCode: Code[10], SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer): Boolean

Parameters

Name Type Description
ItemNo Code[20]
BinCode Code[20]
LocationCode Code[10]
VariantCode Code[10]
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer

Returns

Type Description
Boolean

AutoReserveToShip

procedure AutoReserveToShip(var FullAutoReservation: Boolean, Description: Text[100], AvailabilityDate: Date, QuantityToShip: Decimal, QuantityToShipBase: Decimal)

Parameters

Name Type Description
FullAutoReservation Boolean
Description Text[100]
AvailabilityDate Date
QuantityToShip Decimal
QuantityToShipBase Decimal

DeleteDocumentReservation

procedure DeleteDocumentReservation(TableID: Integer, DocType: Option, DocNo: Code[20], HideValidationDialog: Boolean)

Parameters

Name Type Description
TableID Integer
DocType Option
DocNo Code[20]
HideValidationDialog Boolean

SetQtyToReserveDownToTrackedQuantity

procedure SetQtyToReserveDownToTrackedQuantity(ReservEntry: Record "Reservation Entry", RowID: Text[250], var QtyThisLine: Decimal, var QtyThisLineBase: Decimal)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
RowID Text[250]
QtyThisLine Decimal
QtyThisLineBase Decimal

SetReservedQtyDownToTrackedQuantity

procedure SetReservedQtyDownToTrackedQuantity(ReservEntry: Record "Reservation Entry", RowID: Text[250], var ReserveQty: Decimal)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
RowID Text[250]
ReserveQty Decimal

FindUnfinishedSpecialOrderSalesNo

procedure FindUnfinishedSpecialOrderSalesNo(ItemLedgerEntry: Record "Item Ledger Entry"): Code[20]

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

Returns

Type Description
Code[20]

GetMinAbs

procedure GetMinAbs(Value1: Decimal, Value2: Decimal): Decimal

Parameters

Name Type Description
Value1 Decimal
Value2 Decimal

Returns

Type Description
Decimal

GetSign

procedure GetSign(Value: Decimal): Integer

Parameters

Name Type Description
Value Decimal

Returns

Type Description
Integer

TestItemType

procedure TestItemType(SourceRecRef: RecordRef)

Parameters

Name Type Description
SourceRecRef RecordRef

Events

OnAfterAutoReserve

[IntegrationEvent(False,False)]
local procedure OnAfterAutoReserve(var ReservationEntry: Record "Reservation Entry", var FullAutoReservation: Boolean)

Parameters

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

OnAfterAutoReserveOneLine

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

Parameters

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

OnAfterAutoReservePurchLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit PurchLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit PurchLineReserve,25.0)]
local procedure OnAfterAutoReservePurchLine(var PurchLine: Record "Purchase Line", ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
ReservSummEntryNo Integer
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
Description Text[100]
AvailabilityDate Date

OnAfterCalcReservation

[IntegrationEvent(False,False)]
local procedure OnAfterCalcReservation(var ReservEntry: Record "Reservation Entry", var ItemLedgEntry: Record "Item Ledger Entry", var ResSummEntryNo: Integer, var QtyThisLine: Decimal, var QtyThisLineBase: Decimal, TotalAvailQty: Decimal)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ResSummEntryNo Integer
QtyThisLine Decimal
QtyThisLineBase Decimal
TotalAvailQty Decimal

OnAfterAutoReserveItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAfterAutoReserveItemLedgEntry(var CalcItemLedgEntry: Record "Item Ledger Entry", var RemainingQtyToReserveBase: Decimal)

Parameters

Name Type Description
CalcItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
RemainingQtyToReserveBase Decimal

OnAfterGetAvailabilityFilter2

[IntegrationEvent(False,False)]
local procedure OnAfterGetAvailabilityFilter2(var ReservationEntry: Record "Reservation Entry", AvailabilityDate: Date, SearchForSupply: Boolean, var Result: Text[80])

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AvailabilityDate Date
SearchForSupply Boolean
Result Text[80]

OnAfterInsertReservationEntries

[IntegrationEvent(False,False)]
local procedure OnAfterInsertReservationEntries(var TrackingSpecification: Record "Tracking Specification", var CalcReservEntry: Record "Reservation Entry", var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, var QtyThisLine: Decimal, var QtyThisLineBase: Decimal, var ReservationCreated: Boolean)

Parameters

Name Type Description
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
QtyThisLine Decimal
QtyThisLineBase Decimal
ReservationCreated Boolean

OnBeforeAutoReserveOneLine

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserveOneLine(var IsHandled: Boolean, var AvailabilityDate: Date, var CalcReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
IsHandled Boolean
AvailabilityDate Date
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnBeforeCalcIsAvailTrackedQtyInBin

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcIsAvailTrackedQtyInBin(ItemNo: Code[20], BinCode: Code[20], LocationCode: Code[10], VariantCode: Code[10], var Result: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
ItemNo Code[20]
BinCode Code[20]
LocationCode Code[10]
VariantCode Code[10]
Result Boolean
IsHandled Boolean

OnBeforeDeleteDocumentReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteDocumentReservation(TableID: Integer, DocType: Option, DocNo: Code[20], var HideValidationDialog: Boolean)

Parameters

Name Type Description
TableID Integer
DocType Option
DocNo Code[20]
HideValidationDialog Boolean

OnBeforeMakeRoomForReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeMakeRoomForReservation(var ReservationEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

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

OnBeforeSetValueArray

[IntegrationEvent(False,False)]
local procedure OnBeforeSetValueArray(EntryStatus: Option, var ValueArray: array[30] of Integer, var ArrayCounter: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
EntryStatus Option
ValueArray array[30] of Integer
ArrayCounter Integer
IsHandled Boolean

OnBeforeUpdateStatistics

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateStatistics(var AvailabilityDate: Date)

Parameters

Name Type Description
AvailabilityDate Date

OnAfterInitFilter

[IntegrationEvent(True,False)]
local procedure OnAfterInitFilter(var CalcReservEntry: Record "Reservation Entry", EntryID: Integer)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryID Integer

OnAfterSaveTrackingSpecification

[IntegrationEvent(False,False)]
local procedure OnAfterSaveTrackingSpecification(var ReservationEntry: Record "Reservation Entry", var TrackingSpecification: Record "Tracking Specification", QtyReleased: Decimal)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
QtyReleased Decimal

OnAfterSetReservSource

[IntegrationEvent(False,False)]
local procedure OnAfterSetReservSource(var SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var Direction: Enum "Transfer Direction")

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Direction Enum Microsoft.Foundation.Enums."Transfer Direction"

OnAfterSetValueArray

[IntegrationEvent(False,False)]
local procedure OnAfterSetValueArray(EntryStatus: Option, var ValueArray: array[30] of Integer, var ArrayCounter: Integer)

Parameters

Name Type Description
EntryStatus Option
ValueArray array[30] of Integer
ArrayCounter Integer

OnAfterUpdateStatistics

[IntegrationEvent(False,False)]
local procedure OnAfterUpdateStatistics(var ReservEntrySummary: Record "Entry Summary" temporary, AvailabilityDate: Date, var CalcSumValue: Decimal)

Parameters

Name Type Description
ReservEntrySummary Table Microsoft.Inventory.Tracking."Entry Summary"
AvailabilityDate Date
CalcSumValue Decimal

OnAutoReserveItemLedgEntryOnFindFirstItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAutoReserveItemLedgEntryOnFindFirstItemLedgEntry(CalcReservEntry: Record "Reservation Entry", var CalcItemLedgEntry: Record "Item Ledger Entry", var InvSearch: Text[1], var IsHandled: Boolean, var IsFound: Boolean)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
InvSearch Text[1]
IsHandled Boolean
IsFound Boolean

OnAutoReserveOnBeforeStopReservation

[IntegrationEvent(False,False)]
local procedure OnAutoReserveOnBeforeStopReservation(var CalcReservEntry: Record "Reservation Entry", var FullAutoReservation: Boolean, var AvailabilityDate: Date, var MaxQtyToReserve: Decimal, var MaxQtyToReserveBase: Decimal, var StopReservation: Boolean, SourceRecRef: RecordRef)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
FullAutoReservation Boolean
AvailabilityDate Date
MaxQtyToReserve Decimal
MaxQtyToReserveBase Decimal
StopReservation Boolean
SourceRecRef RecordRef

OnAutoReserveOnBeforeSetValueArray

[IntegrationEvent(False,False)]
local procedure OnAutoReserveOnBeforeSetValueArray(var ValueArrayNo: Integer, AvailabilityDate: Date)

Parameters

Name Type Description
ValueArrayNo Integer
AvailabilityDate Date

OnAutoReserveOneLineOnAfterUpdateSearchNextStep

[IntegrationEvent(False,False)]
local procedure OnAutoReserveOneLineOnAfterUpdateSearchNextStep(var Item: Record Item, var Positive: Boolean, var Search: Text[1], var NextStep: Integer, var InvSearch: Text[1], InvNextStep: Integer, var RemainingQtyToReserve: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
Positive Boolean
Search Text[1]
NextStep Integer
InvSearch Text[1]
InvNextStep Integer
RemainingQtyToReserve Decimal

OnAutoReserveItemLedgEntryOnFindNextItemLedgEntry

[IntegrationEvent(False,False)]
local procedure OnAutoReserveItemLedgEntryOnFindNextItemLedgEntry(CalcReservEntry: Record "Reservation Entry", var CalcItemLedgEntry: Record "Item Ledger Entry", var InvSearch: Text[1], var IsHandled: Boolean, var IsFound: Boolean)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
InvSearch Text[1]
IsHandled Boolean
IsFound Boolean

OnAfterSetSourceForSalesLine

[IntegrationEvent(False,False)]
local procedure OnAfterSetSourceForSalesLine(var CalcReservEntry: Record "Reservation Entry", SalesLine: Record "Sales Line")

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnBeforeAutoReserve

[IntegrationEvent(False,False)]
local procedure OnBeforeAutoReserve(var CalcReservEntry: Record "Reservation Entry", var FullAutoReservation: Boolean, var Description: Text[100], var AvailabilityDate: Date, var MaxQtyToReserve: Decimal, var MaxQtyToReserveBase: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
FullAutoReservation Boolean
Description Text[100]
AvailabilityDate Date
MaxQtyToReserve Decimal
MaxQtyToReserveBase Decimal
IsHandled Boolean

OnBeforeAutoReserveItemLedgEntry

[IntegrationEvent(True,False)]
local procedure OnBeforeAutoReserveItemLedgEntry(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date, var IsReserved: Boolean, CalcReservEntry: Record "Reservation Entry", var CalcItemLedgerEntry: Record "Item Ledger Entry", var ItemTrackingCode: Record "Item Tracking Code", Positive: Boolean)

Parameters

Name Type Description
ReservSummEntryNo Integer
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
Description Text[100]
AvailabilityDate Date
IsReserved Boolean
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
Positive Boolean

OnBeforeAutoReservePurchLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit PurchLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit PurchLineReserve,25.0)]
local procedure OnBeforeAutoReservePurchLine(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date, var IsReserved: Boolean, var Search: Text[1], var 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"

OnBeforeAutoReserveSalesLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit SalesLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit SalesLineReserve,25.0)]
local procedure OnBeforeAutoReserveSalesLine(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"

OnBeforeAutoReserveProdOrderLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit ProdOrderLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit ProdOrderLineReserve,25.0)]
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"

OnBeforeAutoReserveProdOrderComp

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit ProdCompLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit ProdCompLineReserve,25.0)]
local procedure OnBeforeAutoReserveProdOrderComp(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"

OnBeforeAutoReserveAssemblyHeader

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit AssemblyHeaderReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit AssemblyHeaderReserve,25.0)]
local procedure OnBeforeAutoReserveAssemblyHeader(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"

OnBeforeAutoReserveAssemblyLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit AssemblyLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit AssemblyLineReserve,25.0)]
local procedure OnBeforeAutoReserveAssemblyLine(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"

OnBeforeAutoReserveTransLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit TransLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit TransLineReserve,25.0)]
local procedure OnBeforeAutoReserveTransLine(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date, var IsReserved: Boolean, var Search: Text[1], var 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"

OnBeforeAutoReserveServLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit ServiceLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit ServiceLineReserve,25.0)]
local procedure OnBeforeAutoReserveServLine(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"

OnBeforeAutoReserveJobPlanningLine

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit JobPlanningLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit JobPlanningLineReserve,25.0)]
local procedure OnBeforeAutoReserveJobPlanningLine(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"

OnBeforeCalcAvailAllocQuantities

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcAvailAllocQuantities(Item: Record Item, WhseActivLine: Record "Warehouse Activity Line", QtyOnOutboundBins: Decimal, QtyOnInvtMovement: Decimal, QtyOnSpecialBins: Decimal, var AvailQty: Decimal, var AllocQty: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
WhseActivLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
QtyOnOutboundBins Decimal
QtyOnInvtMovement Decimal
QtyOnSpecialBins Decimal
AvailQty Decimal
AllocQty Decimal
IsHandled Boolean

OnBeforeCreateReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateReservation(var TrkgSpec: Record "Tracking Specification", var ReservEntry: Record "Reservation Entry", var ItemLedgEntry: Record "Item Ledger Entry")

Parameters

Name Type Description
TrkgSpec Table Microsoft.Inventory.Tracking."Tracking Specification"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"

OnBeforeDeleteItemTrackingConfirm

[IntegrationEvent(True,False)]
local procedure OnBeforeDeleteItemTrackingConfirm(var CalcReservEntry2: Record "Reservation Entry", var IsHandled: Boolean, var Result: Boolean)

Parameters

Name Type Description
CalcReservEntry2 Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean
Result Boolean

OnBeforeDeleteReservEntries

[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteReservEntries(var ReservationEntry: Record "Reservation Entry", var DownToQuantity: Decimal, CalcReservEntry: Record "Reservation Entry", var CalcReservEntry2: Record "Reservation Entry", var IsHandled: Boolean, var ItemTrackingHandling: Option)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
DownToQuantity Decimal
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcReservEntry2 Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean
ItemTrackingHandling Option

OnBeforeFindUnfinishedSpecialOrderSalesNo

[IntegrationEvent(False,False)]
local procedure OnBeforeFindUnfinishedSpecialOrderSalesNo(ItemLedgerEntry: Record "Item Ledger Entry", var Result: Code[20], var IsHandled: Boolean)

Parameters

Name Type Description
ItemLedgerEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
Result Code[20]
IsHandled Boolean

OnBeforeLookupDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeLookupDocument(SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer
IsHandled Boolean

OnBeforeUpdateItemLedgEntryStats

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateItemLedgEntryStats(var CalcReservEntry: Record "Reservation Entry")

Parameters

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

OnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnBeforeUpdateReservation(var SourceRecRef: RecordRef, var ReservEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean

OnCalculateRemainingQty

[IntegrationEvent(False,False)]
local procedure OnCalculateRemainingQty(SourceRecRef: RecordRef, var ReservEntry: Record "Reservation Entry", var RemainingQty: Decimal, var RemainingQtyBase: Decimal)

Parameters

Name Type Description
SourceRecRef RecordRef
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
RemainingQty Decimal
RemainingQtyBase Decimal

OnCalcReservedQtyOnPickOnBeforeSetItemVariantCodeFilter

[IntegrationEvent(False,False)]
local procedure OnCalcReservedQtyOnPickOnBeforeSetItemVariantCodeFilter(var Item: Record Item, var ReservationEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

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

OnCalcReservedQtyOnPickOnBeforeSetWhseActivLineVariantCodeFilter

[IntegrationEvent(False,False)]
local procedure OnCalcReservedQtyOnPickOnBeforeSetWhseActivLineVariantCodeFilter(var WnseActivLine: Record "Warehouse Activity Line", var ReservationEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

Name Type Description
WnseActivLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean

OnClearSurplusOnAfterReservEntry2SetFilters

[IntegrationEvent(False,False)]
local procedure OnClearSurplusOnAfterReservEntry2SetFilters(var ReservationEntry: Record "Reservation Entry", ItemTrackingHandling: Option)

Parameters

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

OnClearSurplusOnBeforeReservEntry2FindSet

[IntegrationEvent(False,False)]
local procedure OnClearSurplusOnBeforeReservEntry2FindSet(var ReservationEntry: Record "Reservation Entry")

Parameters

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

OnCreateReservation

[IntegrationEvent(False,False)]
local procedure OnCreateReservation(SourceRecRef: RecordRef, TrackingSpecification: Record "Tracking Specification", ForReservEntry: Record "Reservation Entry", Description: Text[100], ExpectedDate: Date, Quantity: Decimal, QuantityBase: Decimal)

Parameters

Name Type Description
SourceRecRef RecordRef
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
ForReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Description Text[100]
ExpectedDate Date
Quantity Decimal
QuantityBase Decimal

OnGetDocumentReservationDeleteQstOnElseCase

[IntegrationEvent(False,False)]
local procedure OnGetDocumentReservationDeleteQstOnElseCase(RecRef: RecordRef, FldRef: FieldRef, DocType: Integer, var DocTypeCaption: Text, var IsHandled: Boolean, DocNo: Code[20], var Question: Text)

Parameters

Name Type Description
RecRef RecordRef
FldRef FieldRef
DocType Integer
DocTypeCaption Text
IsHandled Boolean
DocNo Code[20]
Question Text

OnDeleteReservEntriesOnAfterReservEntrySetFilters

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

Parameters

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

OnDeleteDocumentReservationOnAfterReservEntry2Modify

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

Parameters

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

OnGetSourceRecordValue

[IntegrationEvent(False,False)]
local procedure OnGetSourceRecordValue(var ReservEntry: Record "Reservation Entry", SetAsCurrent: Boolean, ReturnOption: Option, var ReturnQty: Decimal, var SourceRecRef: RecordRef, var IsHandled: Boolean)

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SetAsCurrent Boolean
ReturnOption Option
ReturnQty Decimal
SourceRecRef RecordRef
IsHandled Boolean

OnFilterReservFor

[IntegrationEvent(False,False)]
local procedure OnFilterReservFor(SourceRecRef: RecordRef, var ReservEntry: Record "Reservation Entry", Direction: Integer, var CaptionText: Text)

Parameters

Name Type Description
SourceRecRef RecordRef
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Direction Integer
CaptionText Text

OnInsertReservationEntriesOnBeforeCreateReservation

[IntegrationEvent(False,False)]
local procedure OnInsertReservationEntriesOnBeforeCreateReservation(var TrackingSpecification: Record "Tracking Specification", var CalcReservEntry: Record "Reservation Entry")

Parameters

Name Type Description
TrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"

OnLookupDocument

[IntegrationEvent(False,False)]
local procedure OnLookupDocument(SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer)

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer

OnLookupLine

[IntegrationEvent(False,False)]
local procedure OnLookupLine(SourceType: Integer, SourceSubtype: Integer, SourceID: Code[20], SourceBatchName: Code[10], SourceProdOrderLine: Integer, SourceRefNo: Integer)

Parameters

Name Type Description
SourceType Integer
SourceSubtype Integer
SourceID Code[20]
SourceBatchName Code[10]
SourceProdOrderLine Integer
SourceRefNo Integer

OnSetAssemblyHeaderOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit AssemblyHeaderReserve

[Obsolete(Moved to codeunit AssemblyHeaderReserve,26.0)]
[IntegrationEvent(False,False)]
local procedure OnSetAssemblyHeaderOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", AssemblyHeader: Record "Assembly Header")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AssemblyHeader Table Microsoft.Assembly.Document."Assembly Header"

OnSetAssemblyLineOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit AssemblyHeaderReserve

[Obsolete(Moved to codeunit AssemblyHeaderReserve,26.0)]
[IntegrationEvent(False,False)]
local procedure OnSetAssemblyLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", AssemblyLine: Record "Assembly Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AssemblyLine Table Microsoft.Assembly.Document."Assembly Line"

OnSetItemJnlLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetItemJnlLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ItemJnlLine: Record "Item Journal Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ItemJnlLine Table Microsoft.Inventory.Journal."Item Journal Line"

OnSetItemLedgEntryOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetItemLedgEntryOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ItemLedgerEntry: Record "Item Ledger Entry")

Parameters

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

OnSetJobPlanningLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetJobPlanningLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", JobPlanningLine: Record "Job Planning Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
JobPlanningLine Table Microsoft.Projects.Project.Planning."Job Planning Line"

OnSetJobJnlLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetJobJnlLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", JobJnlLine: Record "Job Journal Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
JobJnlLine Table Microsoft.Projects.Project.Journal."Job Journal Line"

OnSetSalesLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetSalesLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", SalesLine: Record "Sales Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
SalesLine Table Microsoft.Sales.Document."Sales Line"

OnSetPlanningCompOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetPlanningCompOnBeforeUpdateReservation(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"

OnSetProdOrderLineOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit ProdOrderLineReserve

[Obsolete(Moved to codeunit ProdOrderLineReserve,26.0)]
[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"

OnSetProdOrderCompOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit ProdOrderCompReserve

[Obsolete(Moved to codeunit ProdOrderCompReserve,26.0)]
[IntegrationEvent(False,False)]
local procedure OnSetProdOrderCompOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ProdOrderComp: Record "Prod. Order Component")

Parameters

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

OnSetPurchLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetPurchLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", PurchLine: Record "Purchase Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
PurchLine Table Microsoft.Purchases.Document."Purchase Line"

OnSetReservSource

[IntegrationEvent(True,False)]
local procedure OnSetReservSource(SourceRecRef: RecordRef, var ReservEntry: Record "Reservation Entry", Direction: Enum "Transfer Direction", var RefOrderType: Enum "Requisition Ref. Order Type", var PlanningLineOrigin: Enum "Planning Line Origin Type", Positive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Direction Enum Microsoft.Foundation.Enums."Transfer Direction"
RefOrderType Enum Microsoft.Inventory.Requisition."Requisition Ref. Order Type"
PlanningLineOrigin Enum Microsoft.Inventory.Planning."Planning Line Origin Type"
Positive Boolean

OnSetReqLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetReqLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ReqLine: Record "Requisition Line")

Parameters

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

OnSetServLineOnBeforeUpdateReservation

Obsolete

This element will become obsolete from version 26.0. Moved to codeunit ServiceLineReserve

[Obsolete(Moved to codeunit ServiceLineReserve,26.0)]
[IntegrationEvent(False,False)]
local procedure OnSetServLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", ServiceLine: Record "Service Line")

Parameters

Name Type Description
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ServiceLine Table Microsoft.Service.Document."Service Line"

OnSetTransLineOnBeforeUpdateReservation

[IntegrationEvent(False,False)]
local procedure OnSetTransLineOnBeforeUpdateReservation(var ReservEntry: Record "Reservation Entry", TransferLine: Record "Transfer Line")

Parameters

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

OnUpdateItemLedgEntryStatsOnBeforePrepareTempEntrySummary

[IntegrationEvent(False,False)]
local procedure OnUpdateItemLedgEntryStatsOnBeforePrepareTempEntrySummary(CalcReservationEntry: Record "Reservation Entry", var TempEntrySummary: Record "Entry Summary" temporary)

Parameters

Name Type Description
CalcReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
TempEntrySummary Table Microsoft.Inventory.Tracking."Entry Summary"

OnUpdateItemLedgEntryStatsUpdateTotals

[IntegrationEvent(False,False)]
local procedure OnUpdateItemLedgEntryStatsUpdateTotals(CalcReservEntry: Record "Reservation Entry", var CalcItemLedgEntry: Record "Item Ledger Entry", TotalAvailQty: Decimal, QtyOnOutBound: Decimal, var CalcSumValue: Decimal, var TempEntrySummary: Record "Entry Summary" temporary, var IsHandled: Boolean)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcItemLedgEntry Table Microsoft.Inventory.Ledger."Item Ledger Entry"
TotalAvailQty Decimal
QtyOnOutBound Decimal
CalcSumValue Decimal
TempEntrySummary Table Microsoft.Inventory.Tracking."Entry Summary"
IsHandled Boolean

OnUpdateItemTrackingLineStatsOnBeforeReservEntrySummaryInsert

[IntegrationEvent(False,False)]
local procedure OnUpdateItemTrackingLineStatsOnBeforeReservEntrySummaryInsert(var ReservEntrySummary: Record "Entry Summary" temporary, ReservationEntry: Record "Reservation Entry")

Parameters

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

OnUpdateItemTrackingLineStatsOnAfterReservEntrySetFilters

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

Parameters

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

OnUpdateStatistics

[IntegrationEvent(False,False)]
local procedure OnUpdateStatistics(CalcReservEntry: Record "Reservation Entry", var ReservSummEntry: Record "Entry Summary" temporary, AvailabilityDate: Date, Positive: Boolean, var TotalQuantity: Decimal, HandleItemTracking2: Boolean, var QtyOnOutBound: Decimal, ReservationSummaryType: Integer)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ReservSummEntry Table Microsoft.Inventory.Tracking."Entry Summary"
AvailabilityDate Date
Positive Boolean
TotalQuantity Decimal
HandleItemTracking2 Boolean
QtyOnOutBound Decimal
ReservationSummaryType Integer

OnAfterCalcReservedQtyOnPick

[IntegrationEvent(False,False)]
local procedure OnAfterCalcReservedQtyOnPick(var Item: Record Item, var WhseActivLine: Record "Warehouse Activity Line", var CalcReservEntry: Record "Reservation Entry", var AvailQty: Decimal, var AllocQty: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
WhseActivLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
AvailQty Decimal
AllocQty Decimal

OnBeforeCallCalcReservedQtyOnPick

[IntegrationEvent(False,False)]
local procedure OnBeforeCallCalcReservedQtyOnPick(CalcReservEntry: Record "Reservation Entry", Positive: Boolean, var ShouldCalsReservedQtyOnPick: Boolean)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Positive Boolean
ShouldCalsReservedQtyOnPick Boolean

OnBeforeCheckQuantityIsCompletelyReleased

[IntegrationEvent(False,False)]
local procedure OnBeforeCheckQuantityIsCompletelyReleased(ItemTrackingHandling: Option, QtyToRelease: Decimal, DeleteAll: Boolean, CurrentItemTrackingSetup: Record "Item Tracking Setup" temporary, ReservEntry: Record "Reservation Entry", var IsHandled: Boolean)

Parameters

Name Type Description
ItemTrackingHandling Option
QtyToRelease Decimal
DeleteAll Boolean
CurrentItemTrackingSetup Table Microsoft.Inventory.Tracking."Item Tracking Setup"
ReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean

OnBeforeReservedQuantityAssign

[IntegrationEvent(False,False)]
local procedure OnBeforeReservedQuantityAssign(ReservationEntry: Record "Reservation Entry", var ReservedQuantity: Decimal, SignFactor: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
ReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ReservedQuantity Decimal
SignFactor Integer
IsHandled Boolean

OnDeleteReservEntriesOnBeforeDeleteReservEntries

Obsolete

This element will become obsolete from version 26.0. Replaced by event OnBeforeDeleteReservEntries2

[Obsolete(Replaced by event OnBeforeDeleteReservEntries2,26.0)]
[IntegrationEvent(False,False)]
local procedure OnDeleteReservEntriesOnBeforeDeleteReservEntries(CalcReservEntry: Record "Reservation Entry", var CalcReservEntry2: Record "Reservation Entry", var IsHandled: Boolean, var Item: Record Item, var ItemTrackingCode: Record "Item Tracking Code", var SKU: Record "Stockkeeping Unit", var MfgSetup: Record "Manufacturing Setup", var Positive: Boolean, var Location: Record Location, var TotalAvailQty: Decimal, var QtyAllocInWhse: Decimal, var QtyReservedOnPickShip: Decimal)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcReservEntry2 Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean
Item Table Microsoft.Inventory.Item.Item
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
MfgSetup Table Microsoft.Manufacturing.Setup."Manufacturing Setup"
Positive Boolean
Location Table Microsoft.Inventory.Location.Location
TotalAvailQty Decimal
QtyAllocInWhse Decimal
QtyReservedOnPickShip Decimal

OnBeforeDeleteReservEntries2

[IntegrationEvent(False,False)]
local procedure OnBeforeDeleteReservEntries2(CalcReservEntry: Record "Reservation Entry", var CalcReservEntry2: Record "Reservation Entry", var IsHandled: Boolean, var Item: Record Item, var ItemTrackingCode: Record "Item Tracking Code", var SKU: Record "Stockkeeping Unit", var Positive: Boolean, var Location: Record Location, var TotalAvailQty: Decimal, var QtyAllocInWhse: Decimal, var QtyReservedOnPickShip: Decimal)

Parameters

Name Type Description
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
CalcReservEntry2 Table Microsoft.Inventory.Tracking."Reservation Entry"
IsHandled Boolean
Item Table Microsoft.Inventory.Item.Item
ItemTrackingCode Table Microsoft.Inventory.Tracking."Item Tracking Code"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
Positive Boolean
Location Table Microsoft.Inventory.Location.Location
TotalAvailQty Decimal
QtyAllocInWhse Decimal
QtyReservedOnPickShip Decimal

OnDeleteReservEntriesOnReservationOnAfterCalcReservEntry4Get

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

Parameters

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

OnAutoReservePurchLineOnBeforeSetQtyToReserveDownToTrackedQuantity

Obsolete

This element will become obsolete from version 25.0. Replaced by same event in codeunit PurchLineReserve

[IntegrationEvent(False,False)]
[Obsolete(Replaced by same event in codeunit PurchLineReserve,25.0)]
local procedure OnAutoReservePurchLineOnBeforeSetQtyToReserveDownToTrackedQuantity(PurchLine: Record "Purchase Line", CalcReservEntry: Record "Reservation Entry", var ReservQty: Decimal, var QtyThisLine: Decimal, var QtyThisLineBase: Decimal)

Parameters

Name Type Description
PurchLine Table Microsoft.Purchases.Document."Purchase Line"
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ReservQty Decimal
QtyThisLine Decimal
QtyThisLineBase Decimal

OnDeleteReservEntriesOnBeforeReservEntryTestField

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

Parameters

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

OnAfterFinishedAutoReserveOneLine

[IntegrationEvent(False,False)]
local procedure OnAfterFinishedAutoReserveOneLine(ReservSummEntryNo: Integer, var RemainingQtyToReserve: Decimal, var RemainingQtyToReserveBase: Decimal, Description: Text[100], AvailabilityDate: Date)

Parameters

Name Type Description
ReservSummEntryNo Integer
RemainingQtyToReserve Decimal
RemainingQtyToReserveBase Decimal
Description Text[100]
AvailabilityDate Date

OnDeleteReservEntriesOnAfterItemTrackingHandling

[IntegrationEvent(False,False)]
local procedure OnDeleteReservEntriesOnAfterItemTrackingHandling(var ReservationEntry: Record "Reservation Entry", var ItemTrackingHandling: Option)

Parameters

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

OnAutoTrackOnCheckSourceType

[IntegrationEvent(False,False)]
local procedure OnAutoTrackOnCheckSourceType(var ReservationEntry: Record "Reservation Entry", var ShouldExit: Boolean)

Parameters

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

OnTestItemType

[IntegrationEvent(False,False)]
local procedure OnTestItemType(SourceRecRef: RecordRef)

Parameters

Name Type Description
SourceRecRef RecordRef

OnIssueActionMessageOnSetSourceTypeFromSKU

[IntegrationEvent(False,False)]
local procedure OnIssueActionMessageOnSetSourceTypeFromSKU(var ActionMessageEntry: Record "Action Message Entry", SKU: Record "Stockkeeping Unit")

Parameters

Name Type Description
ActionMessageEntry Table Microsoft.Inventory.Tracking."Action Message Entry"
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnMakeConnectionOnBeforeCreateReservEntry

[IntegrationEvent(False,False)]
local procedure OnMakeConnectionOnBeforeCreateReservEntry(var FromReservationEntry: Record "Reservation Entry", var ToReservationEntry: Record "Reservation Entry", var Quantity: Decimal, ReservationStatus: Enum "Reservation Status", var AvailabilityDate: Date, ReservationBinding: Enum "Reservation Binding", var FromTrackingSpecification: Record "Tracking Specification", var Sign: Integer, var IsHandled: Boolean)

Parameters

Name Type Description
FromReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
ToReservationEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
Quantity Decimal
ReservationStatus Enum Microsoft.Inventory.Tracking."Reservation Status"
AvailabilityDate Date
ReservationBinding Enum Microsoft.Inventory.Tracking."Reservation Binding"
FromTrackingSpecification Table Microsoft.Inventory.Tracking."Tracking Specification"
Sign Integer
IsHandled Boolean

OnDeleteReservEntriesOnAfterModifyReservEntryReservationStatusSurplus

[IntegrationEvent(False,False)]
local procedure OnDeleteReservEntriesOnAfterModifyReservEntryReservationStatusSurplus(var ReservationEntry: Record "Reservation Entry", QtyToRelease: Decimal)

Parameters

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

OnAfterSetValueArrayForReservation

[IntegrationEvent(False,False)]
local procedure OnAfterSetValueArrayForReservation(var ValueArray: array[30] of Integer, var ArrayCounter: Integer)

Parameters

Name Type Description
ValueArray array[30] of Integer
ArrayCounter Integer

OnAfterSetValueArrayForOrderTracking

[IntegrationEvent(False,False)]
local procedure OnAfterSetValueArrayForOrderTracking(var ValueArray: array[30] of Integer, var ArrayCounter: Integer)

Parameters

Name Type Description
ValueArray array[30] of Integer
ArrayCounter Integer

OnSetSourceForAssemblyHeader

[IntegrationEvent(False,False)]
local procedure OnSetSourceForAssemblyHeader(SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var EntryIsPositive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryIsPositive Boolean

OnSetSourceForAssemblyLine

[IntegrationEvent(False,False)]
local procedure OnSetSourceForAssemblyLine(SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var EntryIsPositive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryIsPositive Boolean

OnSetSourceForProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnSetSourceForProdOrderLine(SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var EntryIsPositive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryIsPositive Boolean

OnSetSourceForProdOrderComp

[IntegrationEvent(False,False)]
local procedure OnSetSourceForProdOrderComp(SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var EntryIsPositive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryIsPositive Boolean

OnSetSourceForServiceLine

[IntegrationEvent(False,False)]
local procedure OnSetSourceForServiceLine(SourceRecRef: RecordRef, var CalcReservEntry: Record "Reservation Entry", var EntryIsPositive: Boolean)

Parameters

Name Type Description
SourceRecRef RecordRef
CalcReservEntry Table Microsoft.Inventory.Tracking."Reservation Entry"
EntryIsPositive Boolean

OnGetDefaultDampenerPeriod

[IntegrationEvent(False,False)]
local procedure OnGetDefaultDampenerPeriod(var DampenerPeriod: DateFormula)

Parameters

Name Type Description
DampenerPeriod DateFormula

See also