You are html tracking Visitor

Thursday, October 2, 2008

On-hand Quatity of one Particular Item in whole Organization

INV On-hand Quatity of one Particular Item in whole Organization:-
-----------------------------------------------------------------------------------

The following Query will On-hand Quatity of particular item in the whole Organization

select sum(primary_transaction_quantity) from mtl_onhand_quantities_detail where inventory_item_id = 'Your Inventory Organization ID';

Example:-

Note:- 123456 is the item ID of the particular item. This can be found in the base table of the item (MTL_SYSTEM_ITEMS_B). SEGMENT1 column of this table would have Item Name and Inventory_item_id is the primary column of the table. The follow query is using this value.

select sum(primary_transaction_quantity) from mtl_onhand_quantities_detail where inventory_item_id = 123456;

If you want to know the on-hand Quantity of particular item at all the Inventory Organization then use the following the Query.

select sum(primary_transaction_quantity), organization_id from mtl_onhand_quantities_detail where inventory_item_id = 'Your Inventory Organization ID'
group by organization_id;

4 comments:

phani said...

Hi all,
I found one more table which has on-hand Quantity information.

SELECT inventory_item_id
, organization_id
, transaction_quantity
, subinventory_code
FROM mtl_onhand_quantities_detail;

Check out the Query given above.

Regards,
Phani

Anonymous said...

thks thats works for me have a good day.

Unknown said...
This comment has been removed by a blog administrator.
rmouniak said...

It's amazing blog

Oracle SOA Online Course Bangalore