Monday, July 9, 2012

How to find On Hand Qty in AX 2012

Here's how to find On Hand Qty filtered by inventory dimension :

display Real itemOnHand()
{
ItemId                      itemId;
InventDimParm               inventDimParm;
InventSumDatePhysicalDim    inventSumDatePhysicalDim;

;

inventDimParm.initFromInventDim(this.inventDim());

return inventSumDatePhysicalDim::onHandQty(today(),this.ItemId,this.inventDim(),inventDimParm);

}
 

2 comments:

  1. this.inventDim();

    please tell me, what is the definition of inventDim() method.

    ReplyDelete
  2. Hi Namita, if i'm not mistaken this method is customised on a transaction table with inventDim() method, you could add inventDim inventDim; in the variable declaration.

    ReplyDelete