---
title: "Codeunit 99000834 Purch. Line-Reserve"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/99000834-purch-line-reserve/
type: codeunit
id: 99000834
name: "Purch. Line-Reserve"
app: "Base Application"
namespace: Microsoft.Purchases.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/99000834-purch-line-reserve/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 99000834 Purch. Line-Reserve

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/99000834-purch-line-reserve/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Purchases.Document |
| Versions | 17-28 |
| Source file | Purchases/Document/PurchLineReserve.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateReservation | (var Record Purchase Line, Text[100], Date, Decimal, Decimal, Record Reservation Entry) | - | public | 17-28 | - | - |
| CreateReservation | (var Record Purchase Line, Text[100], Date, Decimal, Decimal, Code[50], Code[50]) | - | public | 17-18 | Pending 16.0 | Replaced by CreateReservation(PurchaseLine, Description, ExpectedReceiptDate, Quantity, QuantityBase, ForReservEntry) |
| CreateReservationSetFrom | (Record Tracking Specification) | - | public | 17-28 | - | - |
| FilterReservFor | (var Record Reservation Entry, Record Purchase Line) | - | public | 17-18 | Pending 16.0 | Replaced by PurchLine.SetReservationFilters(FilterReservEntry) |
| ReservQuantity | (Record Purchase Line) | Decimal | public | 17-28 | - | - |
| Caption | (Record Purchase Line) | Text | public | 17-28 | - | - |
| FindReservEntry | (Record Purchase Line, var Record Reservation Entry) | Boolean | public | 17-28 | - | - |
| ReservEntryExist | (Record Purchase Line) | Boolean | public | 17-28 | - | - |
| VerifyChange | (var Record Purchase Line, var Record Purchase Line) | - | public | 17-28 | - | - |
| VerifyQuantity | (var Record Purchase Line, var Record Purchase Line) | - | public | 17-28 | - | - |
| UpdatePlanningFlexibility | (var Record Purchase Line) | - | public | 17-28 | - | - |
| TransferPurchLineToItemJnlLine | (var Record Purchase Line, var Record Item Journal Line, Decimal, var Boolean) | Decimal | public | 17-28 | - | - |
| TransferPurchLineToPurchLine | (var Record Purchase Line, var Record Purchase Line, Decimal) | - | public | 17-28 | - | - |
| DeleteLineConfirm | (var Record Purchase Line) | Boolean | public | 17-28 | - | - |
| DeleteLine | (var Record Purchase Line) | - | public | 17-28 | - | - |
| Block | (Boolean) | - | public | 17-28 | - | - |
| CallItemTracking | (var Record Purchase Line) | - | public | 17-28 | - | - |
| CallItemTracking | (var Record Purchase Line, Decimal) | - | public | 17-28 | - | - |
| RetrieveInvoiceSpecification | (var Record Purchase Line, var Record Tracking Specification) | Boolean | public | 17-28 | - | - |
| DeleteInvoiceSpecFromHeader | (Record Purchase Header) | - | public | 17-28 | - | - |
| DeleteInvoiceSpecFromLine | (Record Purchase Line) | - | public | 17-28 | - | - |
| UpdateItemTrackingAfterPosting | (Record Purchase Header) | - | public | 17-28 | - | - |
| SetApplySpecificItemTracking | (Boolean) | - | public | 17-28 | - | - |
| SetOverruleItemTracking | (Boolean) | - | public | 17-28 | - | - |
| RetrieveInvoiceSpecification2 | (var Record Purchase Line, var Record Tracking Specification) | Boolean | public | 21-28 | - | - |
| GetReservedQtyFromInventory | (Record Purchase Line) | Decimal | public | 23-28 | - | - |
| GetReservedQtyFromInventory | (Record Purchase Header) | Decimal | public | 23-28 | - | - |
| InitFromPurchLine | (var Record Tracking Specification, Record Purchase Line) | - | public | 25-28 | - | - |
| CallItemTracking | (var Record Purchase Line, Text) | - | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnVerifyChangeOnBeforeHasError | (Record Purchase Line, Record Purchase Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnTransferPurchLineToPurchLineOnAfterOldReservEntrySetFilters | (var Record Purchase Line, var Record Purchase Line) | 17-28 | - | - |
| Integration event | OnVerifyChangeOnBeforeTestVariantCode | (var Record Purchase Line, var Record Purchase Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCallItemTrackingOnBeforeItemTrackingFormRunModal | (var Record Purchase Line, var Page Item Tracking Lines) | 17-28 | - | - |
| Integration event | OnAfterUpdateItemTrackingAfterPosting | (var Record Purchase Header) | 18-28 | - | - |
| Integration event | OnBeforeTransferPurchLineToItemJnlLineReservEntry | (var Record Reservation Entry, Record Purchase Line, Record Item Journal Line, var Decimal, var Boolean) | 18-28 | - | - |
| Integration event | OnRetrieveInvoiceSpecification2OnBeforeInsert | (var Record Tracking Specification, Record Reservation Entry) | 18-28 | - | - |
| Integration event | OnBeforeCreateReservation | (var Record Purchase Line) | 19-28 | - | - |
| Integration event | OnBeforeRunItemTrackingLinesPage | (var Page Item Tracking Lines, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeVerifyQuantity | (Record Purchase Line, var Boolean) | 19-21 | - | - |
| Integration event | OnUpdateStatisticsOnBeforeCheckSpecialOrder | (var Record Purchase Line) | 19-28 | - | - |
| Integration event | OnBeforeAssignForPlanning | (Record Purchase Line, var Boolean) | 19-28 | - | - |
| Integration event | OnBeforeRetrieveInvoiceSpecification | (Record Purchase Line, var Boolean) | 19 | - | - |
| Integration event | OnBeforeRetrieveInvoiceSpecification2 | (Record Purchase Line, var Boolean) | 19-28 | - | - |
| Integration event | OnTransferPurchLineToItemJnlLineOnBeforeInitRecordSet | (var Record Reservation Entry) | 20-28 | - | - |
| Integration event | OnBeforeRetrieveInvoiceSpecification | (Record Purchase Line, var Boolean, var Boolean, var Record Tracking Specification) | 20-28 | - | - |
| Integration event | OnCreateReservationOnBeforeCreateReservEntry | (var Record Purchase Line, var Decimal, var Decimal, var Record Reservation Entry, var Boolean) | 20-23 | - | - |
| Integration event | OnCallItemTrackingOnAfterCalcShouldProcessDropShipment | (var Record Purchase Line, var Boolean) | 20 | - | - |
| Integration event | OnAfterCreateReservation | (var Record Purchase Line) | 20-28 | - | - |
| Integration event | OnBeforeTransferPurchLineToItemJnlLine | (var Record Purchase Line, var Record Item Journal Line, Decimal, var Boolean, var Decimal, var Boolean) | 21-28 | - | - |
| Integration event | OnCallItemTrackingOnAfterCalcShouldProcessDropShipment | (var Record Purchase Line, var Boolean, var Page Item Tracking Lines) | 21-28 | - | - |
| Integration event | OnBeforeDeleteLine | (var Record Purchase Line, var Boolean) | 22-28 | - | - |
| Integration event | OnBeforeVerifyQuantity | (Record Purchase Line, var Boolean, Record Purchase Line) | 22-28 | - | - |
| Integration event | OnBeforeCallItemTracking | (var Record Purchase Line, var Boolean) | 22-28 | - | - |
| Integration event | OnAfterReservQuantity | (Record Purchase Line, var Decimal) | 22-28 | - | - |
| Integration event | OnBeforeVerifyChange | (var Record Purchase Line, var Record Purchase Line, var Boolean) | 22-28 | - | - |
| Integration event | OnCreateReservationOnBeforeCreateReservEntry | (var Record Purchase Line, var Decimal, var Decimal, var Record Reservation Entry, var Boolean, var Record Tracking Specification, Date, var Text[100], Date) | 24-28 | - | - |
| Integration event | OnBeforeAutoReservePurchLine | (Integer, var Decimal, var Decimal, Text[100], Date, var Boolean, var Text[1], var Integer, Record Reservation Entry) | 25-28 | - | - |
| Integration event | OnAutoReservePurchLineOnBeforeSetQtyToReserveDownToTrackedQuantity | (Record Purchase Line, Record Reservation Entry, var Decimal, var Decimal, var Decimal) | 25-28 | - | - |
| Integration event | OnAfterAutoReservePurchLine | (var Record Purchase Line, Integer, var Decimal, var Decimal, Text[100], Date) | 25-28 | - | - |
| Integration event | OnSetSourceForReservationOnBeforeUpdateReservation | (var Record Reservation Entry, Record Purchase Line) | 25-28 | Pending 27.0 | This event is never raised. |
| Integration event | OnAfterInitFromPurchLine | (var Record Tracking Specification, Record Purchase Line) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
