Interview Questions

Wednesday, March 26, 2014

Activate configuration Dimension in Item Master

static void ActivateDimension(Args _args)
{
    InventDimSetup  InventDimSetup;
    ;
    ttsbegin;
    select forupdate InventDimSetup where  InventDimSetup.RecId == (Enter Rec ID of particular line which you want to activate)
                                       && InventDimSetup.dimGroupId == 'scsw';
     {
        info (strfmt("%1,%2", InventDimSetup.Active,InventDimSetup.RecId));
        InventDimSetup.Active = Noyes::Yes;
        InventDimSetup.Update();
        info (strfmt("%1,%2", InventDimSetup.Active,InventDimSetup.RecId));
    }
    ttscommit;
}

No comments:

Post a Comment