Codeunit "Mfg. Create Put-away"

ID 99000893
Namespace: Microsoft.Warehouse.Activity

Properties

Name Value
Permissions tabledata "Production Order" = rm, tabledata "Prod. Order Line" = rm

Methods

SetValues

procedure SetValues(NewAssignedID: Code[50], NewSortActivity: Enum "Whse. Activity Sorting Method", NewDoNotFillQtytoHandle: Boolean, BreakbulkFilter2: Boolean)

Parameters

Name Type Description
NewAssignedID Code[50]
NewSortActivity Enum Microsoft.Warehouse.Activity."Whse. Activity Sorting Method"
NewDoNotFillQtytoHandle Boolean
BreakbulkFilter2 Boolean

GetWhseActivHeaderNo

procedure GetWhseActivHeaderNo(var FirstPutAwayNo: Code[20], var LastPutAwayNo: Code[20])

Parameters

Name Type Description
FirstPutAwayNo Code[20]
LastPutAwayNo Code[20]

EverythingIsHandled

procedure EverythingIsHandled(): Boolean

Returns

Type Description
Boolean

GetFirstPutAwayDocument

procedure GetFirstPutAwayDocument(var WhseActivHeader: Record "Warehouse Activity Header"): Boolean

Parameters

Name Type Description
WhseActivHeader Table Microsoft.Warehouse.Activity."Warehouse Activity Header"

Returns

Type Description
Boolean

GetNextPutAwayDocument

procedure GetNextPutAwayDocument(var WhseActivHeader: Record "Warehouse Activity Header"): Boolean

Parameters

Name Type Description
WhseActivHeader Table Microsoft.Warehouse.Activity."Warehouse Activity Header"

Returns

Type Description
Boolean

GetMessageText

procedure GetMessageText(var ErrorText: Text)

Parameters

Name Type Description
ErrorText Text

UpdateTempWhseItemTrkgLines

procedure UpdateTempWhseItemTrkgLines(PostedWhseRcptLine: Record "Posted Whse. Receipt Line", SourceType: Integer)

Parameters

Name Type Description
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
SourceType Integer

SetCalledFromPutAwayWorksheet

procedure SetCalledFromPutAwayWorksheet(NewCalledFromPutAwayWorksheet: Boolean)

Parameters

Name Type Description
NewCalledFromPutAwayWorksheet Boolean

Events

OnAfterGetItemAndSKU

[IntegrationEvent(False,False)]
local procedure OnAfterGetItemAndSKU(Location: Record Location, var Item: Record Item, var StockkeepingUnit: Record "Stockkeeping Unit")

Parameters

Name Type Description
Location Table Microsoft.Inventory.Location.Location
Item Table Microsoft.Inventory.Item.Item
StockkeepingUnit Table Microsoft.Inventory.Location."Stockkeeping Unit"

OnAfterGetLocation

