---
title: "Codeunit 7321 Create Inventory Put-away"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/7321-create-inventory-put-away/
type: codeunit
id: 7321
name: "Create Inventory Put-away"
app: "Base Application"
namespace: Microsoft.Warehouse.Activity
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/7321-create-inventory-put-away/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 7321 Create Inventory Put-away

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/7321-create-inventory-put-away/

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

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetFilterPurchLine | (var Record Purchase Line, Record Purchase Header) | Boolean | public | 17-28 | - | - |
| SetFilterSalesLine | (var Record Sales Line, Record Sales Header) | Boolean | public | 17-28 | - | - |
| SetFilterTransferLine | (var Record Transfer Line, Record Transfer Header) | Boolean | public | 17-28 | - | - |
| SetFilterProdOrderLine | (var Record Prod. Order Line, Record Production Order) | Boolean | public | 17-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoiryPutaway |
| SetWhseRequest | (Record Warehouse Request, Boolean) | - | public | 17-28 | - | - |
| CheckSourceDoc | (Record Warehouse Request) | Boolean | public | 17-28 | - | - |
| AutoCreatePutAway | (var Record Warehouse Activity Header) | - | public | 17-28 | - | - |
| FindReservationEntry | (Integer, Integer, Code[20], Integer, Record Item Tracking Setup) | Boolean | public | 18-25 | Pending 23.0 | WhseItemTrackingSetup is a global variable, so there is no need to pass it as an argument |
| InsertWhseActivLine | (var Record Warehouse Activity Line, Decimal, Record Item Tracking Setup) | - | public | 19-25 | Pending 23.0 | WhseItemTrackingSetup is a global variable, so there is no need to pass it as an argument |
| SetSourceDocDetailsFilter | (var Record Warehouse Source Filter) | - | public | 22-28 | - | - |
| InsertWhseActivLine | (var Record Warehouse Activity Line, Decimal) | - | public | 24-28 | - | - |
| CreateWarehouseActivityLine | (Integer, Integer, Code[20], Integer, Integer, Code[10], Code[20], Code[10], Code[10], Decimal, Decimal, Decimal, Text[100], Text[50], Date, Code[20], Variant) | Decimal | public | 27-28 | - | - |
| CreatePutawayWithPutawayTemplateBinPolicy | (Integer, Integer, Code[20], Integer, Integer, Code[10], Code[20], Code[20], Code[10], Decimal, Code[10], Decimal, Decimal, Decimal, Text[100], Text[50], Date) | - | public | 27-28 | - | - |
| FindNextLineNo | () | - | public | 27-28 | - | - |
| FindReservationEntry | (Integer, Integer, Code[20], Integer) | Boolean | internal | 27-28 | - | - |
| SetReservationFound | (Boolean) | - | internal | 27-28 | - | - |
| GetDefaultBinCode | (Code[20], Code[10], Code[10]) | Code[20] | internal | 27-28 | - | - |
| GetNothingToHandleMsg | () | - | public | 27-28 | - | - |
| SetSuppressCommit | (Boolean) | - | public | 27-28 | - | - |
| RunOnBeforeFindProdOrderLine | (var Record Prod. Order Line, Record Warehouse Activity Header) | - | internal | 27-28 | - | - |
| RunOnBeforeFindProdOrderComp | (var Record Prod. Order Component, Record Warehouse Activity Header) | - | internal | 27-28 | - | - |
| RunOnBeforeCreatePutAwayLinesFromCompLoop | (var Record Warehouse Activity Header, Record Production Order, var Boolean, Record Prod. Order Component) | - | internal | 27-28 | - | - |
| RunOnBeforeCreatePutAwayLinesFromProdLoop | (var Record Warehouse Activity Header, Record Production Order, var Boolean, Record Prod. Order Line) | - | internal | 27-28 | - | - |
| RunOnBeforeFindReservationFromProdOrderLine | (var Record Prod. Order Line, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | - | internal | 27-28 | - | - |
| RunOnBeforeFindReservationFromProdOrderComponent | (var Record Prod. Order Component, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | - | internal | 27-28 | - | - |
| RunOnCreatePutawayForProdOrderLine | (var Record Prod. Order Line, var Decimal) | - | internal | 27-28 | - | - |
| RunOnCreatePutawayForProdOrderComponent | (var Record Prod. Order Component, var Decimal) | - | internal | 27-28 | - | - |
| SetRemQtyToPutAway | (Decimal) | - | public | 28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterAutoCreatePutAway | (var Record Warehouse Request, Boolean, var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterCreateInventoryPutaway | (var Record Warehouse Request, Boolean, var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterInsertWhseActivLine | (var Record Warehouse Activity Line, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnAfterUpdateWhseActivHeader | (var Record Warehouse Activity Header, var Record Warehouse Request) | 17-28 | - | - |
| Integration event | OnBeforeAutoCreatePutAwayLines | (Record Warehouse Request, var Record Warehouse Activity Header, var Boolean, var Boolean) | 17 | - | - |
| Integration event | OnBeforeNewWhseActivLineInsertFromPurchase | (var Record Warehouse Activity Line, Record Purchase Line) | 17-28 | - | - |
| Integration event | OnBeforeNewWhseActivLineInsertFromSales | (var Record Warehouse Activity Line, Record Sales Line) | 17-28 | - | - |
| Integration event | OnBeforeNewWhseActivLineInsertFromTransfer | (var Record Warehouse Activity Line, Record Transfer Line) | 17-28 | - | - |
| Integration event | OnBeforeNewWhseActivLineInsertFromProd | (var Record Warehouse Activity Line, Record Prod. Order Line) | 17-28 | Pending 27.0 | Replaced by event OnRaiseOnBeforeNewWhseActivLineInsertFromEvent |
| Integration event | OnBeforeNewWhseActivLineInsertFromComp | (var Record Warehouse Activity Line, Record Prod. Order Component) | 17-28 | Pending 27.0 | Replaced by event OnRaiseOnBeforeNewWhseActivLineInsertFromEvent |
| Integration event | OnBeforeFindPurchLine | (var Record Purchase Line, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeFindSalesLine | (var Record Sales Line, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeFindTransLine | (var Record Transfer Line, Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnBeforeFindProdOrderLine | (var Record Prod. Order Line, Record Warehouse Activity Header) | 17-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnBeforeFindProdOrderComp | (var Record Prod. Order Component, Record Warehouse Activity Header) | 17-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnBeforeGetSourceDocHeader | (var Record Warehouse Request, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeInsertWhseActivLine | (var Record Warehouse Activity Line) | 17-22 | - | - |
| Integration event | OnBeforeCheckSourceDoc | (Record Warehouse Request, var Boolean, var Boolean) | 17-28 | - | - |
| Integration event | OnBeforeCreatePutAwayLines | (Record Warehouse Request, var Record Warehouse Activity Header, var Boolean, var Boolean) | 17 | - | - |
| Integration event | OnBeforeCreatePutAwayLinesFromCompLoop | (var Record Warehouse Activity Header, Record Production Order, var Boolean, Record Prod. Order Component) | 17-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnBeforeCreatePutAwayLinesFromProdLoop | (var Record Warehouse Activity Header, Record Production Order, var Boolean, Record Prod. Order Line) | 17-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnBeforeCreatePutAwayLinesFromPurchaseLoop | (var Record Warehouse Activity Header, Record Purchase Header, var Boolean, Record Purchase Line) | 17-28 | - | - |
| Integration event | OnBeforeCreatePutAwayLinesFromSalesLoop | (var Record Warehouse Activity Header, Record Sales Header, var Boolean, Record Sales Line) | 17-28 | - | - |
| Integration event | OnBeforeCreatePutAwayLinesFromTransferLoop | (var Record Warehouse Activity Header, Record Transfer Header, var Boolean, Record Transfer Line) | 17-28 | - | - |
| Integration event | OnAutoCreatePutAwayLinesFromWhseRequest | (var Record Warehouse Request, RecordRef, var Boolean) | 17-26 | - | - |
| Integration event | OnCheckSourceDocForWhseRequest | (var Record Warehouse Request, RecordRef) | 17-26 | - | - |
| Integration event | OnCreatePutAwayFromWhseRequest | (var Record Warehouse Request, RecordRef, var Boolean) | 17-26 | - | - |
| Integration event | OnGetSourceDocHeaderForWhseRequest | (var Record Warehouse Request, var RecordRef, var Date, var Code[35]) | 17-26 | - | - |
| Integration event | OnInsertWhseActivLineOnBeforeAutoCreation | (var Record Warehouse Activity Line, var Record Tracking Specification, Boolean, Boolean, Boolean) | 17-28 | - | - |
| Integration event | OnInsertWhseActivLineOnBeforeCommit | (var Record Warehouse Activity Line, var Record Warehouse Activity Header) | 17-28 | - | - |
| Integration event | OnAfterCreatePutAwayLinesFromPurchase | (Record Purchase Header, Record Warehouse Activity Header) | 18-28 | - | - |
| Integration event | OnBeforeAutoCreatePutAwayLines | (Record Warehouse Request, var Record Warehouse Activity Header, var Boolean, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeInsertSNWhseActivLine | (var Record Warehouse Activity Line, Record Item Tracking Setup, Integer, var Boolean, var Boolean) | 18-20 | - | - |
| Integration event | OnBeforeCreatePutAwayLines | (Record Warehouse Request, var Record Warehouse Activity Header, var Boolean, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeFindReservationFromPurchaseLine | (var Record Purchase Line, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeFindReservationFromSalesLine | (var Record Sales Line, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeFindReservationFromTransferLine | (var Record Transfer Line, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnBeforeFindReservationFromProdOrderLine | (var Record Prod. Order Line, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | 18-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnBeforeFindReservationFromProdOrderComponent | (var Record Prod. Order Component, var Record Item Tracking Setup, var Codeunit Item Tracking Management, var Boolean, var Boolean) | 18-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnCodeOnAfterCreatePutAwayLines | (Record Warehouse Request, var Record Warehouse Activity Header, var Boolean, Boolean, var Boolean, var Boolean) | 18-28 | - | - |
| Integration event | OnAfterCreatePutAwayLinesFromSales | (Record Sales Header, Record Warehouse Activity Header) | 20-28 | - | - |
| Integration event | OnBeforeInsertSNWhseActivLine | (var Record Warehouse Activity Line, Record Item Tracking Setup, Integer, var Boolean, var Boolean, var Decimal) | 21-28 | - | - |
| Integration event | OnBeforeInsertWhseActivLine | (var Record Warehouse Activity Line, var Boolean) | 23-28 | - | - |
| Integration event | OnCreatePutawayForPurchaseLine | (var Record Purchase Line, var Decimal) | 23-28 | - | - |
| Integration event | OnCreatePutawayForSalesLine | (var Record Sales Line, var Decimal) | 23-28 | - | - |
| Integration event | OnCreatePutawayForTransferLine | (var Record Transfer Line, var Decimal) | 23-28 | - | - |
| Integration event | OnCreatePutawayForProdOrderLine | (var Record Prod. Order Line, var Decimal) | 23-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnCreatePutawayForProdOrderComponent | (var Record Prod. Order Component, var Decimal) | 23-28 | Pending 27.0 | Moved to codeunit MfgCreateInventoryPutaway |
| Integration event | OnGetWhseRequestOnAfterFilterGroup | (Record Warehouse Request, var Boolean, var Boolean) | 23-28 | - | - |
| Integration event | OnUpdateWhseActivHeaderOnBeforeGetLocation | (var Record Warehouse Request, var Record Warehouse Activity Header) | 23-28 | - | - |
| Integration event | OnRaiseOnBeforeNewWhseActivLineInsertFromEvent | (var Record Warehouse Activity Line, Variant, RecordRef) | 27-28 | - | - |
| Integration event | OnAutoCreatePutAwayLinesFromWhseRequest | (var Record Warehouse Request, RecordRef, var Boolean, var Variant, var Decimal, var Record Warehouse Activity Header, var Record Warehouse Source Filter, Boolean, Boolean) | 27-28 | - | - |
| Integration event | OnCheckSourceDocForWhseRequest | (var Record Warehouse Request, RecordRef, var Variant, var Boolean, var Record Warehouse Activity Header, var Record Warehouse Source Filter, Boolean, Boolean) | 27-28 | - | - |
| Integration event | OnCreatePutAwayFromWhseRequest | (var Record Warehouse Request, RecordRef, var Boolean, var Variant, var Record Warehouse Activity Header, var Record Warehouse Source Filter, Boolean, Boolean, var Decimal) | 27-28 | - | - |
| Integration event | OnGetSourceDocHeaderForWhseRequest | (var Record Warehouse Request, var RecordRef, var Date, var Code[35], var Variant) | 27-28 | - | - |
| Integration event | OnCreatePutAwayLinesFromSalesOnAfterSetRemQtyToPutAway | (var Record Sales Header, var Record Sales Line, var Record Warehouse Activity Header, var Decimal) | 27-28 | - | - |
| Internal event | OnCreateWarehouseActivityLineOnSetSourceDocument | (var Record Warehouse Activity Line, Integer) | 27-28 | - | - |
| Internal event | OnCreatePutAwayLinesFromTransferOnAfterSetRemQtyToPutAway | (var Record Transfer Header, var Record Transfer Line, var Record Warehouse Activity Header, var Decimal) | 27-28 | - | - |
| Internal event | OnCreatePutAwayLinesFromPurchaseOnAfterSetRemQtyToPutAway | (var Record Purchase Header, var Record Purchase Line, var Record Warehouse Activity Header, var Decimal) | 27-28 | - | - |
| Integration event | OnBeforeMakeWarehouseActivityHeader | (var Record Warehouse Activity Header, var Record Warehouse Activity Line, var Boolean, var Boolean) | 27-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.
