PCGenerateBOMTableAndVersion.generate Method [AX 2012]

Creates a new BOM and a BOM version for the specified component.

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 BOMId generate(
            InventDim _inventDim, 
            PCName _productModelName, 
            EcoResCategoryName _componentName, 
            ItemId _itemId, 
           [boolean _generateBOMVersion])

  Microsoft Dynamics AX 2012 R2 (SYS)
          public BOMId generate(
            InventDim _inventDim, 
            PCName _productModelName, 
            EcoResCategoryName _componentName, 
            ItemId _itemId, 
           [boolean _generateBOMVersion])

  Microsoft Dynamics AX 2012 Feature Pack (SYS)
          public BOMId generate(
            InventDim _inventDim, 
            PCName _productModelName, 
            EcoResCategoryName _componentName, 
            ItemId _itemId, 
            BOMRouteApprover _approver, 
           [boolean _generateBOMVersion])

  Microsoft Dynamics AX 2012 (FPK)
          public BOMId generate(
            InventDim _inventDim, 
            PCName _productModelName, 
            EcoResCategoryName _componentName, 
            ItemId _itemId, 
            BOMRouteApprover _approver, 
           [boolean _generateBOMVersion])

  Microsoft Dynamics AX 2012 (SYS)
          public BOMId generate(
            InventDim _inventDim, 
            PCName _productModelName, 
            EcoResCategoryName _componentName, 
            ItemId _itemId, 
            BOMRouteApprover _approver, 
           [boolean _generateBOMVersion])

Run On

Server

Parameters

_inventDim
Type: InventDim Table
The dimension that is to be attached.
_productModelName
Type: PCName Extended Data Type
The name of the product model.
_componentName
Type: EcoResCategoryName Extended Data Type
The name of the component or the sub-component.
_itemId
Type: ItemId Extended Data Type
The ID of the item that is associated with the version.
_generateBOMVersion
Type: boolean
A Boolean value that states whether a version of the BOM must be created.

Return Value

Type: BOMId Extended Data Type
The ID of the BOM that was created.

Community Additions

ADD
Show: