---
id: object/table/5766
type: object
title: Table 5766 "Warehouse Activity Header"
summary: Table 5766 "Warehouse Activity Header" in Base Application (Microsoft.Warehouse.Activity). 33 fields, 17 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24-29.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "29"
  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: eb48d91860b95004b32cf313a8fc46c391b2c1f49b029b03efaebffd0b122f6c
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Warehouse/Activity/WarehouseActivityHeader.Table.al
    title: src/Layers/W1/BaseApp/Warehouse/Activity/WarehouseActivityHeader.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/warehouse-how-to-move-items-ad-hoc-in-basic-warehousing
    - https://learn.microsoft.com/dynamics365/business-central/warehouse-move-items
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/warehouse-management/internal-warehouse-processes/move-items
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/8905
object_type: table
object_id: 5766
name: Warehouse Activity Header
namespace: Microsoft.Warehouse.Activity
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 33
  procedures: 38
  events: 11
  subscribers: 0
relations:
  out: 14
  referenced_by: 16
  pages: 13
  extended_by: 1
  event_subscribers: 2
  calls: 3
  called_by: 0
  implements: 0
---

# Table 5766 "Warehouse Activity Header"

> Table 5766 "Warehouse Activity Header" in Base Application (Microsoft.Warehouse.Activity). 33 fields, 17 public procedures, 11 events. Present since at least BC23, still in BC30, changed in BC24-29.

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

Learn documents this table through its pages: [Page 7382 "Inventory Movement"](../page/7382.md) (2 Learn pages), [Page 7315 "Warehouse Movement"](../page/7315.md) (1), [Page 9314 "Warehouse Movements"](../page/9314.md) (1), [Page 9330 "Inventory Movements"](../page/9330.md) (1).

## Properties

