WrkCtrScheduler.getProductionUnitAndWarehouse Method [AX 2012]
Retrieves the production unit and warehouse that is assigned to the route.
Syntax
protected container getProductionUnitAndWarehouse(
RecId _currentRecId,
RecId _previousRecId,
WrkCtrParmSchedule _wrkCtrParmSchedule,
ProdUnitId _prodUnitId,
InventLocationIdInput _inputWarehouse,
RouteMap _routeMap)
Run On
Server
Parameters
- _currentRecId
Type: RecId Extended Data Type
The current Record ID record identifier.
- _previousRecId
Type: RecId Extended Data Type
The previous Record ID record identifier.
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
A WrkCtrParmSchedule table buffer that contains all the scheduling parameters that are required for scheduling the production order.
- _prodUnitId
Type: ProdUnitId Extended Data Type
The previous ProdUnitId production unit identifier.
- _inputWarehouse
Type: InventLocationIdInput Extended Data Type
The previous InventLocationIdInput warehouse identifier.
- _routeMap
Type: RouteMap Map
A RouteMap table map that has the current route.
Return Value
Type: container
A container that contains the identifier of the current record, the production unit identifier and the input warehouse identifier.