Thursday, October 27, 2011

Find On-Hand inventory

While working on inventory module I wrote this code to find out the On-Hand inventory by using the InventOnHand class.

static void findingOnHand(Args _args)
{
ItemId itemId;
InventDim inventDim, inventDimCriteria;
InventDimParm inventDimParm;
InventOnhand inventOnhand = new InventOnhand();
;

itemId = '00200956';

inventDimCriteria.InventLocationId = '08';
inventDimParm.initFromInventDim(inventDimCriteria);

inventOnhand.parmInventDim(inventDimCriteria);
inventOnhand.parmInventDimParm(inventDimParm);
}