---
title: "Codeunit 7304 Whse. Jnl.-Register Batch"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7304-whse-jnl-register-batch/
type: codeunit
id: 7304
name: "Whse. Jnl.-Register Batch"
app: "Base Application"
namespace: Microsoft.Warehouse.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7304-whse-jnl-register-batch/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 7304 Whse. Jnl.-Register Batch

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7304-whse-jnl-register-batch/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Warehouse.Journal |
| Versions | 17-28 |
| Source file | Warehouse/Journal/WhseJnlRegisterBatch.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetWhseRegNo | () | Integer | public | 17-28 | - | - |
| SetSuppressCommit | (Boolean) | - | public | 20-28 | - | - |
| CopyFieldsFromWhseJnlLineToItemJnlLine | (Record Warehouse Journal Line, var Record Item Journal Line, Decimal) | - | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCheckWhseJnlLine | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnBeforeInsertTempHandlingSpecs | (var Record Warehouse Journal Line, var Record Whse. Item Tracking Line) | 17-28 | - | - |
| Integration event | OnAfterCheckItemAvailability | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnAfterCollectTrackingInformation | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnAfterCode | (var Record Warehouse Journal Line, Record Warehouse Journal Batch, Integer) | 17-28 | - | - |
| Integration event | OnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Whse. Item Tracking Line, Record Warehouse Journal Line) | 17 | - | - |
| Integration event | OnAfterItemJnlPostLine | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnAfterPostJnlLines | (var Record Warehouse Journal Batch, var Record Warehouse Journal Line, Integer, var Codeunit Whse. Jnl.-Register Line, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckBin | (var Record Warehouse Journal Line, var Record Bin Content Buffer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Journal Line, var Boolean, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreateReservEntry | (Record Warehouse Journal Line, var Record Whse. Item Tracking Line) | 17-28 | - | - |
| Integration event | OnBeforeIncrBatchName | (var Record Warehouse Journal Line, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeRegisterLines | (var Record Warehouse Journal Line, var Record Tracking Specification) | 17-28 | - | - |
| Integration event | OnBeforeTempHandlingSpecificationInsert | (var Record Tracking Specification, Record Whse. Item Tracking Line) | 17-28 | - | - |
| Integration event | OnBeforeUpdateDeleteLines | (var Record Warehouse Journal Line, Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeWhseJnlRegisterLineRun | (var Record Warehouse Journal Line) | 17-18 | - | - |
| Integration event | OnCheckItemAvailabilityOnAfterCalcQtyOnWarehouseEntry | (var Decimal, var Decimal, var Decimal, var Record Stockkeeping Unit) | 17-28 | - | - |
| Integration event | OnCheckLinesOnBeforeCheckWhseJnlLine | (Record Warehouse Journal Line, var Boolean) | 17-28 | - | - |
| Integration event | OnCodeOnAfterWhseJnlBatchGet | (var Record Warehouse Journal Batch) | 17-28 | - | - |
| Integration event | OnCreateItemJnlLineOnBeforeExit | (Record Warehouse Journal Line, var Record Item Journal Line, var Decimal) | 17-28 | - | - |
| Integration event | OnAfterCreateItemJnlLine | (var Record Item Journal Line, Record Whse. Item Tracking Line, Record Warehouse Journal Line, Decimal) | 18-28 | - | - |
| Integration event | OnBeforeCreateTrackingSpecification | (Record Warehouse Journal Line, var Record Tracking Specification, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforePostItemJnlLine | (var Codeunit Item Jnl.-Post Line, var Record Warehouse Journal Line, Record Warehouse Journal Template, var Boolean) | 18-28 | - | - |
| Integration event | OnCreateItemJnlLineOnAfterCalcShouldCreateReservEntry | (Record Warehouse Journal Line, Record Whse. Item Tracking Line, var Boolean) | 18-28 | - | - |
| Integration event | OnCheckLinesOnAfterGetWhseItemTrkgSetup | (Record Warehouse Journal Line, var Record Item Tracking Setup) | 18-28 | - | - |
| Integration event | OnCreateTrackingSpecificationOnBeforeItemTrackingMgtGetWhseItemTrkgSetup | (Record Warehouse Journal Line, Record Whse. Item Tracking Line) | 18-28 | - | - |
| Integration event | OnBeforeWhseJnlRegisterLineRun | (var Record Warehouse Journal Line, Record Warehouse Journal Template) | 19-28 | - | - |
| Integration event | OnBeforeCopyFieldsFromWhseJnlLineToItemJnlLine | (var Record Item Journal Line, Record Warehouse Journal Line, Record Warehouse Journal Template) | 20-28 | - | - |
| Integration event | OnCreateTrackingSpecificationOnAfterItemTrackingMgtGetWhseItemTrkgSetup | (Record Warehouse Journal Line, var Record Item Tracking Setup) | 20-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
