ProdStatusType_Completed.runHistoricalCost Method [AX 2012]

Completes a 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 runHistoricalCost(
            ProdParmHistoricalCost _prodParmHistoricalCost, 
           [boolean _ask, 
            RunbaseRecsMapable _multi, 
            boolean _runningPreviousJob])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean runHistoricalCost(
            ProdParmHistoricalCost _prodParmHistoricalCost, 
           [boolean _ask, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean runHistoricalCost(
            ProdParmHistoricalCost _prodParmHistoricalCost, 
           [boolean _ask, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 (FPK)
          public boolean runHistoricalCost(
            ProdParmHistoricalCost _prodParmHistoricalCost, 
           [boolean _ask, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 (SYS)
          public boolean runHistoricalCost(
            ProdParmHistoricalCost _prodParmHistoricalCost, 
           [boolean _ask, 
            RunbaseRecsMapable _multi])

Run On

Called

Parameters

_prodParmHistoricalCost
Type: ProdParmHistoricalCost Table
The production historical costs parameter. This parameter is disregarded by the method.
_ask
Type: boolean
A Boolean value that indicates whether the method is only asked if completing is allowed; optional.
_multi
Type: RunbaseRecsMapable Interface
A RunbaseRecsMapable parameter. This parameter is disregarded by the method; optional.
_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 successive completion.

When a completed production order is being completed again, this method always throws an exception, because as soon as the production order is completed, a successive completion is not allowed.

Community Additions

ADD
Show: