Friday, 2 February 2018

To put an item on-hold in AX2012

static void onhold(Args _args)
{
    InventItemInventSetup inventItemInventSetup;

    while select forupdate inventItemInventSetup where inventItemInventSetup.ItemId=="1111111111"
    {
     if (inventItemInventSetup.InventDimId == "TH02-000001")
      {
        ttsBegin;
        inventItemInventSetup.Stopped = NoYes::No;
        inventItemInventSetup.update();
        ttsCommit;
        info("success");
      }
    }
}

No comments:

Post a Comment

job to Update Internal Customers - custTable - AX2012 in all companies (crosscompany)

UpdateInternalCustomers using cross Company in AX2012 we can update the custTable Table in all the companies in AX     static void KTI_...