28 April 2017

How to get on hand inventory quantity or Available physical quantity in AX 2012

public InventQty onHandInventory(ItemId itemId, InventSiteId inventSiteId,InventLocationId inventLocation)
{
    InventOnhand    inventOnhand;
    InventDim       _inventDim;
    InventDimParm   inventDimParm;
    InventQty       availQty;
    //inventDim
    _inventDim.InventSiteId = inventSiteId;
    _inventDim.InventLocationId = inventLocation;
    inventDimParm.initFromInventDim(_inventDim);

    inventOnhand = inventOnhand::newParameters(itemId,_inventDim,inventDimParm);

    availQty = inventOnhand.availPhysical();
   // info(strFmt("%1",availQty));
    return availQty;

}

48 comments:

  1. Awesome post with lots of data and I have bookmarked this page for my reference. Share more ideas frequently. oracle training in chennai

    ReplyDelete
  2. Infycle Technologies, the topmost software training institute in Chennai offers Oracle PLSQL training in Chennai for freshers and students, and Tech Professionals of any field. Other demanding courses such as Java, Hadoop, Selenium, Big Data, Android, and iOS Development, Digital Marketing will also be trained with complete hands-on training. After the completion of training, the students will be sent for placement interviews in the core MNC's. Dial 7504633633 to get more info and a free demo.Best Oracle PLSQL Training in Chennai | Infycle Technologies

    ReplyDelete
  3. I feel really happy to have seen your webpage and look forward to so
    many more entertaining times reading here. Thanks once more for all
    the details.
    C#.NET Training In Chennai
    hadoop training in chennai
    software testing training in chennai

    ReplyDelete
  4. Very Informative blog thank you for sharing. Keep sharing.

    Best software training institute in Chennai. Make your career development the best by learning software courses.

    blue prism training chennai
    rpa training in chennai
    best msbi training institute in chennai

    ReplyDelete
  5. I believe there are many more pleasurable opportunities ahead for
    individuals that looked at your site.
    javascript training in chennai
    mysql training in chennai

    ReplyDelete
  6. Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more. Data science course in Chennai

    ReplyDelete
  7. href="https://istanbulolala.biz/">https://istanbulolala.biz/
    JGEİRL

    ReplyDelete

Give me the commetns and solutions

Ledger Voucher creation Framework and x++ code to create ledger voucher

 Please click her for MS reference file Below is the out of the box example reference and code. SalesInvoiceJournalPostSubBill_Extension-...