Interview Questions

Wednesday, May 28, 2014

How to print an Item with its Size, Color and Configuration in AX 2009

//Just copy below code and paste in your Job.

static void PrintItemWithConfigSizeColor(Args _args)
{
    InventTrans         _inventTrans;
    InventDim           _inventDim;
    ;

    while select * from _inventTrans join  _inventDim group by _inventTrans.ItemId ,_inventDim.InventColorID, _inventDim.InventSizeId,_inventDim.configId
                                                               where _inventDim.inventDimId == _inventTrans.inventDimId
        {
            print _inventTrans.ItemId;
            print _inventDim.InventColorId;
            print _inventDim.InventSizeId;
            print _inventDim.configId;
            Pause;
         }
}

No comments:

Post a Comment