ProdStatusType_ReportedFinished.runCostEstimation Method [AX 2012]

Performs a cost estimation of a finished 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 runCostEstimation(
            ProdParmCostEstimation _prodParmCostEstimation, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi, 
            boolean _runningPreviousJob])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public boolean runCostEstimation(
            ProdParmCostEstimation _prodParmCostEstimation, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public boolean runCostEstimation(
            ProdParmCostEstimation _prodParmCostEstimation, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 (FPK)
          public boolean runCostEstimation(
            ProdParmCostEstimation _prodParmCostEstimation, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi])

  Microsoft Dynamics AX 2012 (SYS)
          public boolean runCostEstimation(
            ProdParmCostEstimation _prodParmCostEstimation, 
           [boolean _ask, 
            ProdPurch _prodPurch, 
            RunbaseRecsMapable _multi])

Run On

Called

Parameters

_prodParmCostEstimation
Type: ProdParmCostEstimation Table
The production cost estimation parameter. This parameter is disregarded by the method.
_ask
Type: boolean
A Boolean value that indicates whether the method is only asked if cost estimation is enabled; 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.
_runningPreviousJob
Type: boolean

Return Value

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

ExceptionCondition
Error

A finished production order does not enable cost estimation.

When cost estimation is being performed for a finished production order this method always throws an exception because when the production order is reported as finished cost estimation is no longer enabled.

Community Additions

ADD
Show: