Friday, June 22, 2018

Verify active/enabled product dimension

Below code can be used to verify active or enabled specific or all product dimensions.

   public static void main(Args _args)
     InventTable   inventTable;  
     InventDimParm  inventDimParm;  

     inventTable  = InventTable::find('ABC');  

     inventDimParm = InventDimParm::activeDimFlag(InventDimGroupSetup::newInventTable(inventTable));  

       info("Color Enabled."); 

No comments:

Post a Comment

Reindexing Dynamis AX database

Below script will create job to re-index and update statistics of dynamics ax database. In script below fill factor is used as 30%, revie...