How to check for released products currently on-hand in D365FO using x++ code?
Please advice.
I am sharing this function. It gets two arguments which are as follows:
ItemId
InventDimId
It returns on hand inventory.
public InventQtyAvailPhysical onHandInventory(ItemId _itemId, InventDimId _inventDimId)
{
InventOnhand inventOnhand;
InventDim inventDim = inventDim::find(_inventDimId);
InventDimParm inventDimParm;
inventDimParm.initFromInventDim(inventDim);
inventOnhand = InventOnhand::newParameters(_itemId, inventDim, inventDimParm);
return inventOnhand.availPhysical();
}
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,522 Super User 2024 Season 2
Martin Dráb 228,441 Most Valuable Professional
nmaenpaa 101,148