static void job(Args _args)
{
InventOnhand _inventOnHand;
InventTable _inventTable;
InventQtyAvailPhysical onhandQTY;
while select _inventTable
{
_inventOnHand = InventOnhand::newItemId(_inventTable.ItemId);
_inventOnHand.parmInventLocationId("ANNARBO");
onhandQTY= _inventOnHand.availPhysical();
info(strFmt("On hand QTY for item %1 - is %2",_inventTable.ItemId,onhandQTY));
}
}