Hi Everybody!!
I have a problem and it would be great if you guys could please share some light about it. In a nutshell, I cannot find, in SQL, the number of items per Unit of Measure.
So far, this is what I have:
* OITM <- That's the Item Master Table,
* OUOM <- That's the Unit of Measure's Master Table,
* ITM12 <- That's the list of Unit of Measures that can be used for purchases and sales, and it is a direct link between the Item (OITM) and the Units of Measure (OUOM). However, It doesn't have a direct conversion between the Inventory Unit of Measure (OITM.InvntryUom) and the Sales UoM (OUOM.UoMCode).
The query is as follows:
Select OITM.ItemCode, InvntryUom, OUOM.UoMCode, ITM12.UoMType, ITM12.*
From OITM
Join ITM12 on ((OITM.ItemCode = ITM12.ItemCode))
Join OUOM on ((ITM12.UoMEntry = OUOM.UoMEntry))
Where (OITM.ItemCode = 'R00001')
And (OUOM.UoMCode = 'Pallet')
Note: I did find the package table (ITM4), but that's another set of numbers that I don't think I need.
Any help is greatly appreciated!!!
Best Regards,
Manuel