Table 5850 "Invt. Document Header"
Base Application · Microsoft.Inventory.Document
Across versions
- BC23present
- BC244 events added
- BC25-26unchanged
- BC271 events added
- BC2812 fields changed
- BC29-30unchanged
Neighbourhood 27 connected objects and pages
Base Application · Microsoft.Inventory.Document · captioned “Item Document Header” · BC23-30 · source at ea08af5e · facts from BC29
Learn documents this table through its pages: Page 6775 “Invt. Document List” (2 Learn pages), Page 6776 “Invt. Document Statistics” (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” |
| 2 | No. Δ BC28 | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. | |
| 3 | Posting Description Δ BC28 | Text[100] | Specifies any text that is entered to accompany the posting, for example for information to auditors. | |
| 5 | Document Date Δ BC28 | Date | Specifies the date when the related document was created. | |
| 6 | Posting Date Δ BC28 | Date | Specifies the entry’s posting date. | |
| 7 | Location Code Δ BC28 | Code[10] | Specifies the warehouse or other place where the involved items are handled or stored. | TableRelation Table 14 “Location” (Location.Code where(“Use As In-Transit” = const(false))) |
| 8 | Shortcut Dimension 1 Code Δ BC28 | 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” (“Dimension Value”.Code where(“Global Dimension No.” = const(1), Blocked = const(false))) |
| 9 | Shortcut Dimension 2 Code Δ BC28 | 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” (“Dimension Value”.Code where(“Global Dimension No.” = const(2), Blocked = const(false))) |
| 10 | Language Code | Code[10] | — | TableRelation Table 8 “Language” |
| 11 | Salesperson/Purchaser Code Δ BC28 | Code[20] | Specifies the employee purchaser code or salesperson code associated with this document. | TableRelation Table 13 “Salesperson/Purchaser” (“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” (No. Series); not editable |
| 15 | Posting No. Series | Code[20] | — | TableRelation Table 308 “No. Series” (No. Series) |
| 16 | External Document No. Δ BC28 | 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” (Bin.Code where(“Location Code” = field(“Location Code”))) |
| 20 | Posting No. | Code[20] | — | |
| 21 | Status Δ BC28 | Option | Specifies the status of the item document. | OptionCaption: Open,Released |
| 23 | Gen. Bus. Posting Group Δ BC28 | 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” (Gen. Business Posting Group) |
| 27 | No. Printed | Integer | — | not editable |
| 30 | Correction Δ BC28 | 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” (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")+ BC24 (integration)OnAfterGetPostingNoSeriesCode(var InvtDocumentHeader: Record "Invt. Document Header"; var PostingNos: Code[20])+ BC24 (integration)OnAfterGetNoSeriesCode(var InvtDocumentHeader: Record "Invt. Document Header"; var NoSeriesCode: Code[20])+ BC24 (integration)OnBeforeInsert(var InvtDocumentHeader: Record "Invt. Document Header"; xInvtDocumentHeader: Record "Invt. Document Header")+ BC24 (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]]])+ BC27 (integration)
Procedures
InitRecord()AssistEdit(OldInvtDocHeader: Record "Invt. Document Header"): BooleanSetHideValidationDialog(NewHideValidationDialog: Boolean)GetHideValidationDialog(): BooleanDocLinesExist(): BooleanCreateDim(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”
- Salesperson/Purchaser Code: TableRelation Table 13 “Salesperson/Purchaser”
- Location Code: TableRelation Table 14 “Location”
- Gen. Bus. Posting Group: TableRelation Table 250 “Gen. Business Posting Group”
- No. Series: TableRelation Table 308 “No. Series”
- Posting No. Series: TableRelation Table 308 “No. Series”
- Shortcut Dimension 1 Code: TableRelation Table 349 “Dimension Value”
- Shortcut Dimension 2 Code: TableRelation Table 349 “Dimension Value”
- Dimension Set ID: TableRelation Table 480 “Dimension Set Entry”
- Receipt Comment: CalcFormula Table 5748 “Inventory Comment Line”
- Shipment Comment: CalcFormula Table 5748 “Inventory Comment Line”
- Whse. Adj. Bin Code: TableRelation Table 7354 “Bin”
- Language Code: TableRelation Table 8 “Language”
Pages and codeunits on this table
- Page 30240 “APIV2 - Invt. Shipments” (source table)
- Page 30242 “APIV2 - Invt. Receipts” (source table)
- Page 6561 “Invt. Receipt” (source table)
- Page 6563 “Invt. Receipts” (source table)
- Page 6564 “Invt. Shipment” (source table)
- Page 6566 “Invt. Shipments” (source table)
- Page 6775 “Invt. Document List” (source table)
- Page 6776 “Invt. Document Statistics” (source table)
- Codeunit 5850 “Invt. Doc.-Post Receipt” (codeunit runs on it)
- Codeunit 5851 “Invt. Doc.-Post Shipment” (codeunit runs on it)
- Codeunit 5852 “Invt. Doc.-Post + Print” (codeunit runs on it)
- Codeunit 5853 “Invt. Doc.-Post (Yes/No)” (codeunit runs on it)
- Codeunit 5855 “Release Invt. Document” (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” (6 calls:
CreateDim → GetDefaultDimID,InitDefaultDimensionSources → AddDimSource,ShowDocDim → EditDimensionSet, …) - Page 456 “No. Series” (3 calls:
AssistEdit → (object),InitRecord → (object),OnInsert → (object)) - Codeunit 99000845 “Reservation Management” (1 call:
OnDelete → DeleteDocumentReservation)
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.