Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Checks whether a refill is required.
Syntax
Note
The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.
Microsoft Dynamics AX 2012 R3
server public static boolean checkAndRefill(
ItemId _itemId,
InventDim _inventDim,
WMSLocation _wmsLocation,
WMSPickingLocationRefillMin _pickingLocationRefillMin,
WMSMaxStorageQuantity _pickingLocationMaxQty,
boolean _includePickingRoutesInProgress,
boolean _overruleMaxCapacity,
boolean _throwErrors,
[PdsCWPickingLocationRefillMin _pickingLocationRefillCWMin,
PdsCWMaxStorageQuantity _pickingLocationMaxCWQty])
Microsoft Dynamics AX 2012 R2 (SYS)
server public static boolean checkAndRefill(
ItemId _itemId,
InventDim _inventDim,
WMSLocation _wmsLocation,
WMSPickingLocationRefillMin _pickingLocationRefillMin,
WMSMaxStorageQuantity _pickingLocationMaxQty,
boolean _includePickingRoutesInProgress,
boolean _overruleMaxCapacity,
boolean _throwErrors,
[PdsCWPickingLocationRefillMin _pickingLocationRefillCWMin,
PdsCWMaxStorageQuantity _pickingLocationMaxCWQty])
Microsoft Dynamics AX 2012 Feature Pack (SYS)
server public static boolean checkAndRefill(
ItemId _itemId,
InventDim _inventDim,
WMSLocation _wmsLocation,
WMSPickingLocationRefillMin _pickingLocationRefillMin,
WMSMaxStorageQuantity _pickingLocationMaxQty,
boolean _includePickingRoutesInProgress,
boolean _overruleMaxCapacity,
boolean _throwErrors,
[PdsCWPickingLocationRefillMin _pickingLocationRefillCWMin,
PdsCWMaxStorageQuantity _pickingLocationMaxCWQty])
Microsoft Dynamics AX 2012 (FPK)
server public static boolean checkAndRefill(
ItemId _itemId,
InventDim _inventDim,
WMSLocation _wmsLocation,
WMSPickingLocationRefillMin _pickingLocationRefillMin,
WMSMaxStorageQuantity _pickingLocationMaxQty,
boolean _includePickingRoutesInProgress,
boolean _overruleMaxCapacity,
boolean _throwErrors)
Microsoft Dynamics AX 2012 (SYS)
server public static boolean checkAndRefill(
ItemId _itemId,
InventDim _inventDim,
WMSLocation _wmsLocation,
WMSPickingLocationRefillMin _pickingLocationRefillMin,
WMSMaxStorageQuantity _pickingLocationMaxQty,
boolean _includePickingRoutesInProgress,
boolean _overruleMaxCapacity,
boolean _throwErrors)
Run On
Server
Parameters
- _itemId
Type: ItemId Extended Data Type
The item ID that must be refilled.
- _inventDim
Type: InventDim Table
The InventDim value that should be used for refill criteria.
- _wmsLocation
Type: WMSLocation Table
The WMSLocation that should be refilled.
- _pickingLocationRefillMin
Type: WMSPickingLocationRefillMin Extended Data Type
The InventItemLocations refill minimum limit.
- _pickingLocationMaxQty
Type: WMSMaxStorageQuantity Extended Data Type
The InventItemLocations maximum capacity quantity. If this is 0, it will correspond to an overrule of the maximum capacity.
- _includePickingRoutesInProgress
Type: boolean
A Boolean value that, when true, withdraws enabled and started WMSOrderTrans records from the physical quantity of the WMSLocation.
This parameter should be set to true if you want to include the expected demand from enabled and started picking routes.
- _overruleMaxCapacity
Type: boolean
If true, the maximum capacity setup on the items InventItemLocation will be ignored.
- _throwErrors
Type: boolean
If true, errors will be thrown, if a refill cannot be created.
- _pickingLocationRefillCWMin
Type: PdsCWPickingLocationRefillMin Extended Data Type
- _pickingLocationMaxCWQty
Type: PdsCWMaxStorageQuantity Extended Data Type
Return Value
Type: boolean
true if a refill is created; otherwise, false.
Remarks
Errors regarding illegal setup will always be thrown regardless of the value of the _throwErrors parameter.