---
title: "Codeunit 5880 Phys. Invt. Order-Finish"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/
type: codeunit
id: 5880
name: "Phys. Invt. Order-Finish"
app: "Base Application"
namespace: Microsoft.Inventory.Counting.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/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 5880 Phys. Invt. Order-Finish

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5880-phys-invt-order-finish/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Counting.Document |
| Versions | 17-28 |
| Source file | Inventory/Counting/Document/PhysInvtOrderFinish.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Code | () | - | public | 17-28 | - | - |
| CreateTrackingBufferLines | (Code[20], Integer) | - | public | 17-26 | Pending 24.0 | Replaced by procedure CreateOrderTrackingBufferLines() |
| CreateReservEntries | (Code[20], Integer, Boolean, Decimal) | - | public | 17-26 | Pending 24.0 | Replaced by procedure CreateReservationEntries() |
| SetHideProgressWindow | (Boolean) | - | public | 20-28 | - | - |
| CreateOrderTrackingBufferLines | (Code[20], Integer) | - | public | 24-28 | - | - |
| CreateReservationEntries | (Code[20], Integer, Boolean, Decimal) | - | public | 24-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCalcQtyToTransfer | (var Record Phys. Invt. Tracking, Boolean, Decimal, var Decimal) | 17-26 | Pending 24.0 | Replaced by OnAfterCalculateQtyToTransfer |
| Integration event | OnAfterOnRun | (var Record Phys. Invt. Order Header) | 17-28 | - | - |
| Integration event | OnBeforeGetSamePhysInvtOrderLine | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Header, var Boolean) | 17-19 | - | - |
| Integration event | OnBeforePhysInvtOrderLineModify | (var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnBeforeOnRun | (var Record Phys. Invt. Order Header) | 17-28 | - | - |
| Integration event | OnCodeOnAfterUpdateFromPhysInvtRecordLine | (var Record Phys. Invt. Tracking, Record Phys. Invt. Record Line) | 17-26 | Pending 24.0 | Replace by OnCodeOnAfterUpdateFromPhysInvtRecordLine2 |
| Integration event | OnCodeOnBeforeCreateReservEntries | (var Record Phys. Invt. Order Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCreateReservEntriesOnBeforeInsert | (var Record Reservation Entry, Record Phys. Invt. Tracking, Record Phys. Invt. Order Header, Record Phys. Invt. Order Line) | 17-26 | Pending 24.0 | Replaced by event OnCreateReservEntriesOnBeforeInsert2 |
| Integration event | OnCreateReservEntriesOnAfterTempPhysInvtTrackingBufferModify | (Boolean, var Decimal, Decimal) | 17-26 | - | - |
| Integration event | OnCreateTrackingBufferLinesFromPhysInvtRecordLine | (var Record Phys. Invt. Tracking, Record Phys. Invt. Record Line) | 17-26 | Pending 24.0 | Replaced by event OnCreateOrderTrackingBufferLinesFromPhysInvtRecordLine |
| Integration event | OnCreateTrackingBufferLinesFromExpPhysInvtTracking | (var Record Phys. Invt. Tracking, Record Exp. Phys. Invt. Tracking) | 17-26 | Pending 24.0 | Replaced by event OnCreateOrderTrackingBufferLinesFromExpInvtOrderTracking |
| Integration event | OnUpdateBufferFromItemLedgerEntriesOnAfterUpdateExpectedQty | (var Record Phys. Invt. Tracking, Record Item Ledger Entry) | 17-26 | Pending 24.0 | Replaced by event OnUpdateBufferFromItemLedgerEntriesOnAfterUpdateExpectedQty2 |
| Integration event | OnBeforeCheckOrderLine | (Record Phys. Invt. Order Header, Record Phys. Invt. Order Line, var Record Item, var Boolean) | 18-21 | - | - |
| Integration event | OnCodeOnAfterSetFilters | (var Record Phys. Invt. Order Line) | 18-28 | - | - |
| Integration event | OnBeforeCode | (var Record Phys. Invt. Order Header, var Boolean) | 20-28 | - | - |
| Integration event | OnBeforeGetSamePhysInvtOrderLine | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Header, var Boolean, var Record Phys. Invt. Order Line) | 20-28 | - | - |
| Integration event | OnAfterIsNewPhysInvtOrderLineGroup | (Record Phys. Invt. Order Line, Record Phys. Invt. Order Line, var Boolean) | 20-28 | - | - |
| Integration event | OnAfterSetPhysInvtRecordLineFilters | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Line) | 20-28 | - | - |
| Integration event | OnBeforeCheckOrderLine | (Record Phys. Invt. Order Header, Record Phys. Invt. Order Line, var Record Item, var Boolean, var Record Phys. Invt. Order Line) | 22-28 | - | - |
| Integration event | OnCodeOnBeforePhysInvtOrderLineCalcCosts | (var Record Phys. Invt. Order Line, var Boolean) | 23-28 | - | - |
| Integration event | OnCodeOnBeforePhysInvtOrderLine2CalcCosts | (var Record Phys. Invt. Order Line, var Boolean) | 23-28 | - | - |
| Integration event | OnCodeOnBeforeSetStatusToFinished | (var Record Phys. Invt. Order Header) | 23-28 | - | - |
| Integration event | OnAfterCalculateQtyToTransfer | (var Record Invt. Order Tracking, Boolean, Decimal, var Decimal) | 24-28 | - | - |
| Integration event | OnCodeOnAfterUpdateFromPhysInvtRecordLine2 | (var Record Invt. Order Tracking, Record Phys. Invt. Record Line) | 24-28 | - | - |
| Integration event | OnCreateReservEntriesOnBeforeInsert2 | (var Record Reservation Entry, Record Invt. Order Tracking, Record Phys. Invt. Order Header, Record Phys. Invt. Order Line) | 24-26 | - | - |
| Integration event | OnCreateOrderTrackingBufferLinesFromPhysInvtRecordLine | (var Record Invt. Order Tracking, Record Phys. Invt. Record Line) | 24-28 | - | - |
| Integration event | OnCreateOrderTrackingBufferLinesFromExpInvtOrderTracking | (var Record Invt. Order Tracking, Record Exp. Invt. Order Tracking) | 24-28 | - | - |
| Integration event | OnUpdateBufferFromItemLedgerEntriesOnAfterUpdateExpectedQty2 | (var Record Invt. Order Tracking, Record Item Ledger Entry) | 24-28 | - | - |
| Integration event | OnCreateReservEntriesOnBeforeInsert2 | (var Record Reservation Entry, Record Invt. Order Tracking, Record Phys. Invt. Order Header, var Record Phys. Invt. Order Line) | 27-28 | - | - |
| Integration event | OnCreateReservEntriesOnAfterTempPhysInvtTrackingBufferModify | (Boolean, var Decimal, Decimal, var Record Invt. Order Tracking) | 27-28 | - | - |
| Integration event | OnCodeOnBeforeModifyInvtOrderTracking | (var Record Invt. Order Tracking) | 27-28 | - | - |
| Integration event | OnCodeOnAfterSetEntryTypePhysInvtOrderLine | (var Record Phys. Invt. Order Header, var Record Phys. Invt. Order Line, Record Item) | 27-28 | - | - |
| Integration event | OnCreateOrderTrackingBufferLinesOnBeforeModifyTempInvtOrderTrackingBuffer | (var Record Invt. Order Tracking, Code[20], Integer) | 27-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.