| Property | Value |
|---|---|
| Caption | Warehouse Activity 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 | Type | Enum "Warehouse Activity Type" | Specifies the type of activity, such as Put-away, that the warehouse performs on the lines that are attached to the header. | enum [Enum 5767 "Warehouse Activity Type"](../enum/5767.md) |
| 2 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. |  |
| 3 | Location Code | Code[10] | Specifies the code for the location where the warehouse activity takes place. | TableRelation [Table 14 "Location"](../table/14.md) (Location where("Use As In-Transit" = const(false))) |
| 4 | Assigned User ID | Code[50] | Specifies the ID of the user who is responsible for the document. | TableRelation [Table 7301 "Warehouse Employee"](../table/7301.md) ("Warehouse Employee" where("Location Code" = field("Location Code"))); DataClassification EndUserIdentifiableInformation |
| 5 | Assignment Date | Date | Specifies the date when the user was assigned the activity. | not editable |
| 6 | Assignment Time | Time | Specifies the time when the user was assigned the activity. | not editable |
| 7 | Sorting Method | Enum "Whse. Activity Sorting Method" | Specifies the method by which the lines are sorted on the warehouse header, such as Item or Document. | enum [Enum 7300 "Whse. Activity Sorting Method"](../enum/7300.md) |
| 9 | No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 10 | Comment | Boolean | — | FlowField: exist("Warehouse Comment Line" where("Table Name" = const("Whse. Activity Header"), Type = field(Type), "No." = field("No."))); not editable |
| 12 | No. Printed | Integer | — | not editable |
| 13 | No. of Lines | Integer | Specifies the number of lines in the warehouse activity document. | FlowField: count("Warehouse Activity Line" where("Activity Type" = field(Type), "No." = field("No."), "Source Type" = field("Source Type Filter"), "Source Subtype" = field("Source Subtype Filter"), "Source No." = field("Source No. Filter"), "Location Code" = field("Location Filter"))); not editable |
| 14 | Source Type Filter | Integer | — | FlowFilter |
| 15 | Source Subtype Filter | Option | — | FlowFilter; OptionCaption: 0,1,2,3,4,5,6,7,8,9,10 |
| 16 | Source No. Filter | Code[250] | — | FlowFilter |
| 17 | Location Filter | Code[250] | — | TableRelation [Table 14 "Location"](../table/14.md); FlowFilter |
| 20 | Posting Date | Date | Specifies the date when the warehouse activity should be recorded as being posted. |  |
| 61 | Registering No. | Code[20] | — |  |
| 62 | Last Registering No. | Code[20] | — | TableRelation [Table 5772 "Registered Whse. Activity Hdr."](../table/5772.md) (if (Type = const("Put-away")) "Registered Whse. Activity Hdr."."No." where(Type = const("Put-away")) else if (Type = const(Pick)) "Registered Whse. Activity Hdr."."No." where(Type = const(Pick)) else if (Type = const(Movement)) "Registered Whse. Activity Hdr."."No." where(Type = const(Movement))); not editable |
| 63 | Registering No. Series | Code[20] | — | TableRelation [Table 308 "No. Series"](../table/308.md) (No. Series) |
| 7303 | Date of Last Printing | Date | — | not editable |
| 7304 | Time of Last Printing | Time | — | not editable |
| 7305 | Breakbulk Filter | Boolean | Specifies that the intermediate Take and Place lines will not show as put-away, pick, or movement lines, when the quantity in the larger unit of measure is being put-away, picked or moved completely. |  |
| 7306 | Source No. | Code[20] | Specifies the number of the source document that the entry originates from. |  |
| 7307 | Source Document | Enum "Warehouse Activity Source Document" | Specifies the type of document that the line relates to. | enum [Enum 5768 "Warehouse Activity Source Document"](../enum/5768.md) |
| 7308 | Source Type | Integer | — |  |
| 7309 | Source Subtype | Option | — | OptionCaption: 0,1,2,3,4,5,6,7,8,9,10; not editable |
| 7310 | Destination Type | enum "Warehouse Destination Type" | Specifies information about the type of destination, such as customer or vendor, associated with the warehouse activity. | enum [Enum 7310 "Warehouse Destination Type"](../enum/7310.md) |
| 7311 | Destination No. | Code[20] | Specifies the number or the code of the customer or vendor that the line is linked to. | TableRelation [Table 14 "Location"](../table/14.md), [Table 18 "Customer"](../table/18.md), [Table 23 "Vendor"](../table/23.md) (if ("Destination Type" = const(Vendor)) Vendor else if ("Destination Type" = const(Customer)) Customer else if ("Destination Type" = const(Location)) Location else if ("Destination Type" = const(Item)) Item else if ("Destination Type" = const("Sales Order")) "Sales Header"."No." where("Document Type...) |
| 7312 | External Document No. | Code[35] | Specifies a document number that refers to the customer's or vendor's numbering system. |  |
| 7313 | Expected Receipt Date | Date | Specifies the date you expect the items to be available in your warehouse. If you leave the field blank, it will be calculated as follows: Planned Receipt Date + Safety Lead Time + Inbound Warehouse Handling Time = Expected Receipt Date. |  |
| 7314 | Shipment Date | Date | Specifies when items on the document are shipped or were shipped. A shipment date is usually calculated from a requested delivery date plus lead time. |  |
| 7315 | External Document No.2 | Code[35] | Specifies an additional part of the document number that refers to the customer's or vendor's numbering system. |  |
| 7316 | Do Not Fill Qty. to Handle | Boolean | — |  |

## Keys

- Key1: Type, No. (clustered)
- Key2: Location Code, Shipment Date
- Key3: Source Document, Source No., Location Code
- Key4: Assigned User ID

## Events published

- `OnAfterDeleteWhseActivHeader(var WarehouseActivityHeader: Record "Warehouse Activity Header")` (integration)
- `OnAfterGetNoSeriesCode(var WarehouseActivityHeader: Record "Warehouse Activity Header"; var NoSeriesCode: Code[20])` (integration)
- `OnBeforeErrorIfUserIsNotWhseEmployee(LocationCode: Code[10]; var IsHandled: Boolean)` (integration)
- `OnBeforeGetUserLocation(var LocationCode: Code[10]; var IsHandled: Boolean)` (integration)
- `OnBeforeSortWhseDoc(var WarehouseActivityHeader: Record "Warehouse Activity Header"; var IsHandled: Boolean)` (integration)
- `OnCaseSortWhseDoc(WarehouseActivityHeader: Record "Warehouse Activity Header"; var WarehouseActivityLine: Record "Warehouse Activity Line"; var SequenceNo: Integer)` (integration)
- `OnBeforeGetRegisteringNoSeriesCode(var WarehouseActivityHeader: Record "Warehouse Activity Header"; WarehouseSetup: Record "Warehouse Setup"; var Result: Code[20]; var IsHandled: Boolean)` (integration)
- `OnAfterSortWhseDoc(var WarehouseActivityHeader: Record "Warehouse Activity Header")` (integration)
- `OnSortWhseDocByShelfOrBinOnBeforeWhseActivLine2Find(var WarehouseActivityLine2: Record "Warehouse Activity Line"; var TempWarehouseActivityLine: Record "Warehouse Activity Line" temporary)` (integration)
- `OnValidateSourceDocumentOnAssignSourceType(var WarehouseActivityHeader: Record "Warehouse Activity Header")` (integration)
  - subscribers: [Codeunit 5996 "Prod. Order Warehouse Mgt."](../codeunit/5996.md) OnValidateSourceDocumentOnAssignSourceType
- `OnProdWhseHandlingIsInventoryPutaway(Location: Record Location; var Result: Boolean)` (internal)
  - subscribers: [Codeunit 5996 "Prod. Order Warehouse Mgt."](../codeunit/5996.md) OnProdWhseHandlingIsInventoryPutaway

## Procedures

- `AssistEdit(OldWhseActivHeader: Record "Warehouse Activity Header"): Boolean`
- `SortWhseDoc()`
- `SortWhseDocByShelfOrBin(var WhseActivLine2: Record "Warehouse Activity Line"; var SequenceNo: Integer)`
- `SortLinesBinShelf(var WarehouseActivityLineParam: Record "Warehouse Activity Line"; var SeqNo: Integer; SortOrder: Option Bin,Shelf)`
- `SetActivityFilter(var WhseActivLineFrom: Record "Warehouse Activity Line"; var WhseActivLineTo: Record "Warehouse Activity Line")`
- `LookupActivityHeader(var CurrentLocationCode: Code[10]; var WhseActivHeader: Record "Warehouse Activity Header")`
- `LineExist(): Boolean`
- `FindFirstAllowedRec(Which: Text[1024]): Boolean`
- `FindNextAllowedRec(Steps: Integer): Integer`
- `ErrorIfUserIsNotWhseEmployee()`
- `GetUserLocation(): Code[10]`
- `Lock()`
- `BinCodeMandatory(): Boolean`
- `IsInvoiceNoMandatory(): Boolean` (internal)
- `AssignToCurrentUser()` (internal)
- `ProdWhseHandlingIsInventoryPutaway(Location: Record Location): Boolean` (internal)
- `PostInboundTransferInOneStep(): Boolean` (internal): Determines whether the inbound transfer should be posted in one step.

Plus 10 local procedures.

## Triggers

OnDelete, OnInsert, OnRename

## Relations

- lookup page [Page 5774 "Warehouse Activity List"](../page/5774.md)
- Destination No.: TableRelation [Table 14 "Location"](../table/14.md) (conditional)
- Location Code: TableRelation [Table 14 "Location"](../table/14.md)
- Location Filter: TableRelation [Table 14 "Location"](../table/14.md)
- Destination No.: TableRelation [Table 18 "Customer"](../table/18.md) (conditional)
- Destination No.: TableRelation [Table 23 "Vendor"](../table/23.md) (conditional)
- Destination No.: TableRelation [Table 27 "Item"](../table/27.md) (conditional)
- No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Registering No. Series: TableRelation [Table 308 "No. Series"](../table/308.md)
- Destination No.: TableRelation [Table 36 "Sales Header"](../table/36.md) (conditional)
- No. of Lines: CalcFormula [Table 5767 "Warehouse Activity Line"](../table/5767.md)
- Comment: CalcFormula [Table 5770 "Warehouse Comment Line"](../table/5770.md)
- Last Registering No.: TableRelation [Table 5772 "Registered Whse. Activity Hdr."](../table/5772.md) (conditional)
- Assigned User ID: TableRelation [Table 7301 "Warehouse Employee"](../table/7301.md)

## Referenced by

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

- [Table 9051 "Warehouse WMS Cue"](../table/9051.md): Movements - All, Picks - All, Put-aways - All, Unassigned Movements, Unassigned Picks, Unassigned Put-aways
- [Table 9058 "Warehouse Worker WMS Cue"](../table/9058.md): My Movements, My Picks, My Put-aways, Unassigned Movements, Unassigned Picks, Unassigned Put-aways
- [Table 9050 "Warehouse Basic Cue"](../table/9050.md): Invt. Picks Until Today, Invt. Put-aways Until Today
- [Table 9056 "Manufacturing Cue"](../table/9056.md): Invt. Picks to Production, Invt. Put-aways from Prod.

## Pages and codeunits on this table

- [Page 5770 "Warehouse Put-away"](../page/5770.md) (source table)
- [Page 5774 "Warehouse Activity List"](../page/5774.md) (source table)
- [Page 5779 "Warehouse Pick"](../page/5779.md) (source table)
- [Page 7315 "Warehouse Movement"](../page/7315.md) (source table)
- [Page 7375 "Inventory Put-away"](../page/7375.md) (source table)
- [Page 7377 "Inventory Pick"](../page/7377.md) (source table)
- [Page 7382 "Inventory Movement"](../page/7382.md) (source table)
- [Page 9312 "Warehouse Put-aways"](../page/9312.md) (source table)
- [Page 9313 "Warehouse Picks"](../page/9313.md) (source table)
- [Page 9314 "Warehouse Movements"](../page/9314.md) (source table)
- [Page 9315 "Inventory Put-aways"](../page/9315.md) (source table)
- [Page 9316 "Inventory Picks"](../page/9316.md) (source table)
- [Page 9330 "Inventory Movements"](../page/9330.md) (source table)
- [Codeunit 5779 "Whse.-Printed"](../codeunit/5779.md) (codeunit runs on it)
- [Codeunit 7321 "Create Inventory Put-away"](../codeunit/7321.md) (codeunit runs on it)
- [Codeunit 7322 "Create Inventory Pick/Movement"](../codeunit/7322.md) (codeunit runs on it)

## Extended by

- [Table extension 99000770 "Mfg. Warehouse Activity Header"](../tableextension/99000770.md)

## 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 7302 "WMS Management"](../codeunit/7302.md) (3 calls: `ErrorIfUserIsNotWhseEmployee → CheckUserIsWhseEmployee`, `FindFirstAllowedRec → LocationIsAllowedToView`, `FindNextAllowedRec → LocationIsAllowedToView`)
- [Page 456 "No. Series"](../page/456.md) (2 calls: `AssistEdit → (object)`, `OnInsert → (object)`)
- [Codeunit 99 "Posting Selection Management"](../codeunit/99.md) (1 call: `IsInvoiceNoMandatory → IsPostingInvoiceMandatoryPurchase`)

## Recent changes

- 2026-07-17 [#8905 [Master] Different source reference on reservation entries created directly from Job Planning Line and via a warehouse pick.](../../changes/bcapps/8905.md) (main, BC30, fix)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-29

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