InventOnHand/InventDimParm

What is the correct way to use InventOnHand/InventDimParm? For example I want to get the available Qty at one InventLocationId, for given ItemId (but I am using additional inventory dimensions, so I want like total for that ItemId)? And for second example I want to that but just for given combination of ItemId/InventLocationId and some other InventDim? I have done this using InventSum, but want to know how can do it this way too.

Hi, I have checked this and it seems that InventOnHand class is also using the InventSum table, so the problem reduces to the same thing. [:)] Regards, Ciprian