You are on page 1of 1

select msi.segment1 Item#,mil.subinventory_code,mil.

CONCATENATED_SEGMENTS "Locat
or",msr.serial_number,
decode(msr.current_status,1, 'In Stock',
3, 'In Stock',
4, 'Shipped to Customer',
5, 'Picked for Order',
7, 'Resides in receiving',
8, 'Resides in WIP',
'Uknown')
Serial_status,ood.organization_code
from apps.mtl_serial_numbers msr,
apps.org_organization_definitions ood,
apps.mtl_item_locations_kfv mil,
apps.mtl_onhand_quantities moq,
apps.mtl_system_items_b msi
where ood.organization_id=msr.current_organization_id
and ood.organization_id=msi.organization_id
and msr.inventory_item_id=msi.inventory_item_id
AND mil.organization_id
=moq.organization_id
AND msi.inventory_item_id
=moq.inventory_item_id
AND mil.inventory_location_id=moq.locator_id
AND moq.inventory_item_id=msr.inventory_item_id
--AND msi.organization_id
=moq.organization_id
and msi.segment1 = '790599'
and msr.serial_number in ('14383CTU0089','14383CTU0146');
select * from apps.mtl_item_locations_kfv;

You might also like