---
id: object/codeunit/7304
type: object
title: Codeunit 7304 "Whse. Jnl.-Register Batch"
summary: Codeunit 7304 "Whse. Jnl.-Register Batch" in Base Application (Microsoft.Warehouse.Journal). 3 public procedures, 27 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: 47df5b34091c892ff721497b6be4296977322beacbe700df7f5bda667eb649db
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Warehouse/Journal/WhseJnlRegisterBatch.Codeunit.al
    title: src/Layers/W1/BaseApp/Warehouse/Journal/WhseJnlRegisterBatch.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 7304
name: Whse. Jnl.-Register Batch
namespace: Microsoft.Warehouse.Journal
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 46
  events: 27
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 10
  called_by: 5
  implements: 0
---

# Codeunit 7304 "Whse. Jnl.-Register Batch"

> Codeunit 7304 "Whse. Jnl.-Register Batch" in Base Application (Microsoft.Warehouse.Journal). 3 public procedures, 27 events, 1 event subscribers. Present since at least BC23, still in BC30, changed in BC25.

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

## Properties

| Property | Value |
|---|---|
| TableNo | Warehouse Journal Line |
| Permissions | TableData "Warehouse Journal Batch" = rimd, TableData "Warehouse Entry" = rimd, TableData "Warehouse Register" = rimd |

## Events published

- `OnCheckWhseJnlLine(var WhseJnlLine: Record "Warehouse Journal Line")` (integration)
- `OnBeforeInsertTempHandlingSpecs(var WhseJnlLine: Record "Warehouse Journal Line"; var WhseItemTrackingLine: Record "Whse. Item Tracking Line")` (integration)
- `OnAfterCheckItemAvailability(var WarehouseJournalLine: Record "Warehouse Journal Line")` (integration)
- `OnAfterCollectTrackingInformation(var WhseJnlLine: Record "Warehouse Journal Line")` (integration)
- `OnAfterCode(var WarehouseJournalLine: Record "Warehouse Journal Line"; WarehouseJournalBatch: Record "Warehouse Journal Batch"; WhseRegNo: Integer)` (integration)
- `OnAfterCreateItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; WhseItemTrackingLine: Record "Whse. Item Tracking Line"; WarehouseJournalLine: Record "Warehouse Journal Line"; QtyToHandleBase: Decimal)` (integration)
- `OnAfterItemJnlPostLine(var WhseJnlLine: Record "Warehouse Journal Line")` (integration)
- `OnAfterPostJnlLines(var WhseJnlBatch: Record "Warehouse Journal Batch"; var WhseJnlLine: Record "Warehouse Journal Line"; WhseRegNo: Integer; var WhseJnlRegisterLine: Codeunit "Whse. Jnl.-Register Line"; var SuppressCommit: Boolean)` (integration)
- `OnBeforeCheckBin(var WarehouseJournalLine: Record "Warehouse Journal Line"; var TempBinContentBuffer: Record "Bin Content Buffer" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeCode(var WarehouseJournalLine: Record "Warehouse Journal Line"; var HideDialog: Boolean; var SuppressCommit: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeCopyFieldsFromWhseJnlLineToItemJnlLine(var ItemJournalLine: Record "Item Journal Line"; WarehouseJournalLine: Record "Warehouse Journal Line"; WarehouseJournalTemplate: Record "Warehouse Journal Template")` (integration)
- `OnBeforeCreateTrackingSpecification(WarehouseJournalLine: Record "Warehouse Journal Line"; var TempHandlingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeCreateReservEntry(WarehouseJournalLine: Record "Warehouse Journal Line"; var WhseItemTrackingLine: Record "Whse. Item Tracking Line")` (integration)
- `OnBeforeIncrBatchName(var WarehouseJournalLine: Record "Warehouse Journal Line"; var IncrBatchName: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforePostItemJnlLine(var ItemJnlPostLine: Codeunit "Item Jnl.-Post Line"; var WarehouseJournalLine: Record "Warehouse Journal Line"; WarehouseJournalTemplate: Record "Warehouse Journal Template"; var IsHandled: Boolean)` (integration)
- `OnBeforeRegisterLines(var WarehouseJournalLine: Record "Warehouse Journal Line"; var TempTrackingSpecification: Record "Tracking Specification" temporary)` (integration)
- `OnBeforeTempHandlingSpecificationInsert(var TempHandlingTrackingSpecification: Record "Tracking Specification" temporary; WhseItemTrackingLine: Record "Whse. Item Tracking Line")` (integration)
- `OnBeforeUpdateDeleteLines(var WarehouseJournalLine: Record "Warehouse Journal Line"; WhseRegNo: Integer; var SkipUpdate: Boolean)` (integration)
- `OnBeforeWhseJnlRegisterLineRun(var TempWarehouseJournalLine: Record "Warehouse Journal Line" temporary; WarehouseJournalTemplate: Record "Warehouse Journal Template")` (integration)
- `OnCreateItemJnlLineOnAfterCalcShouldCreateReservEntry(WarehouseJournalLine: Record "Warehouse Journal Line"; WhseItemTrackingLine: Record "Whse. Item Tracking Line"; var ShouldCreateReservEntry: Boolean)` (integration)
- `OnCheckItemAvailabilityOnAfterCalcQtyOnWarehouseEntry(var ReservedQtyOnInventory: Decimal; var QtyOnWarehouseEntries: Decimal; var WhseJnlLineQty: Decimal; var TempSKU: Record "Stockkeeping Unit" temporary)` (integration)
- `OnCheckLinesOnAfterGetWhseItemTrkgSetup(WhseJnlLine: Record "Warehouse Journal Line"; var WhseItemTrackingSetup: Record "Item Tracking Setup")` (integration)
- `OnCheckLinesOnBeforeCheckWhseJnlLine(WarehouseJournalLine: Record "Warehouse Journal Line"; var IsHandled: Boolean)` (integration)
- `OnCodeOnAfterWhseJnlBatchGet(var WhseJnlBatch: Record "Warehouse Journal Batch")` (integration)
- `OnCreateItemJnlLineOnBeforeExit(WhseJnlLine2: Record "Warehouse Journal Line"; var ItemJnlLine: Record "Item Journal Line"; var QtytoHandleBase: Decimal)` (integration)
- `OnCreateTrackingSpecificationOnAfterItemTrackingMgtGetWhseItemTrkgSetup(WarehouseJournalLine: Record "Warehouse Journal Line"; var WhseItemTrackingSetup: Record "Item Tracking Setup")` (integration)
- `OnCreateTrackingSpecificationOnBeforeItemTrackingMgtGetWhseItemTrkgSetup(WarehouseJournalLine: Record "Warehouse Journal Line"; WhseItemTrackingLine: Record "Whse. Item Tracking Line")` (integration)

