{
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;
}