---
id: object/table/5875
type: object
title: Table 5875 "Phys. Invt. Order Header"
summary: Table 5875 "Phys. Invt. Order Header" in Base Application (Microsoft.Inventory.Counting.Document). 19 fields, 10 public procedures, 15 events. Present since at least BC23, still in BC30, changed in BC24, BC28.
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: 795488613c77318fec22edbf21d99f52c2bb25179430de149a4eac6ca59f452f
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Inventory/Counting/Document/PhysInvtOrderHeader.Table.al
    title: src/Layers/W1/BaseApp/Inventory/Counting/Document/PhysInvtOrderHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 5875
name: Phys. Invt. Order Header
namespace: Microsoft.Inventory.Counting.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"
  - "28"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 19
  procedures: 30
  events: 15
  subscribers: 0
relations:
  out: 15
  referenced_by: 7
  pages: 4
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 0
---

# Table 5875 "Phys. Invt. Order Header"

> Table 5875 "Phys. Invt. Order Header" in Base Application (Microsoft.Inventory.Counting.Document). 19 fields, 10 public procedures, 15 events. Present since at least BC23, still in BC30, changed in BC24, BC28.

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

## Properties

| Property | Value |
|---|---|
| Caption | Phys. Invt. Order 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 | No. | Code[20] | Specifies a number for the physical inventory order. |  |
| 10 | Description | Text[100] | Specifies a short description of the physical inventory order. |  |
| 11 | Status | Enum "Phys. Invt. Order Status" | Specifies if the physical inventory order is open or finished. | enum [Enum 5875 "Phys. Invt. Order Status"](../enum/5875.md); not editable |
| 20 | Order Date | Date | Specifies the order date for the physical inventory order. |  |
| 21 | Posting Date | Date | Specifies the posting date of the physical inventory order. |  |
| 30 | Comment | Boolean | — | FlowField: exist("Phys. Invt. Comment Line" where("Document Type" = const(Order), "Order No." = field("No."), "Recording No." = const(0))); not editable |
| 31 | Person Responsible | Code[20] | Specifies the code of the person who is responsible for performing this physical inventory order. | TableRelation [Table 5200 "Employee"](../table/5200.md) |
| 40 | Reason Code | Code[10] | — | TableRelation [Table 231 "Reason Code"](../table/231.md) (Reason Code) |
| 41 | Gen. Bus. Posting Group | Code[20] | — | TableRelation [Table 250 "Gen. Business Posting Group"](../table/250.md) (Gen. Business Posting Group) |
| 50 | Shortcut Dimension 1 Code | Code[20] | Specifies the code for Shortcut Dimension 1, whose dimension values you can then enter directly on journals and sales or purchase lines. | TableRelation [Table 349 "Dimension Value"](../table/349.md) ("Dimension Value".Code where("Global Dimension No." = const(1), Blocked = const(false))) |
| 51 | 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))) |
| 60 | Posting No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 61 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series); not editable |
| 64 | Posting No. | Code[20] | — |  |
| 65 | Last Posting No. | Code[20] | — | TableRelation [Table 112 "Sales Invoice Header"](../table/112.md) (Sales Invoice Header); not editable |
| 71 | No. Finished Recordings | Integer | Specifies the number of entered physical inventory recording documents that have the status set to Finished. | FlowField: count("Phys. Invt. Record Header" where("Order No." = field("No."), Status = const(Finished))); not editable |
| 110 | Location Code | Code[10] | Specifies the code of the location where items on this line should be counted. | TableRelation [Table 14 "Location"](../table/14.md) |
| 111 | Bin Code | Code[20] | — | TableRelation [Table 7354 "Bin"](../table/7354.md) (Bin.Code where("Location Code" = field("Location Code"))) |
| 480 | Dimension Set ID | Integer | — | TableRelation [Table 480 "Dimension Set Entry"](../table/480.md) (Dimension Set Entry); not editable |

## Keys

- Key1: No. (clustered)
- Key2: Status

## Events published

- `OnAfterGetNoSeriesCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var NoSeriesCode: Code[20])` (integration)
- `OnAfterInitRecord(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header")` (integration)
- `OnAfterTestNoSeries(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header")` (integration)
- `OnBeforeGetNoSeriesCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; InventorySetup: Record "Inventory Setup"; var NoSeriesCode: Code[20]; var IsHandled: Boolean)` (integration)
- `OnBeforeInitRecord(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; xPhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var IsHandled: Boolean)` (integration)
- `OnBeforeTestNoSeries(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var IsHandled: Boolean)` (integration)
- `OnAfterValidateShortcutDimCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var xPhysInvtOrderHeader: Record "Phys. Invt. Order Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20])` (integration)
- `OnBeforeValidateShortcutDimCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var xPhysInvtOrderHeader: Record "Phys. Invt. Order Header"; FieldNumber: Integer; var ShortcutDimCode: Code[20])` (integration)
- `OnBeforeValidateBinCode(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var IsHandled: Boolean)` (integration)
- `OnGetSamePhysInvtOrderLineOnAfterSetFilters(var PhysInvtOrderLine: Record "Phys. Invt. Order Line"; PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; PhysInvtOrderLineArgs: Record "Phys. Invt. Order Line")` (integration)
- `OnInitInsertOnBeforeInitSeries(var xPhysInvtOrderHeader: Record "Phys. Invt. Order Header"; var IsHandled: Boolean)` (integration)
- `OnInitInsertOnBeforeInitRecord(var xPhysInvtOrderHeader: Record "Phys. Invt. Order Header")` (integration)
- `OnAfterSetErrorText(NoOfOrderLines: Integer; OrderNo: Code[20]; PhysInvtOrderLineArgs: Record "Phys. Invt. Order Line"; var ErrorText: Text[250])` (integration)
- `OnShowDocDimOnBeforeModify(var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; xPhysInvtOrderHeader: Record "Phys. Invt. Order Header")` (integration)
- `OnUpdateAllLineDimOnBeforePhysInvtOrderLineModify(var PhysInvtOrderLine: Record "Phys. Invt. Order Line"; var PhysInvtOrderHeader: Record "Phys. Invt. Order Header"; xPhysInvtOrderHeader: Record "Phys. Invt. Order Header")` (integration)