## Event subscriptions

- OnAfterInsertWhseEntry subscribes to Codeunit "Whse. Jnl.-Register Line" OnAfterInsertWhseEntry

## Procedures

- `GetWhseRegNo(): Integer`
- `CopyFieldsFromWhseJnlLineToItemJnlLine(WarehouseJournalLine: Record "Warehouse Journal Line"; var ItemJournalLine: Record "Item Journal Line"; QtyToHandleBase: Decimal)`
- `SetSuppressCommit(NewSuppressCommit: Boolean)`

Plus 15 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 7311 "Warehouse Journal Line"](../table/7311.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 6500 "Item Tracking Management"](../codeunit/6500.md) (7 calls: `CheckLines → CheckItemTrkgInfBeforePost`, `CheckLines → CollectItemTrkgInfWhseJnlLine`, `CheckLines → GetWhseItemTrkgSetup`, …)
- [Codeunit 99000830 "Create Reserv. Entry"](../codeunit/99000830.md) (5 calls: `CreateItemJnlLine → CreateEntry`, `CreateItemJnlLine → CreateReservEntryFor`, `CreateItemJnlLine → SetDates`, …)
- [Codeunit 7302 "WMS Management"](../codeunit/7302.md) (3 calls: `CheckLines → CheckWhseJnlLine`, `Code → CalcCubageAndWeight`, `UpdateTempBinContentBuffer → CalcCubageAndWeight`)
- [Codeunit 7380 "Phys. Invt. Count.-Management"](../codeunit/7380.md) (3 calls: `Code → AddToTempItemSKUList`, `Code → InitTempItemSKUList`, `Code → UpdateItemSKUListPhysInvtCount`)
- [Codeunit 308 "No. Series - Batch"](../codeunit/308.md) (2 calls: `Code → GetNextNo`, `Code → SaveState`)
- [Codeunit 22 "Item Jnl.-Post Line"](../codeunit/22.md) (1 call: `PostItemJnlLine → RunWithCheck`)
- [Codeunit 27 "Confirm Management"](../codeunit/27.md) (1 call: `CheckItemAvailability → GetResponseOrDefault`)
- [Codeunit 5402 "Unit of Measure Management"](../codeunit/5402.md) (1 call: `CopyFieldsFromWhseJnlLineToItemJnlLine → QtyRndPrecision`)
- [Codeunit 7301 "Whse. Jnl.-Register Line"](../codeunit/7301.md) (1 call: `Code → (object)`)
- [Codeunit 9500 "Sequence No. Mgt."](../codeunit/9500.md) (1 call: `Code → AllocateSeqNoBuffer`)

## Called by

- [Codeunit 7309 "Whse. Jnl.-Register+Print"](../codeunit/7309.md) (2 calls: `Code → (object)`, `Code → GetWhseRegNo`)
- [Codeunit 20454 "Qlty. Item Journal Management"](../codeunit/20454.md) (1 call: `PostWarehouseJournal → (object)`)
- [Codeunit 7300 "Whse. Jnl.-B.Register+Print"](../codeunit/7300.md) (1 call: `Code → (object)`)
- [Codeunit 7303 "Whse. Jnl.-Register"](../codeunit/7303.md) (1 call: `Code → (object)`)
- [Codeunit 7305 "Whse. Jnl.-B.Register"](../codeunit/7305.md) (1 call: `Code → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

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: "codeunit", object_name: "Whse. Jnl.-Register Batch")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
