This X++ Code Snippet post describes how to find the available quantity from the physical inventory over all storage dimensions (it is, without taking into account site, warehouse, batch number, location, pallet id or serial number) for a particular item.
X++ Code Snippet: Find available quantity from the physical inventory over all storage dimensions
display InventQtyAvailPhysical inventQtyAvailPhysical(
ItemId _itemId)
{
InventOnHand inventOnHand = new InventOnHand();
InventDimParm inventDimParm;
;
inventDimParm.initFromInventDim(
InventDim::findOrCreatedBlank());
inventOnHand.parmInventDimParm(inventDimParm);
inventOnHand.parmItemId(_itemId);
return inventOnHand.availPhysical();
}
Post a Comment