|
Find out sales order by checking transaction recorders as following:
select
oh.order_number
,ol.line_number
,ol.ordered_item
,ol.ordered_quantity
,ol.ordered_quantity - nvl(ol.shipped_quantity,0) OS_qty
,o.transaction_quantity
,o.create_transaction_id
,o.update_transaction_id
,mmt.transfer_transaction_id
,mmt.trx_source_line_id
,mmt.trx_source_delivery_id
from mtl_onhand_quantities o
,mtl_material_transactions mmt
,oe_order_headers_all oh
,oe_order_lines_all ol
where o.subinventory_code = 'Ship Dock' -- vitual subinventory
and mmt.transaction_id = o.create_transaction_id
and mmt.trx_source_line_id = ol.line_id
and oh.header_id = ol.header_id |
|