---
title: "Table 5876 Phys. Invt. Order Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/
type: table
id: 5876
name: "Phys. Invt. Order Line"
app: "Base Application"
namespace: Microsoft.Inventory.Counting.Document
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Table 5876 Phys. Invt. Order Line

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5876-phys-invt-order-line/

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

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Document No. | Code[20] | 17-28 | - | - |
| 2 | Line No. | Integer | 17-28 | - | - |
| 12 | On Recording Lines | Boolean | 17-28 | - | - |
| 20 | Item No. | Code[20] | 17-28 | - | - |
| 21 | Variant Code | Code[10] | 17-28 | - | - |
| 22 | Location Code | Code[10] | 17-28 | - | - |
| 23 | Bin Code | Code[20] | 17-28 | - | - |
| 30 | Description | Text[100] | 17-28 | - | - |
| 31 | Description 2 | Text[50] | 17-28 | - | - |
| 32 | Unit of Measure | Text[50] | 17-28 | - | - |
| 40 | Base Unit of Measure Code | Code[10] | 17-28 | - | - |
| 50 | Qty. Expected (Base) | Decimal | 17-28 | - | - |
| 51 | Qty. Exp. Calculated | Boolean | 17-28 | - | - |
| 52 | Qty. Exp. Item Tracking (Base) | Decimal | 17-26 | Pending 24.0 | Replaced by field "Qty. Exp. Tracking (Base)". |
| 53 | Use Item Tracking | Boolean | 17-28 | - | - |
| 54 | Qty. Exp. Tracking (Base) | Decimal | 24-28 | - | - |
| 55 | Last Item Ledger Entry No. | Integer | 17-28 | - | - |
| 60 | Unit Amount | Decimal | 17-28 | - | - |
| 62 | Unit Cost | Decimal | 17-28 | - | - |
| 70 | No. Finished Rec.-Lines | Integer | 17-28 | - | - |
| 71 | Qty. Recorded (Base) | Decimal | 17-28 | - | - |
| 72 | Quantity (Base) | Decimal | 17-28 | - | - |
| 73 | Entry Type | Option | 17-28 | - | - |
| 74 | Pos. Qty. (Base) | Decimal | 17-28 | - | - |
| 75 | Neg. Qty. (Base) | Decimal | 17-28 | - | - |
| 76 | Without Difference | Boolean | 17-28 | - | - |
| 80 | Recorded Without Order | Boolean | 17-28 | - | - |
| 90 | Shortcut Dimension 1 Code | Code[20] | 17-28 | - | - |
| 91 | Shortcut Dimension 2 Code | Code[20] | 17-28 | - | - |
| 100 | Shelf No. | Code[10] | 17-28 | - | - |
| 110 | Gen. Bus. Posting Group | Code[20] | 17-28 | - | - |
| 111 | Gen. Prod. Posting Group | Code[20] | 17-28 | - | - |
| 112 | Inventory Posting Group | Code[20] | 17-28 | - | - |
| 480 | Dimension Set ID | Integer | 17-28 | - | - |
| 5704 | Item Category Code | Code[20] | 17-28 | - | - |
| 5725 | Item Reference No. | Code[50] | 22-28 | - | - |
| 5726 | Item Reference Unit of Measure | Code[10] | 22-28 | - | - |
| 5727 | Item Reference Type | Enum Item Reference Type | 22-28 | - | - |
| 5728 | Item Reference Type No. | Code[30] | 22-28 | - | - |
| 7380 | Phys Invt Counting Period Code | Code[10] | 17-28 | - | - |
| 7381 | Phys Invt Counting Period Type | Option | 17-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Document No., Line No. | 17-28 |
| Key2 | Document No., Item No., Variant Code, Location Code, Bin Code | 17-28 |
| Key3 | Document No., Entry Type, Without Difference | 17-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| TestStatusOpen | () | - | public | 17-28 | - | - |
| CalcQtyAndTrackLinesExpected | () | - | public | 17-28 | - | - |
| CalcQtyAndLastItemLedgExpected | (var Decimal, var Integer) | - | public | 17-28 | - | - |
| ResetQtyExpected | () | - | public | 17-28 | - | - |
| TestQtyExpected | () | - | public | 17-28 | - | - |
| TestQtyRecorded | () | - | public | 17-28 | - | - |
| CalcCosts | () | - | public | 17-28 | - | - |
| CheckLine | () | - | public | 17-28 | - | - |
| EmptyLine | () | Boolean | public | 17-28 | - | - |
| PrepareLine | (Code[20], Integer, Code[20], Code[10], Code[10], Code[20], Code[10], Option) | - | public | 17-28 | - | - |
| ShowDimensions | () | - | public | 17-28 | - | - |
| CreateDim | (Integer, Code[20]) | - | public | 17-22 | Pending 20.0 | Replaced by CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]) |
| ValidateShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| LookupShortcutDimCode | (Integer, var Code[20]) | - | public | 17-28 | - | - |
| ShowShortcutDimCode | (var Code[20]) | - | public | 17-28 | - | - |
| ShowPhysInvtRecordingLines | () | - | public | 17-28 | - | - |
| ShowExpectPhysInvtTrackLines | () | - | public | 17-28 | - | - |
| ShowItemTrackingLines | (Option) | - | public | 17-28 | - | - |
| ShowItemLedgerEntries | () | - | public | 17-28 | - | - |
| ShowPhysInvtLedgerEntries | () | - | public | 17-28 | - | - |
| GetFieldsFromSKU | () | - | public | 17-28 | - | - |
| ShowBinContentItem | () | - | public | 17-28 | - | - |
| ShowBinContentBin | () | - | public | 17-28 | - | - |
| PrepareLineArgs | (Record Warehouse Entry) | - | public | 20-28 | - | - |
| PrepareLineArgs | (Record Warehouse Entry, Record Item Ledger Entry) | - | public | 20-28 | - | - |
| PrepareLine | (Code[20], Integer, Record Phys. Invt. Order Line, Code[10], Option) | - | public | 20-28 | - | - |
| CreateDim | (List) | - | public | 20-28 | - | - |
| CreateDimFromDefaultDim | () | - | public | 20-28 | - | - |
| GetPhysInvtOrderHeader | () | - | public | 21-28 | - | - |
| CreateDimFromDefaultDim | (Integer) | - | public | 22-28 | - | - |
| PrepareLineArgs | (Record Item Ledger Entry) | - | public | 23-28 | - | - |
| GetDateForCalculations | () | Date | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCreateDimTableIDs | (var Record Phys. Invt. Order Line, Integer, var Integer, var Code[20]) | 17-22 | Pending 20.0 | Temporary event for compatibility |
| Integration event | OnAfterGetFieldsFromSKU | (var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnAfterResetQtyExpected | (var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnAfterValidateShortcutDimCode | (var Record Phys. Invt. Order Line, var Record Phys. Invt. Order Line, Integer, var Code[20]) | 17-28 | - | - |
| Integration event | OnBeforeValidateShortcutDimCode | (var Record Phys. Invt. Order Line, var Record Phys. Invt. Order Line, Integer, var Code[20]) | 17-28 | - | - |
| Integration event | OnBeforeShowItemLedgerEntries | (var Record Item Ledger Entry, var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnBeforeShowPhysInvtLedgerEntries | (var Record Phys. Inventory Ledger Entry, var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnBeforeValidateBinCode | (var Record Phys. Invt. Order Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCalcCostsOnAfterInitItemJnlLine | (var Record Phys. Invt. Order Line, var Record Item Journal Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndLastItemLedgExpectedSetItemLedgEntryFilters | (var Record Item Ledger Entry, var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndLastItemLedgExpectedSetWhseEntryFilters | (var Record Warehouse Entry, var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedSetItemLedgEntryFilters | (var Record Item Ledger Entry, var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLine | (var Record Exp. Phys. Invt. Tracking, var Record Item Ledger Entry) | 17-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLine2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLineFromWhseEntry | (var Record Exp. Phys. Invt. Tracking, Record Warehouse Entry) | 17-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLineFromWhseEntry2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterSetWhseEntryFilters | (var Record Warehouse Entry, Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnBeforeModifyFromItemLedgEntry | (var Record Exp. Phys. Invt. Tracking, var Record Item Ledger Entry) | 17-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnBeforeModifyFromItemLedgEntry2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnBeforeInsertFromWhseEntry | (var Record Exp. Phys. Invt. Tracking, var Record Warehouse Entry) | 17-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnBeforeInsertFromWhseEntry2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnPhysInvtTrackingNotGet | (var Record Phys. Invt. Order Line) | 17-28 | - | - |
| Integration event | OnCalcQtyAndLastItemLedgExpectedOnAfterCalcItemLedgEntryQtyExpected | (var Record Item Ledger Entry, var Decimal) | 17-28 | - | - |
| Integration event | OnCalcQtyAndLastItemLedgExpectedOnAfterCalcWhseEntryQtyExpected | (var Record Warehouse Entry, var Decimal) | 17-28 | - | - |
| Integration event | OnTestQtyRecordedOnAfterPhysInvtRecordLineSetFilters | (var Record Phys. Invt. Order Line, var Record Phys. Invt. Record Line) | 17-28 | - | - |
| Integration event | OnValidateItemNoOnAfterInitFromItem | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Line, Record Item, Record Phys. Invt. Order Header) | 17-28 | - | - |
| Integration event | OnAfterValidateItemNo | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Header, Record Item) | 18-28 | - | - |
| Integration event | OnBeforeTestItemNotBlocked | (var Record Phys. Invt. Order Line, var Record Item, var Boolean) | 18-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterHandleItemLedgerEntryTracking | (var Record Exp. Phys. Invt. Tracking, Record Item Ledger Entry) | 18-26 | Pending 24.0 | replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterHandleItemLedgerEntryTracking2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterHandleWarehouseEntryTracking | (var Record Exp. Phys. Invt. Tracking, Record Warehouse Entry) | 18-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterHandleWarehouseEntryTracking2 |
| Integration event | OnBeforeRunEventOnAfterCreateDimTableIDs | (var Record Phys. Invt. Order Line, var List, var Boolean) | 20-22 | Pending 20.0 | Temporary event for compatibility |
| Integration event | OnAfterInitDefaultDimensionSources | (var Record Phys. Invt. Order Line, var List) | 20-28 | - | - |
| Integration event | OnAfterCreateDim | (var Record Phys. Invt. Order Line, List) | 20-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnBeforeCalcQtyAndLastItemLedgExpected | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Header) | 20-28 | - | - |
| Integration event | OnAfterPrepareLine | (var Record Phys. Invt. Order Line, Record Phys. Invt. Order Line) | 20-28 | - | - |
| Integration event | OnAfterPrepareLineArgs | (var Record Phys. Invt. Order Line, Record Item Ledger Entry, Record Warehouse Entry) | 20-28 | - | - |
| Integration event | OnAfterCalcQtyAndLastItemLedgExpected | (var Decimal, var Integer, var Record Phys. Invt. Order Line) | 21-28 | - | - |
| Integration event | OnBeforeCheckLine | (var Record Phys. Invt. Order Line, var Boolean) | 22-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineWhseEntry | (var Record Exp. Phys. Invt. Tracking, var Record Phys. Invt. Order Line) | 22-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineWhseEntry2 |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineItemLedgEntry | (var Record Exp. Phys. Invt. Tracking, var Record Phys. Invt. Order Line) | 22-26 | Pending 24.0 | Replaced by event OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineItemLedgEntry2 |
| Integration event | OnAfterInitTableValuePair | (var Record Phys. Invt. Order Line, var Dictionary, Integer) | 22-28 | - | - |
| Integration event | OnBeforeTestItemVariantNotBlocked | (var Record Phys. Invt. Order Line, var Record Item Variant, var Boolean) | 23-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLine2 | (var Record Exp. Invt. Order Tracking, var Record Item Ledger Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterExpPhysInvtTrackingInsertLineFromWhseEntry2 | (var Record Exp. Invt. Order Tracking, Record Warehouse Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterHandleItemLedgerEntryTracking2 | (var Record Exp. Invt. Order Tracking, Record Item Ledger Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterHandleWarehouseEntryTracking2 | (var Record Exp. Invt. Order Tracking, Record Warehouse Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnBeforeModifyFromItemLedgEntry2 | (var Record Exp. Invt. Order Tracking, var Record Item Ledger Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnBeforeInsertFromWhseEntry2 | (var Record Exp. Invt. Order Tracking, var Record Warehouse Entry) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineWhseEntry2 | (var Record Exp. Invt. Order Tracking, var Record Phys. Invt. Order Line) | 24-28 | - | - |
| Integration event | OnCalcQtyAndTrackLinesExpectedOnAfterDeleteLineItemLedgEntry2 | (var Record Exp. Invt. Order Tracking, var Record Phys. Invt. Order Line) | 24-28 | - | - |
| Integration event | OnTestQtyRecordedOnBeforeValidateRecordLine | (var Record Phys. Invt. Order Line, var Record Phys. Invt. Record Line, var Boolean) | 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.
