My 2p about ERP Solutions, Information Worker Solutions and other software products (mainly Microsoft Dynamics AX and Microsoft SharePoint).

24 September 2010

X++ Code Snippet: Find available quantity from the physical inventory over all storage dimensions

by Patrik Luca 0 comments

Tag



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();
}

Comments 0 comments

Patrik Luca, Ieper, BELGIUM
Feel free to use or spread all of the content on my blog. In return, linking back to my blog would be greatly appreciated. All my posts and articles are provided "AS IS" with no warranties.

Subscribe feeds via e-mail
Subscribe in your preferred RSS reader

Subscribe feeds rss Most Read Entries

Subscribe feeds rss Recent Entries

Categories

Recommended Books


Subscribe feeds rss Recent Comments

This Blog is part of the U Comment I Follow movement in blogosphere. Means the comment field of this blog is made DOFOLLOW. Spam wont be tolerated.

Blog Archive

My Blog List

Followers

Links