---
title: "Codeunit 5775 Whse. Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5775-whse-management/
type: codeunit
id: 5775
name: "Whse. Management"
app: "Base Application"
namespace: Microsoft.Warehouse.Request
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5775-whse-management/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 5775 Whse. Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5775-whse-management/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| GetWhseActivSourceDocument | (Integer, Integer) | Enum Warehouse Activity Source Document | public | 17-28 | - | - |
| GetWhseJnlSourceDocument | (Integer, Integer) | Enum Warehouse Journal Source Document | public | 17-28 | - | - |
| GetWhseRqstSourceDocument | (Integer, Integer) | Enum Warehouse Request Source Document | public | 17-28 | - | - |
| GetSourceDocument | (Integer, Integer) | Integer | public | 17-28 | - | - |
| GetJournalSourceDocument | (Integer, Integer) | Enum Warehouse Journal Source Document | public | 17-28 | - | - |
| GetSourceType | (Record Whse. Worksheet Line) | Integer | public | 17-28 | - | - |
| GetOutboundDocLineQtyOtsdg | (Integer, Integer, Code[20], Integer, Integer, var Decimal, var Decimal) | - | public | 17-28 | - | - |
| SetSourceFilterForWhseRcptLine | (var Record Warehouse Receipt Line, Integer, Option, Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| SetSourceFilterForWhseShptLine | (var Record Warehouse Shipment Line, Integer, Option, Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| SetSourceFilterForPostedWhseRcptLine | (var Record Posted Whse. Receipt Line, Integer, Option, Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| SetSourceFilterForPostedWhseShptLine | (var Record Posted Whse. Shipment Line, Integer, Option, Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| GetSourceDocumentType | (Integer, Integer) | Enum Warehouse Journal Source Document | public | 19-28 | - | - |
| SetSourceFilterForWhseActivityLine | (var Record Warehouse Activity Line, Integer, Option, Code[20], Integer, Boolean) | - | public | 23-28 | - | - |
| GetSourceDocumentDoesNotExistErr | () | Text | public | 25-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterGetSrcDocLineQtyOutstanding | (Integer, Integer, Code[20], Integer, Integer, var Decimal, var Decimal) | 17-28 | - | - |
| Integration event | OnAfterGetSourceDocument | (Integer, Integer, var Option, var Boolean) | 17-23 | Pending 21.0 | Replaced by event OnAfterGetSourceDocumentType() |
| Integration event | OnBeforeGetSourceDocument | (Integer, Integer, var Option, var Boolean) | 17-23 | Pending 21.0 | Replaced by event OnBeforeGetSourceDocumentType() |
| Integration event | OnBeforeGetSourceType | (Record Whse. Worksheet Line, var Integer, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterGetJournalSourceDocument | (Integer, Integer, var Enum Warehouse Journal Source Document, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeGetJournalSourceDocument | (Integer, Integer, var Enum Warehouse Journal Source Document, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterSetSourceFilterForWhseRcptLine | (var Record Warehouse Receipt Line, Integer, Option, Code[20], Integer, Boolean) | 19-28 | - | - |
| Integration event | OnAfterSetSourceFilterForWhseShptLine | (var Record Warehouse Shipment Line, Integer, Option, Code[20], Integer, Boolean) | 19-28 | - | - |
| Integration event | OnAfterSetSourceFilterForPostedWhseRcptLine | (var Record Posted Whse. Receipt Line, Integer, Option, Code[20], Integer, Boolean) | 19-28 | - | - |
| Integration event | OnAfterSetSourceFilterForPostedWhseShptLine | (var Record Posted Whse. Shipment Line, Integer, Option, Code[20], Integer, Boolean) | 19-28 | - | - |
| Integration event | OnAfterGetSourceDocumentType | (Integer, Integer, var Enum Warehouse Journal Source Document, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeGetSourceDocumentType | (Integer, Integer, var Enum Warehouse Journal Source Document, var Boolean) | 21-28 | - | - |
| Integration event | OnAfterGetWhseRqstSourceDocument | (Enum Warehouse Journal Source Document, var Enum Warehouse Request Source Document) | 25-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.
