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

Jonas Paprotka, https://jonas-paprotka.de/ref/table/5850-invt-document-header/

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

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | Document Type | Enum Invt. Doc. Document Type | 18-28 | - | - |
| 2 | No. | Code[20] | 18-28 | - | - |
| 3 | Posting Description | Text[100] | 18-28 | - | - |
| 5 | Document Date | Date | 18-28 | - | - |
| 6 | Posting Date | Date | 18-28 | - | - |
| 7 | Location Code | Code[10] | 18-28 | - | - |
| 8 | Shortcut Dimension 1 Code | Code[20] | 18-28 | - | - |
| 9 | Shortcut Dimension 2 Code | Code[20] | 18-28 | - | - |
| 10 | Language Code | Code[10] | 18-28 | - | - |
| 11 | Salesperson/Purchaser Code | Code[20] | 18-28 | - | - |
| 12 | Receipt Comment | Boolean | 18-28 | - | - |
| 13 | Shipment Comment | Boolean | 18-28 | - | - |
| 14 | No. Series | Code[20] | 18-28 | - | - |
| 15 | Posting No. Series | Code[20] | 18-28 | - | - |
| 16 | External Document No. | Code[35] | 18-28 | - | - |
| 17 | Whse. Adj. Bin Code | Code[20] | 18-28 | - | - |
| 20 | Posting No. | Code[20] | 18-28 | - | - |
| 21 | Status | Option | 18-28 | - | - |
| 23 | Gen. Bus. Posting Group | Code[20] | 18-28 | - | - |
| 27 | No. Printed | Integer | 18-28 | - | - |
| 30 | Correction | Boolean | 18-28 | - | - |
| 31 | Format Region | Text[80] | 23-28 | - | - |
| 480 | Dimension Set ID | Integer | 18-28 | - | - |

## Keys

| Name | Fields | Versions |
| --- | --- | --- |
| Key1, clustered | Document Type, No. | 18-28 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitRecord | () | - | public | 18-28 | - | - |
| AssistEdit | (Record Invt. Document Header) | Boolean | public | 18-28 | - | - |
| SetHideValidationDialog | (Boolean) | - | public | 18-28 | - | - |
| DocLinesExist | () | Boolean | public | 18-28 | - | - |
| CreateDim | (Integer, Code[20]) | - | public | 18-22 | Pending 20.0 | Replaced by CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]]) |
| ValidateShortcutDimCode | (Integer, var Code[20]) | - | public | 18-28 | - | - |
| ShowDocDim | () | - | public | 18-28 | - | - |
| CreateDim | (List) | - | public | 20-28 | - | - |
| CreateDimFromDefaultDim | () | - | public | 20-28 | - | - |
| GetHideValidationDialog | () | Boolean | public | 23-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterCreateDim | (var Record Invt. Document Header, List) | 20-28 | - | - |
| Integration event | OnAfterInitDefaultDimensionSources | (var Record Invt. Document Header, var List) | 20-28 | - | - |
| Integration event | OnAfterInitRecord | (var Record Invt. Document Header) | 20-28 | - | - |
| Integration event | OnBeforeAssistEdit | (var Record Invt. Document Header, Record Invt. Document Header) | 24-28 | - | - |
| Integration event | OnAfterGetPostingNoSeriesCode | (var Record Invt. Document Header, var Code[20]) | 24-28 | - | - |
| Integration event | OnAfterGetNoSeriesCode | (var Record Invt. Document Header, var Code[20]) | 24-28 | - | - |
| Integration event | OnBeforeInsert | (var Record Invt. Document Header, Record Invt. Document Header) | 24-28 | - | - |
| Integration event | OnCreateDimOnBeforeUpdateLines | (var Record Invt. Document Header, Record Invt. Document Header, Integer, Integer, 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.
