WrkCtrScheduler.insertLeadTimeJob Method [AX 2012]
Inserts a lead time job to enable the engine to schedule routeless orders.
Syntax
protected RecId insertLeadTimeJob(
WrkCtrParmSchedule _wrkCtrParmSchedule,
InventRefId _refId,
InventRefId _refIdOrig,
ReqSetupDim _setupDim,
Days _leadTime,
CalendarDays _calendarDays,
BOMLevel _startCollectRefLevel,
BOMLevel _currentCollectRefLevel,
[SchedDate _minSchedDate,
SchedTime _minSchedTime])
Run On
Server
Parameters
- _wrkCtrParmSchedule
Type: WrkCtrParmSchedule Class
A WrkCtrParmSchedule object that contains the order scheduling parameters.
- _refId
Type: InventRefId Extended Data Type
The top level collect order ID.
- _refIdOrig
Type: InventRefId Extended Data Type
The original order ID.
- _setupDim
Type: ReqSetupDim Class
A ReqSetupDim object that is used to determine which calendar to use for lead times.
- _leadTime
Type: Days Extended Data Type
A lead time that is that will be used as length for the job that is created as a placeholder for the whole order.
- _calendarDays
Type: CalendarDays Extended Data Type
true if calendar days should be used; false if a 24 hours a day, seven days a week calendar is used.
- _startCollectRefLevel
Type: BOMLevel Extended Data Type
A starting route level that determines the order of the operations.
- _currentCollectRefLevel
Type: BOMLevel Extended Data Type
A current route level.
- _minSchedDate
Type: SchedDate Extended Data Type
The minimum schedule date. If forward scheduling is used this will be passed as a StartsAt constraint.
- _minSchedTime
Type: SchedTime Extended Data Type
The minimum schedule time. If forward scheduling is used this will be passed as a StartsAt constraint.
Return Value
Type: RecId Extended Data Type
A RecId object that identifies the temporary table buffer with the created placeholder job.