## Procedures

- `InitRecord()`
- `AssistEdit(OldPhysInvtOrderHeader: Record "Phys. Invt. Order Header"): Boolean`
- `ValidateShortcutDimCode(FieldNumber: Integer; var ShortcutDimCode: Code[20])`
- `GetSamePhysInvtOrderLine(ItemNo: Code[20]; VariantCode: Code[10]; LocationCode: Code[10]; BinCode: Code[20]; var ErrorText: Text[250]; var PhysInvtOrderLine2: Record "Phys. Invt. Order Line"): Integer`
- `GetSamePhysInvtOrderLine(PhysInvtOrderLineArgs: Record "Phys. Invt. Order Line"; var ErrorText: Text[250]; var PhysInvtOrderLine2: Record "Phys. Invt. Order Line"): Integer`
- `CreateDimFromDefaultDim(FieldNo: Integer)`
- `CreateDim(DefaultDimSource: List of [Dictionary of [Integer, Code[20]]])`
- `ShowDocDim()`
- `PhysInvtOrderLinesExist(): Boolean`
- `UpdateAllLineDim(NewParentDimSetID: Integer; OldParentDimSetID: Integer)`

Plus 5 local procedures.

## Triggers

OnDelete, OnInsert, OnModify, OnRename

## Relations

- drill-down page [Page 5876 "Physical Inventory Orders"](../page/5876.md)
- lookup page [Page 5876 "Physical Inventory Orders"](../page/5876.md)
- Last Posting No.: TableRelation [Table 112 "Sales Invoice Header"](../table/112.md)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Reason Code: TableRelation [Table 231 "Reason Code"](../table/231.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)
- Person Responsible: TableRelation [Table 5200 "Employee"](../table/5200.md)
- No. Finished Recordings: CalcFormula [Table 5877 "Phys. Invt. Record Header"](../table/5877.md)
- Comment: CalcFormula [Table 5883 "Phys. Invt. Comment Line"](../table/5883.md)
- Bin Code: TableRelation [Table 7354 "Bin"](../table/7354.md)

## Referenced by

7 fields in 7 objects relate to this table (TableRelation or CalcFormula).

- [Table 5876 "Phys. Invt. Order Line"](../table/5876.md): Document No.
- [Table 5877 "Phys. Invt. Record Header"](../table/5877.md): Order No.
- [Table 5881 "Pstd. Phys. Invt. Record Hdr"](../table/5881.md): Order No.
- [Table 5883 "Phys. Invt. Comment Line"](../table/5883.md): Order No.
- [Table 5886 "Exp. Phys. Invt. Tracking"](../table/5886.md): Order No
- [Table 6026 "Exp. Invt. Order Tracking"](../table/6026.md): Order No
- [Table 9050 "Warehouse Basic Cue"](../table/9050.md): Open Phys. Invt. Orders

## Pages and codeunits on this table

- [Page 30232 "APIV2 - Phys. Invt. Orders"](../page/30232.md) (source table)
- [Page 5875 "Physical Inventory Order"](../page/5875.md) (source table)
- [Page 5876 "Physical Inventory Orders"](../page/5876.md) (source table)
- [Page 5897 "Phys. Invt. Order Statistics"](../page/5897.md) (source table)
- [Codeunit 5879 "Phys. Invt. Order-Finish (Y/N)"](../codeunit/5879.md) (codeunit runs on it)
- [Codeunit 5880 "Phys. Invt. Order-Finish"](../codeunit/5880.md) (codeunit runs on it)
- [Codeunit 5881 "Phys. Invt. Order-Reopen (Y/N)"](../codeunit/5881.md) (codeunit runs on it)
- [Codeunit 5882 "Phys. Invt. Order-Reopen"](../codeunit/5882.md) (codeunit runs on it)
- [Codeunit 5883 "Phys. Invt. Order-Post (Y/N)"](../codeunit/5883.md) (codeunit runs on it)
- [Codeunit 5884 "Phys. Invt. Order-Post"](../codeunit/5884.md) (codeunit runs on it)
- [Codeunit 5885 "Phys. Invt. Order-Post + Print"](../codeunit/5885.md) (codeunit runs on it)
- [Codeunit 5886 "Phys. Invt.-Show Duplicates"](../codeunit/5886.md) (codeunit runs on it)
- [Codeunit 5887 "Phys. Invt.-Calc. Qty. All"](../codeunit/5887.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) (7 calls: `CreateDim → GetRecDefaultDimID`, `CreateDim → UpdateGlobalDimFromDimSetID`, `InitDefaultDimensionSources → AddDimSource`, …)
- [Page 456 "No. Series"](../page/456.md) (3 calls: `AssistEdit → (object)`, `InitInsert → (object)`, `InitRecord → (object)`)

## Across versions

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

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: "Phys. Invt. Order Header")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
