PurchCalcItemLine::newPurchCalcItem Method [AX 2012]

Create and initialize a new instance of the PurchCalcItemLine class.

server public static PurchCalcItemLine newPurchCalcItem(
    ItemId _itemId, 
    InventDimId _inventDimId, 
    BOMCalcItem _parentBOMCalcItem, 
   [CostingVersionId _costingVersionId, 
    BOMCalcFallBack _bomCalcFallBack, 
    CostingVersionId _fallBackVersionId, 
    InventSiteId _siteId, 
    BOMCalcExplosionMode _bomCalcExplosionMode])

Run On

Server

Parameters

_itemId
Type: ItemId Extended Data Type
The ID of the item for which the purchase cost calculation is executed.
_inventDimId
Type: InventDimId Extended Data Type
The ID of the inventory dimensions.
_parentBOMCalcItem
Type: BOMCalcItem Class
The parent cost calculation.
_costingVersionId
Type: CostingVersionId Extended Data Type
The ID of the costing version.
_bomCalcFallBack
Type: BOMCalcFallBack Enumeration
A BOMCalcFallBack enumeration value that specifies the fallback strategy used.
_fallBackVersionId
Type: CostingVersionId Extended Data Type
The fallback costing version, if the BOMCalcFallBack::Simulated enumeration value is used.
_siteId
Type: InventSiteId Extended Data Type
The site for the calculation.
_bomCalcExplosionMode
Type: BOMCalcExplosionMode Enumeration
A value from the BOMCalcExplosionMode enumeration that represents the chosen explosion mode.

Return Value

Type: PurchCalcItemLine Class
The new instance of the PurchCalcItemLine class.
Show: