ProdStatusType_Completed.runOperationScheduling Method [AX 2012]

Performs operation scheduling of a completed production order.

NoteNote

The syntax of this method varies based on the version of Microsoft Dynamics AX that you are using.


  Microsoft Dynamics AX 2012 R3
          public boolean runOperationScheduling(
            ProdParmScheduling _prodParmScheduling, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            WrkCtrScheduler_Prod _wrkCtrScheduler, 
            boolean _runningPreviousJob])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean runOperationScheduling(
            ProdParmScheduling _prodParmScheduling, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            WrkCtrScheduler_Prod _wrkCtrScheduler])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean runOperationScheduling(
            ProdParmScheduling _prodParmScheduling, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            WrkCtrScheduler_Prod _wrkCtrScheduler])

  Microsoft Dynamics AX 2012 (FPK)
          public boolean runOperationScheduling(
            ProdParmScheduling _prodParmScheduling, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            WrkCtrScheduler_Prod _wrkCtrScheduler])

  Microsoft Dynamics AX 2012 (SYS)
          public boolean runOperationScheduling(
            ProdParmScheduling _prodParmScheduling, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            WrkCtrScheduler_Prod _wrkCtrScheduler])

Run On

Called

Parameters

_prodParmScheduling
Type: ProdParmScheduling Table
The production scheduling parameter. This parameter is disregarded by the method.
_ask
Type: boolean
A Boolean value that indicates whether the method is only asked if operation scheduling is allowed; optional.
_prodPurch
Type: ProdPurch Class
The production purchase parameter. This parameter is disregarded by the method; optional.
_multi
Type: RunbaseRecsMapable Interface
A RunbaseRecsMapable parameter. This parameter is disregarded by the method; optional.
_wrkCtrScheduler
Type: WrkCtrScheduler_Prod Class
_runningPreviousJob
Type: boolean

Return Value

Type: boolean
false if the _ask parameter is true; otherwise, throws an exception.

ExceptionCondition
Error

A completed production order does not allow operation scheduling.

When operation scheduling is being performed for a completed production order, this method always throws an exception, because as soon as the production order is completed, operation scheduling is no longer allowed.

Community Additions

ADD
Show: