How to get inventory on-hand in Dynamics AX 2012 Through X++
How to get inventory on-hand in Dynamics AX 2012 Through X++ InventDim inventDim; InventDimParm inventDimParm; InventOnHand inventOnHand; inventDim.InventLocationId = "01"; inventDim.modifiedField(fieldNum(inventDim,InventLocationId)); inventDimParm.initFromInventDim(inventDim); inventOnHand = InventOnHand::newItemDim("111001", inventDim, inventDimParm); inventOnhand.availPhysical();