---
id: object/table/5850
type: object
title: Table 5850 "Invt. Document Header"
summary: Table 5850 "Invt. Document Header" in Base Application (Microsoft.Inventory.Document). 23 fields, 9 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "28"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 0426ac2df0f01fccbca91e9c94911f25ea1be2cc5cba71b7d088e075bd3a21ad
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Document/InvtDocumentHeader.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Document/InvtDocumentHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/LocalFunctionality/Russia/item-documents
    - https://learn.microsoft.com/dynamics365/business-central/warehouse-how-to-set-up-basic-warehouses-with-operations-areas
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/set-up-business-central/set-up-warehouse-management
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5850
name: Invt. Document Header
caption: Item Document Header
namespace: Microsoft.Inventory.Document
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "27"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 23
  procedures: 24
  events: 8
  subscribers: 0
relations:
  out: 13
  referenced_by: 0
  pages: 8
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Table 5850 "Invt. Document Header"

> Table 5850 "Invt. Document Header" in Base Application (Microsoft.Inventory.Document). 23 fields, 9 public procedures, 8 events. Present since at least BC23, still in BC30, changed in BC24, BC27-28.

Base Application · Microsoft.Inventory.Document · captioned "Item Document Header" · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Document/InvtDocumentHeader.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 6775 "Invt. Document List"](../page/6775.md) (2 Learn pages), [Page 6776 "Invt. Document Statistics"](../page/6776.md) (2).

## Properties

| Property | Value |
|---|---|
| Caption | Item Document Header |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Document Type | Enum "Invt. Doc. Document Type" | — | enum [Enum 5850 "Invt. Doc. Document Type"](../enum/5850.md) |
| 2 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. |  |
| 3 | Posting Description | Text[100] | Specifies any text that is entered to accompany the posting, for example for information to auditors. |  |
| 5 | Document Date | Date | Specifies the date when the related document was created. |  |
| 6 | Posting Date | Date | Specifies the entry's posting date. |  |
| 7 | Location Code | Code[10] | Specifies the warehouse or other place where the involved items are handled or stored. | TableRelation [Table 14 "Location"](../table/14.md) (Location.Code where("Use As In-Transit" = const(false))) |
| 8 | Shortcut Dimension 1 Code | Code[20] | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1), Blocked = const(false))) |
| 9 | Shortcut Dimension 2 Code | Code[20] | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup window. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(2), Blocked = const(false))) |
| 10 | Language Code | Code[10] | — | TableRelation [Table 8 "Language"](../table/8.md) |
| 11 | Salesperson/Purchaser Code | Code[20] | Specifies the employee purchaser code or salesperson code associated with this document. | TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md) ("Salesperson/Purchaser" where(Blocked = const(false))) |
| 12 | Receipt Comment | Boolean | — | FlowField: exist("Inventory Comment Line" where("Document Type" = const("Inventory Receipt"), "No." = field("No."))); not editable |
| 13 | Shipment Comment | Boolean | — | FlowField: exist("Inventory Comment Line" where("Document Type" = const("Inventory Shipment"), "No." = field("No."))); not editable |
| 14 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series); not editable |
| 15 | Posting No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 16 | External Document No. | Code[35] | Specifies a document number that refers to the customer's or vendor's numbering system. |  |
| 17 | Whse. Adj. Bin Code | Code[20] | — | TableRelation [Table 7354 "Bin"](../table/7354.md) (Bin.Code where("Location Code" = field("Location Code"))) |
| 20 | Posting No. | Code[20] | — |  |
| 21 | Status | Option | Specifies the status of the item document. | OptionCaption: Open,Released |
| 23 | Gen. Bus. Posting Group | Code[20] | Specifies the vendor's or customer's trade type to link transactions made for this business partner with the appropriate general ledger account according to the general posting setup. | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 27 | No. Printed | Integer | — | not editable |
| 30 | Correction | Boolean | Specifies the entry as a corrective entry. You can use the field if you need to post a corrective entry to an account. |  |
| 31 | Format Region | Text[80] | — | TableRelation "Language Selection"."Language Tag" |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |

## Keys

- Key1: Document Type, No. (clustered)

## Events published

