---
title: "Codeunit 7308 Replenishment"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7308-replenishment/
type: codeunit
id: 7308
name: "Replenishment"
app: "Base Application"
namespace: Microsoft.Warehouse.Worksheet
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7308-replenishment/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 7308 Replenishment

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7308-replenishment/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| ReplenishBin | (Record Bin Content, Boolean) | - | public | 17-28 | - | - |
| InsertWhseWkshLine | () | Boolean | public | 17-28 | - | - |
| SetWhseWorksheet | (Code[10], Code[10], Code[10], Boolean) | - | public | 17-28 | - | - |
| FindReplenishmtBin | (Record Bin Content, Boolean) | - | public | 19-28 | - | - |
| SetRemainQtyToReplenishBase | (Decimal) | - | public | 24-28 | - | - |
| FindBreakbulkBin | (Record Bin Content) | - | public | 24-28 | - | - |
| CreateWhseWkshLine | (Record Bin Content, Record Bin Content, Decimal) | - | public | 24-28 | - | - |
| GetTempWhseWkshLine | (var Record Whse. Worksheet Line) | - | public | 24-28 | - | - |
| UseForReplenishment | (Record Bin Content) | Boolean | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforePickAccordingToFEFO | (Record Location, Code[20], Code[10], var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnCreateWhseWkshLineOnBeforeInsertTempWhseWkshLine | (var Record Whse. Worksheet Line, var Record Bin Content) | 17-28 | - | - |
| Integration event | OnFindReplenishmtBinOnAfterFromBinContentSetFilters | (var Record Bin Content, var Record Bin Content) | 17-28 | - | - |
| Integration event | OnInsertWhseWkshLineOnAfterWhseWkshLineInsert | (var Record Whse. Worksheet Line) | 17-28 | - | - |
| Integration event | OnFindReplenishmtBinOnBeforeCalcQtyAvailToTakeBase | (Record Bin Content, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertWhseWkshLine | (var Record Whse. Worksheet Line, Boolean, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeFindReplenishmtBin | (var Record Whse. Worksheet Line, Record Bin Content, Boolean, var Integer, Code[10], Code[10], Code[10], Boolean, Decimal, var Boolean) | 17-28 | - | - |
| Integration event | OnReplenishBinOnAfterAssignExcludedQtyBase | (Record Bin Content, var Decimal) | 22-28 | - | - |
| Integration event | OnBeforeReplenishBin | (Record Bin Content, var Boolean, Decimal, Boolean) | 22-28 | - | - |
| Integration event | OnFindBreakbulkBinOnAfterFromBinContentSetFilters | (var Record Bin Content, var Record Bin Content, Record Item Unit of Measure, var Boolean) | 25-28 | - | - |
| Integration event | OnSetWhseWorksheetOnAfterWhseWorksheetLineSetFilters | (var Record Whse. Worksheet Line) | 26-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.
