---
title: "Table 5851 Invt. Document Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/table/5851-invt-document-line/
type: table
id: 5851
name: "Invt. Document Line"
app: "Base Application"
namespace: Microsoft.Inventory.Document
versions: "18-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/table/5851-invt-document-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 5851 Invt. Document Line

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5851-invt-document-line/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Inventory.Document |
| Versions | 18-28 |
| Source file | Inventory/Document/InvtDocumentLine.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Document Type | Enum Invt. Doc. Document Type | 18-28 | - | - |
| 2 | Line No. | Integer | 18-28 | - | - |
| 3 | Item No. | Code[20] | 18-28 | - | - |
| 4 | Posting Date | Date | 18-28 | - | - |
| 5 | Document Date | Date | 18-28 | - | - |
| 7 | Document No. | Code[20] | 18-28 | - | - |
| 8 | Description | Text[100] | 18-28 | - | - |
| 9 | Location Code | Code[10] | 18-28 | - | - |
| 10 | Inventory Posting Group | Code[20] | 18-28 | - | - |
| 13 | Quantity | Decimal | 18-28 | - | - |
| 16 | Unit Amount | Decimal | 18-28 | - | - |
| 17 | Unit Cost | Decimal | 18-28 | - | - |
| 18 | Amount | Decimal | 18-28 | - | - |
| 23 | Salespers./Purch. Code | Code[20] | 18-28 | - | - |
| 26 | Source Code | Code[10] | 18-28 | - | - |
| 29 | Applies-to Entry | Integer | 18-28 | - | - |
| 32 | Item Shpt. Entry No. | Integer | 18-28 | - | - |
| 34 | Shortcut Dimension 1 Code | Code[20] | 18-28 | - | - |
| 35 | Shortcut Dimension 2 Code | Code[20] | 18-28 | - | - |
| 37 | Indirect Cost % | Decimal | 18-28 | - | - |
| 38 | Gross Weight | Decimal | 18-28 | - | - |
| 39 | Net Weight | Decimal | 18-28 | - | - |
| 40 | Units per Parcel | Decimal | 18-28 | - | - |
| 41 | Unit Volume | Decimal | 18-28 | - | - |
| 42 | Reason Code | Code[10] | 18-28 | - | - |
| 55 | Last Item Ledger Entry No. | Integer | 18-28 | - | - |
| 57 | Gen. Bus. Posting Group | Code[20] | 18-28 | - | - |
| 58 | Gen. Prod. Posting Group | Code[20] | 18-28 | - | - |
| 65 | Posting No. Series | Code[20] | 18-28 | - | - |
| 72 | Unit Cost (ACY) | Decimal | 18-28 | - | - |
| 480 | Dimension Set ID | Integer | 18-28 | - | - |
| 5402 | Variant Code | Code[10] | 18-28 | - | - |
| 5403 | Bin Code | Code[20] | 18-28 | - | - |
| 5404 | Qty. per Unit of Measure | Decimal | 18-28 | - | - |
| 5405 | Qty. Rounding Precision | Decimal | 19-28 | - | - |
| 5406 | Qty. Rounding Precision (Base) | Decimal | 19-28 | - | - |
| 5407 | Unit of Measure Code | Code[10] | 18-28 | - | - |
| 5413 | Quantity (Base) | Decimal | 18-28 | - | - |
| 5470 | Reserved Quantity Inbnd. | Decimal | 18-28 | - | - |
| 5471 | Reserved Quantity Outbnd. | Decimal | 18-28 | - | - |
| 5472 | Reserved Qty. Inbnd. (Base) | Decimal | 18-28 | - | - |
| 5473 | Reserved Qty. Outbnd. (Base) | Decimal | 18-28 | - | - |
| 5704 | Item Category Code | Code[20] | 18-28 | - | - |
| 5706 | Purchasing Code | Code[10] | 18-28 | - | - |
| 5725 | Item Reference No. | Code[50] | 23-28 | - | - |
| 5726 | Item Reference Unit of Measure | Code[10] | 23-28 | - | - |
| 5727 | Item Reference Type | Enum Item Reference Type | 23-28 | - | - |
| 5728 | Item Reference Type No. | Code[30] | 23-28 | - | - |
| 5801 | Item Charge No. | Code[20] | 18-28 | - | - |
| 5807 | Applies-from Entry | Integer | 18-28 | - | - |
| 5811 | Applied Amount | Decimal | 18-28 | - | - |
| 5812 | Update Standard Cost | Boolean | 18-28 | - | - |
| 5813 | Amount (ACY) | Decimal | 18-28 | - | - |
| 5819 | Applies-to Value Entry | Integer | 18-28 | - | - |
| 12450 | FA No. | Code[20] | 18-28 | - | - |
| 12451 | FA Entry No. | Integer | 18-28 | - | - |
| 12452 | Depreciation Book Code | Code[10] | 18-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Document Type, Document No., Line No. | 18-28 |
| Key2 | Location Code | 18-28 |
| Key3 | Item No., Variant Code | 18-28 |
| Key4 | Document Type, Document No., Item No., Location Code | 26-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| EmptyLine | () | Boolean | public | 18-28 | - | - |
| UpdateAmount | () | - | public | 18-28 | - | - |
| GetInvtDocHeader | () | - | public | 18-28 | - | - |
| GetUnitAmount | (Integer) | - | public | 18-28 | - | - |
| ShowReservation | () | - | public | 18-28 | - | - |
| OpenItemTrackingLines | () | - | public | 18-28 | - | - |
| CreateDim | (Integer, Code[20], Integer, Code[20]) | - | public | 18-22 | Pending 20.0 | Replaced by CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]) |
| ShowDimensions | () | - | public | 18-28 | - | - |
| ValidateShortcutDimCode | (Integer, var Code[20]) | - | public | 18-28 | - | - |
| LookupShortcutDimCode | (Integer, var Code[20]) | - | public | 18-28 | - | - |
| ShowShortcutDimCode | (var Code[20]) | - | public | 18-28 | - | - |
| RowID1 | () | Text[250] | public | 18-28 | - | - |
| SuspendStatusCheck | (Boolean) | - | public | 18-28 | - | - |
| Signed | (Decimal) | Decimal | public | 18-28 | - | - |
| ReserveFromInventory | (var Record Invt. Document Line) | - | public | 18-28 | - | - |
| GetRemainingQty | (var Decimal, var Decimal, Integer) | - | public | 18-28 | - | - |
| GetReservationQty | (var Decimal, var Decimal, var Decimal, var Decimal, Integer) | Decimal | public | 18-28 | - | - |
| GetSourceCaption | () | Text | public | 18-28 | - | - |
| FilterReceiptLinesForReservation | (Record Reservation Entry, Text, Boolean) | - | public | 18-28 | - | - |
| FilterShipmentLinesForReservation | (Record Reservation Entry, Text, Boolean) | - | public | 18-28 | - | - |
| ReservEntryExist | () | Boolean | public | 18-28 | - | - |
| SetReservationEntry | (var Record Reservation Entry) | - | public | 18-28 | - | - |
| SetReservationFilters | (var Record Reservation Entry) | - | public | 18-28 | - | - |
| CheckItemAvailable | (Integer) | - | public | 20-28 | - | - |
| CreateDim | (List) | - | public | 20-28 | - | - |
| CreateDimFromDefaultDim | (Integer) | - | public | 20-28 | - | - |
| SuppressRecalculateDimensions | (Boolean) | - | public | 23-28 | - | - |
| IsCorrection | () | Boolean | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeRetrieveCosts | (var Record Invt. Document Line, var Decimal, var Boolean) | 18-28 | - | - |
| Integration event | OnAfterFilterReceiptLinesForReservation | (var Record Invt. Document Line, Record Reservation Entry, Text, Boolean) | 19-28 | - | - |
| Integration event | OnAfterFilterShipmentLinesForReservation | (var Record Invt. Document Line, Record Reservation Entry, Text, Boolean) | 19-28 | - | - |
| Integration event | OnAfterInitDefaultDimensionSources | (var Record Invt. Document Line, var List, Integer) | 20-28 | - | - |
| Integration event | OnAfterGetUnitAmount | (var Record Invt. Document Line, var Decimal, Integer) | 23-28 | - | - |
| Integration event | OnAfterOpenItemTrackingLines | (var Record Invt. Document Line) | 26-28 | - | - |
| Integration event | OnAfterCreateDim | (var Record Invt. Document Line, Integer, Record Invt. Document Line, List) | 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.