[IntegrationEvent(False,False)]
local procedure OnAfterGetLocation(LocationCode: Code[10], var Location: Record Location, var PostedWhseRcptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
LocationCode Code[10]
Location Table Microsoft.Inventory.Location.Location
PostedWhseRcptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnAfterGetMessageText

[IntegrationEvent(False,False)]
local procedure OnAfterGetMessageText(var MessageText: Text)

Parameters

Name Type Description
MessageText Text

OnAfterGetWhseActivHeaderNo

[IntegrationEvent(False,False)]
local procedure OnAfterGetWhseActivHeaderNo(var FirstPutAwayNo: Code[20], var LastPutAwayNo: Code[20])

Parameters

Name Type Description
FirstPutAwayNo Code[20]
LastPutAwayNo Code[20]

OnAfterSetValues

[IntegrationEvent(False,False)]
local procedure OnAfterSetValues(var AssignedID: Code[50], var SortActivity: Enum "Whse. Activity Sorting Method", var DoNotFillQtytoHandle: Boolean, var BreakbulkFilter: Boolean)

Parameters

Name Type Description
AssignedID Code[50]
SortActivity Enum Microsoft.Warehouse.Activity."Whse. Activity Sorting Method"
DoNotFillQtytoHandle Boolean
BreakbulkFilter Boolean

OnBeforeAssignQtyToPutAwayForBinMandatory

[IntegrationEvent(False,False)]
local procedure OnBeforeAssignQtyToPutAwayForBinMandatory(Item: Record Item, Location: Record Location, var QtyToPutAwayBase: Decimal, var RemQtyToPutAwayBase: Decimal)

Parameters

Name Type Description
Item Table Microsoft.Inventory.Item.Item
Location Table Microsoft.Inventory.Location.Location
QtyToPutAwayBase Decimal
RemQtyToPutAwayBase Decimal

OnBeforeCalcAvailCubageAndWeight

[IntegrationEvent(False,False)]
local procedure OnBeforeCalcAvailCubageAndWeight(var Bin: Record Bin, PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", PutAwayItemUOM: Record "Item Unit of Measure", var QtyToPutAwayBase: Decimal, var IsHandled: Boolean, PutAwayTemplLine: Record "Put-away Template Line")

Parameters

Name Type Description
Bin Table Microsoft.Warehouse.Structure.Bin
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PutAwayItemUOM Table Microsoft.Inventory.Item."Item Unit of Measure"
QtyToPutAwayBase Decimal
IsHandled Boolean
PutAwayTemplLine Table Microsoft.Warehouse.Activity."Put-away Template Line"

OnBeforeEverythingIsHandled

[IntegrationEvent(False,False)]
local procedure OnBeforeEverythingIsHandled(var EverythingHandled: Boolean)

Parameters

Name Type Description
EverythingHandled Boolean

OnBeforeGetPutAwayTemplate

[IntegrationEvent(False,False)]
local procedure OnBeforeGetPutAwayTemplate(SKU: Record "Stockkeeping Unit", Item: Record Item, Location: Record Location, var PutAwayTemplHeader: Record "Put-away Template Header", var IsHandled: Boolean)

Parameters

Name Type Description
SKU Table Microsoft.Inventory.Location."Stockkeeping Unit"
Item Table Microsoft.Inventory.Item.Item
Location Table Microsoft.Inventory.Location.Location
PutAwayTemplHeader Table Microsoft.Warehouse.Activity."Put-away Template Header"
IsHandled Boolean

OnBeforeGetFirstPutAwayDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeGetFirstPutAwayDocument(var TempWarehouseActivityHeader: Record "Warehouse Activity Header" temporary)

Parameters

Name Type Description
TempWarehouseActivityHeader Table Microsoft.Warehouse.Activity."Warehouse Activity Header"

OnBeforeGetNextPutAwayDocument

[IntegrationEvent(False,False)]
local procedure OnBeforeGetNextPutAwayDocument(var TempWarehouseActivityHeader: Record "Warehouse Activity Header" temporary)

Parameters

Name Type Description
TempWarehouseActivityHeader Table Microsoft.Warehouse.Activity."Warehouse Activity Header"

OnFindBin

[IntegrationEvent(False,False)]
local procedure OnFindBin(PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", PutAwayTemplateLine: Record "Put-away Template Line", var Bin: Record Bin, var BinFound: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PutAwayTemplateLine Table Microsoft.Warehouse.Activity."Put-away Template Line"
Bin Table Microsoft.Warehouse.Structure.Bin
BinFound Boolean
IsHandled Boolean

OnFindBinContent

[IntegrationEvent(False,False)]
local procedure OnFindBinContent(PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", PutAwayTemplateLine: Record "Put-away Template Line", var BinContent: Record "Bin Content", var BinContentFound: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PutAwayTemplateLine Table Microsoft.Warehouse.Activity."Put-away Template Line"
BinContent Table Microsoft.Warehouse.Structure."Bin Content"
BinContentFound Boolean
IsHandled Boolean

OnNextBin

[IntegrationEvent(False,False)]
local procedure OnNextBin(PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", PutAwayTemplateLine: Record "Put-away Template Line", var Bin: Record Bin, var BinFound: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PutAwayTemplateLine Table Microsoft.Warehouse.Activity."Put-away Template Line"
Bin Table Microsoft.Warehouse.Structure.Bin
BinFound Boolean
IsHandled Boolean

OnNextBinContent

[IntegrationEvent(False,False)]
local procedure OnNextBinContent(PostedWhseReceiptLine: Record "Posted Whse. Receipt Line", PutAwayTemplateLine: Record "Put-away Template Line", var BinContent: Record "Bin Content", var BinContentFound: Boolean, var IsHandled: Boolean)

Parameters

Name Type Description
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"
PutAwayTemplateLine Table Microsoft.Warehouse.Activity."Put-away Template Line"
BinContent Table Microsoft.Warehouse.Structure."Bin Content"
BinContentFound Boolean
IsHandled Boolean

OnUpdateTempWhseItemTrkgLines

[IntegrationEvent(False,False)]
local procedure OnUpdateTempWhseItemTrkgLines(var TempWhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary, PostedWhseReceiptLine: Record "Posted Whse. Receipt Line")

Parameters

Name Type Description
TempWhseItemTrackingLine Table Microsoft.Warehouse.Tracking."Whse. Item Tracking Line"
PostedWhseReceiptLine Table Microsoft.Warehouse.History."Posted Whse. Receipt Line"

OnCalcAvailCubageAndWeightOnBeforeCalcCubageAndWeight

[IntegrationEvent(False,False)]
local procedure OnCalcAvailCubageAndWeightOnBeforeCalcCubageAndWeight(var Bin: Record Bin, var AvailPerCubageBase: Decimal, var AvailPerWeightBase: Decimal, var IsHandled: Boolean)

Parameters

Name Type Description
Bin Table Microsoft.Warehouse.Structure.Bin
AvailPerCubageBase Decimal
AvailPerWeightBase Decimal
IsHandled Boolean

OnBeforeCreateWhsePutAwayForProdOutput

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateWhsePutAwayForProdOutput(var TempProductionOrderForWhsePutAwayForProdOutput: Record "Production Order" temporary)

Parameters

Name Type Description
TempProductionOrderForWhsePutAwayForProdOutput Table Microsoft.Manufacturing.Document."Production Order"

OnBeforeFindBinFromBinContentForProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindBinFromBinContentForProdOrderLine(ProdOrderLine: Record "Prod. Order Line", var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary, var BinContentQtyBase: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TempProdOrdLineTrackingBuff Table Microsoft.Inventory.Tracking."Prod. Ord. Line Tracking Buff."
BinContentQtyBase Decimal

OnBeforeFindBinForProdOrderLine

[IntegrationEvent(False,False)]
local procedure OnBeforeFindBinForProdOrderLine(ProdOrderLine: Record "Prod. Order Line", var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary, var BinContentQtyBase: Decimal)

Parameters

Name Type Description
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TempProdOrdLineTrackingBuff Table Microsoft.Inventory.Tracking."Prod. Ord. Line Tracking Buff."
BinContentQtyBase Decimal

OnBeforeCreateWhsePutAwayForProdOrder

[IntegrationEvent(False,False)]
local procedure OnBeforeCreateWhsePutAwayForProdOrder(var ProductionOrder: Record "Production Order")

Parameters

Name Type Description
ProductionOrder Table Microsoft.Manufacturing.Document."Production Order"

OnCreateNewWhseActivityForProdOrderLineOnBeforeValidateQuantity

[IntegrationEvent(False,False)]
local procedure OnCreateNewWhseActivityForProdOrderLineOnBeforeValidateQuantity(var WarehouseActivityLine: Record "Warehouse Activity Line", ProdOrderLine: Record "Prod. Order Line", var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary)

Parameters

Name Type Description
WarehouseActivityLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TempProdOrdLineTrackingBuff Table Microsoft.Inventory.Tracking."Prod. Ord. Line Tracking Buff."

OnCreateNewWhseActivityForProdOrderLineOnAfterSetQtyToHandle

[IntegrationEvent(False,False)]
local procedure OnCreateNewWhseActivityForProdOrderLineOnAfterSetQtyToHandle(var WarehouseActivityLine: Record "Warehouse Activity Line", ProdOrderLine: Record "Prod. Order Line", var TempProdOrdLineTrackingBuff: Record "Prod. Ord. Line Tracking Buff." temporary, DoNotFillQtytoHandle: Boolean)

Parameters

Name Type Description
WarehouseActivityLine Table Microsoft.Warehouse.Activity."Warehouse Activity Line"
ProdOrderLine Table Microsoft.Manufacturing.Document."Prod. Order Line"
TempProdOrdLineTrackingBuff Table Microsoft.Inventory.Tracking."Prod. Ord. Line Tracking Buff."
DoNotFillQtytoHandle Boolean

See also