---
title: "Codeunit 7301 Whse. Jnl.-Register Line"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7301-whse-jnl-register-line/
type: codeunit
id: 7301
name: "Whse. Jnl.-Register Line"
app: "Base Application"
namespace: Microsoft.Warehouse.Journal
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7301-whse-jnl-register-line/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 7301 Whse. Jnl.-Register Line

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

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetWhseRegister | (Record Warehouse Register) | - | public | 17-28 | - | - |
| GetWhseRegister | (var Record Warehouse Register) | - | public | 17-28 | - | - |
| RegisterWhseJnlLine | (var Record Warehouse Journal Line) | - | public | 17-28 | - | - |
| SetWhseEntryNo | (Integer) | - | public | 17-28 | - | - |
| GetWhseEntryNo | () | Integer | public | 17-28 | - | - |
| LockTables | () | - | public | 18-28 | Pending 27.0 | This function is deprecated. Concurrent warehouse posting is always on. |
| InitWhseEntry | (var Record Warehouse Entry, Code[10], Code[20], Integer) | - | public | 19-28 | - | - |
| UpdateDefaultBinContent | (Code[20], Code[10], Code[10], Code[20]) | - | public | 19-28 | - | - |
| InsertToBinContent | (Record Warehouse Entry) | - | public | 21-28 | - | - |
| LockWarehouseTables | () | - | public | 25-28 | - | - |
| LockIfLegacyPosting | () | - | public | 25-28 | Pending 27.0 | This function is deprecated. Concurrent warehouse posting is always on. |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnInitWhseEntryCopyFromWhseJnlLine | (var Record Warehouse Entry, var Record Warehouse Journal Line, Boolean, Integer) | 17 | - | - |
| Integration event | OnAfterCode | (var Record Warehouse Journal Line, var Integer) | 17-21 | - | - |
| Integration event | OnAfterInsertWhseEntry | (var Record Warehouse Entry) | 17 | - | - |
| Integration event | OnBeforeBinContentInsert | (var Record Bin Content, Record Warehouse Entry) | 17-23 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Journal Line) | 17-19 | - | - |
| Integration event | OnBeforeGetBinForBinContent | (var Record Warehouse Entry, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertWhseEntry | (var Record Warehouse Entry) | 17 | - | - |
| Integration event | OnBeforeInsertToBinContent | (var Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnBeforeUpdateBinEmpty | (Record Warehouse Entry, var Record Bin, var Boolean) | 17-28 | - | - |
| Integration event | OnCodeOnAfterGetLastEntryNo | (var Record Warehouse Journal Line) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContentOnAfterSetFiltersForWhseEntry | (var Record Warehouse Entry, var Record Bin Content, var Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContentOnAfterSetFiltersForBinContent | (var Record Bin Content, Record Warehouse Entry, var Record Warehouse Journal Line, var Record Warehouse Register, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContentOnBeforeFieldError | (Record Bin Content, Record Warehouse Entry, var Boolean) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContentOnBeforeFromBinContentDelete | (var Record Bin Content) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContentOnBeforeCheckQuantity | (var Record Bin Content, Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnInitWhseEntryOnAfterGetToBinContent | (var Record Warehouse Entry, var Codeunit Item Tracking Management, var Record Warehouse Journal Line, var Record Warehouse Register, var Integer, var Record Bin) | 17-28 | - | - |
| Integration event | OnInsertWhseEntryOnBeforeCheckSerialNo | (Record Warehouse Entry, var Boolean) | 17-28 | - | - |
| Integration event | OnUpdateDefaultBinContentOnBeforeBinContentModify | (var Record Bin Content) | 17-28 | - | - |
| Integration event | RegisterRoundResidualOnAfterGetBin | (var Record Warehouse Journal Line, Record Warehouse Entry, Record Warehouse Entry) | 17-28 | - | - |
| Integration event | OnDeleteFromBinContenOnAfterQtyUpdate | (var Record Bin Content, var Record Warehouse Entry, var Record Warehouse Journal Line, Integer) | 17-28 | - | - |
| Integration event | OnBeforeModifyBinEmpty | (var Record Bin, Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCheckDefaultBin | (Record Warehouse Entry, var Record Bin Content, var Boolean) | 17-28 | - | - |
| Integration event | OnRegisterRoundResidualOnBeforeWhseJnlRegLineSetWhseRegister | (var Record Warehouse Entry, Record Warehouse Entry, Record Warehouse Journal Line, Record Warehouse Journal Line) | 17-24 | - | - |
| Integration event | OnInitWhseEntryCopyFromWhseJnlLine | (var Record Warehouse Entry, var Record Warehouse Journal Line, Boolean, Integer, Record Location, Code[20], var Boolean) | 18-28 | - | - |
| Integration event | OnAfterInsertWhseEntry | (var Record Warehouse Entry, var Record Warehouse Journal Line) | 18-28 | - | - |
| Integration event | OnBeforeInsertWhseEntry | (var Record Warehouse Entry, var Record Warehouse Journal Line) | 18-28 | - | - |
| Integration event | OnBeforeInsertWhseEntryProcedure | (var Record Warehouse Entry, Record Warehouse Journal Line, var Boolean) | 18-28 | - | - |
| Integration event | OnCodeBeforeInitWhseEntryFromBinCode | (Record Warehouse Journal Line, Record Warehouse Entry) | 18-28 | - | - |
| Integration event | OnDeleteDefaultBinContentOnBeforeBinContentModify | (var Record Bin Content) | 18-28 | - | - |
| Integration event | OnUpdateDefaultBinContentOnBeforeBinContent2Modify | (var Record Bin Content) | 18-28 | - | - |
| Integration event | OnDeleteFromBinContentOnAfterClearTrackingFilters | (var Record Warehouse Entry, var Record Bin Content, Record Warehouse Entry) | 18-28 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Journal Line, var Integer) | 20-25 | - | - |
| Integration event | OnBeforeDeleteFromBinContent | (var Record Warehouse Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnInitWhseEntryOnAfterCalcShouldDeleteFromBinContent | (Record Warehouse Journal Line, Record Location, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeCheckExpiration | (var Record Warehouse Entry, Record Item Tracking Code, var Boolean) | 21-28 | - | - |
| Integration event | OnDeleteFromBinContentOnAfterGetWhseItemTrkgSetup | (Record Bin Content, Record Item Tracking Setup) | 21-28 | - | - |
| Integration event | OnInsertWhseEntryOnBeforeTestFieldExpirationDate | (Record Warehouse Entry, Date, var Boolean) | 21-28 | - | - |
| Integration event | OnAfterCode | (var Record Warehouse Journal Line, var Integer, var Record Warehouse Register) | 22-28 | - | - |
| Integration event | OnBeforeBinContentInsert | (var Record Bin Content, Record Warehouse Entry, Record Bin) | 24-28 | - | - |
| Integration event | OnRegisterRoundResidualOnBeforeWhseJnlRegLineSetWhseRegister | (var Record Warehouse Entry, var Record Warehouse Entry, var Record Warehouse Journal Line, var Record Warehouse Journal Line, var Record Bin) | 25-28 | - | - |
| Integration event | OnAfterUpdateBinEmpty | (Record Warehouse Entry, Record Bin) | 25-28 | - | - |
| Integration event | OnInsertWhseRegOnBeforeInsertRecord | (var Record Warehouse Register, var Record Warehouse Journal Line, Integer) | 25-28 | - | - |
| Integration event | OnInsertWhseRegOnBeforeModifyWarehouseRegister | (var Record Warehouse Register, var Record Warehouse Journal Line, Integer) | 25-28 | - | - |
| Integration event | OnAfterSetWhseRegister | (var Record Warehouse Register) | 25-28 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Journal Line, var Integer, var Boolean) | 26-27 | - | - |
| Integration event | OnInitWhseEntryOnBeforeInitWhseEntry | (var Record Warehouse Entry, var Record Warehouse Journal Line, Code[10], Code[20], Integer, var Integer) | 28 | - | - |
| Integration event | OnBeforeCode | (var Record Warehouse Journal Line, var Integer, var Boolean, var Record Warehouse Register) | 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.
