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;

}

54 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
  8. Great post! Getting accurate inventory data is crucial for smooth operations, and it's interesting to see how AX 2012 handles this. In the dental industry, managing supplies like dental materials and equipment is just as important. Tools like this help clinics stay efficient and ensure they always have what they need for patient care. Thanks for the helpful information.
    Dental Clinic In Hyderabad

    ReplyDelete
  9. Great post for Dynamics AX developers! The provided X++ code snippet to get the on-hand inventory quantity is clear and practical for real-world AX 2012 scenarios. It’s really helpful to have such handy reusable code for day-to-day development tasks. Thanks for sharing.Looking to master the world of digital marketing? We provide comprehensive digital marketing courses that equip you with the skills to succeed in today's fast-paced online landscape AI Powered Digital Marketing Course In Hyderabad.

    ReplyDelete

Give me the commetns and solutions

AXmodel file import in D365 F&O

 ModelUtil.exe -import -metadatastorepath=k:\aosservice\packageslocaldirectory -file=C:\Temp\DEST.axmodel