- `OnAfterCreateDim(var InvtDocumentHeader: Record "Invt. Document Header"; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])` (integration)
- `OnAfterInitDefaultDimensionSources(var InvtDocumentHeader: Record "Invt. Document Header"; var DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])` (integration)
- `OnAfterInitRecord(var InvtDocumentHeader: Record "Invt. Document Header")` (integration)
- `OnBeforeAssistEdit(var InvtDocumentHeader: Record "Invt. Document Header"; OldInvtDocumentHeader: Record "Invt. Document Header")` (integration)
- `OnAfterGetPostingNoSeriesCode(var InvtDocumentHeader: Record "Invt. Document Header"; var PostingNos: Code[20])` (integration)
- `OnAfterGetNoSeriesCode(var InvtDocumentHeader: Record "Invt. Document Header"; var NoSeriesCode: Code[20])` (integration)
- `OnBeforeInsert(var InvtDocumentHeader: Record "Invt. Document Header"; xInvtDocumentHeader: Record "Invt. Document Header")` (integration)
- `OnCreateDimOnBeforeUpdateLines(var InvtDocumentHeader: Record "Invt. Document Header"; xInvtDocumentHeader: Record "Invt. Document Header"; CurrentFieldNo: Integer; OldDimSetID: Integer; DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])` (integration)

## Procedures

- `InitRecord()`
- `AssistEdit(OldInvtDocHeader: Record "Invt. Document Header"): Boolean`
- `SetHideValidationDialog(NewHideValidationDialog: Boolean)`
- `GetHideValidationDialog(): Boolean`
- `DocLinesExist(): Boolean`
- `CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])`
- `ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])`
- `ShowDocDim()`
- `CreateDimFromDefaultDim()`

Plus 7 local procedures.

## Triggers

OnDelete, OnInsert, OnRename

## Relations

- lookup page [Page 6775 "Invt. Document List"](../page/6775.md)
- Salesperson/Purchaser Code: TableRelation [Table 13 "Salesperson/Purchaser"](../table/13.md)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Gen. Bus. Posting Group: TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Posting No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Shortcut Dimension 1 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Shortcut Dimension 2 Code: TableRelation [Table 349 "Dimension Value"](../table/349.md)
- Dimension Set ID: TableRelation [Table 480 "Dimension Set Entry"](../table/480.md)
- Receipt Comment: CalcFormula [Table 5748 "Inventory Comment Line"](../table/5748.md)
- Shipment Comment: CalcFormula [Table 5748 "Inventory Comment Line"](../table/5748.md)
- Whse. Adj. Bin Code: TableRelation [Table 7354 "Bin"](../table/7354.md)
- Language Code: TableRelation [Table 8 "Language"](../table/8.md)

## Pages and codeunits on this table

- [Page 30240 "APIV2 - Invt. Shipments"](../page/30240.md) (source table)
- [Page 30242 "APIV2 - Invt. Receipts"](../page/30242.md) (source table)
- [Page 6561 "Invt. Receipt"](../page/6561.md) (source table)
- [Page 6563 "Invt. Receipts"](../page/6563.md) (source table)
- [Page 6564 "Invt. Shipment"](../page/6564.md) (source table)
- [Page 6566 "Invt. Shipments"](../page/6566.md) (source table)
- [Page 6775 "Invt. Document List"](../page/6775.md) (source table)
- [Page 6776 "Invt. Document Statistics"](../page/6776.md) (source table)
- [Codeunit 5850 "Invt. Doc.-Post Receipt"](../codeunit/5850.md) (codeunit runs on it)
- [Codeunit 5851 "Invt. Doc.-Post Shipment"](../codeunit/5851.md) (codeunit runs on it)
- [Codeunit 5852 "Invt. Doc.-Post + Print"](../codeunit/5852.md) (codeunit runs on it)
- [Codeunit 5853 "Invt. Doc.-Post (Yes/No)"](../codeunit/5853.md) (codeunit runs on it)
- [Codeunit 5855 "Release Invt. Document"](../codeunit/5855.md) (codeunit runs on it)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (6 calls: `CreateDim → GetDefaultDimID`, `InitDefaultDimensionSources → AddDimSource`, `ShowDocDim → EditDimensionSet`, …)
- [Page 456 "No. Series"](../page/456.md) (3 calls: `AssistEdit → (object)`, `InitRecord → (object)`, `OnInsert → (object)`)
- [Codeunit 99000845 "Reservation Management"](../codeunit/99000845.md) (1 call: `OnDelete → DeleteDocumentReservation`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC27-28

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Invt. Document Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
