Monday, December 26, 2016

Updating dimension group for an item in ax 2012

static void UpdatingDimensionGroup(Args _args)
{

     inventTable inventTable;
 
     ttsBegin;
    while select inventTable
    {
            InventTableInventoryDimensionGroups::updateDimensionGroupsForItem(curext(),      inventTable.itemid, EcoResStorageDimensionGroup::findByDimensionGroupName("XXX_SDG").RecId,    EcoResTrackingDimensionGroup::findByDimensionGroupName("XXX_TDG").RecId,inventtable.product);
    }
    ttsCommit;

}

No comments:

Post a Comment