Oracle apps query to find serial number material transactions details
join between mtl_material_transactions and serial_number
How to join mtl_material_transactions and mtl_serial_numbers
-- For serial controlled and non-lot controlled items SELECT mmt.transaction_id, msn.serial_number, mmt.inventory_item_id, (SELECT segment1 FROM mtl_system_items_b WHERE inventory_item_id = mmt.inventory_item_id AND ROWNUM = 1) item, (SELECT transaction_type_name FROM apps.mtl_transaction_types mtt WHERE mtt.transaction_type_id = mmt.transaction_type_id) transaction_type, (SELECT segment1 FROM mtl_sales_orders WHERE sales_order_id = mmt.transaction_source_id) transaction_source, NULL lot_number, mmt.creation_date transaction_creation_date, mmt.organization_id, ood.organization_code FROM mtl_unit_transactions mut, mtl_serial_numbers msn, mtl_material_transactions mmt, org_organization_definitions ood WHERE msn.serial_number = mut.serial_number AND mmt.transaction_id = mut.transaction_id AND ood.organization_id = mmt.organization_id AND mut.serial_number IN ('<Your Serial Number>') UNION -- For serial controlled and lot controlled items SELECT mmt.transaction_id, msn.serial_number, mmt.inventory_item_id, (SELECT segment1 FROM mtl_system_items_b WHERE inventory_item_id = mmt.inventory_item_id AND ROWNUM = 1) item, (SELECT transaction_type_name FROM apps.mtl_transaction_types mtt WHERE mtt.transaction_type_id = mmt.transaction_type_id) transaction_type, (SELECT segment1 FROM mtl_sales_orders WHERE sales_order_id = mmt.transaction_source_id) transaction_source, mtln.lot_number, mmt.creation_date transaction_creation_date, mmt.organization_id, ood.organization_code FROM mtl_unit_transactions mut, mtl_serial_numbers msn, mtl_material_transactions mmt, mtl_transaction_lot_numbers mtln, org_organization_definitions ood WHERE msn.serial_number = mut.serial_number AND mmt.transaction_id = mtln.transaction_id AND mtln.serial_transaction_id = mut.transaction_id AND ood.organization_id = mmt.organization_id AND mut.serial_number IN ('<Your Serial Number>') ORDER BY 1 DESC
For more reusable queries, click https://tech7.in/category/technologyblog/oracle/
Related posts:- Supervisor Hierarchy and Approval Limits in Oracle EBS R12
- Sales order line status query in Oracle apps
- Purchase Order Receipt details query in Oracle apps
- Oracle apps query to find approval limits
- Query to get price list details in Oracle EBS
- Query to find all APIs of Oracle Apps modules
- Oracle R12 shipping status query
- Query to get Organization Hierarchy in Oracle apps
- Query to get customer tax registration details in R12
- Query to get Sales order and lines details in Oracle Apps
- Purchase Requisition Vertex debug xml query in Oracle EBS
- Purchase Order Vertex debug xml query in Oracle EBS
- Query to find serial number material transactions details
- Query to get attribute values of Inventory Item Template
- Query to find period status for Inventory General Ledger Purchasing Payables Receivables Fixed Assets
- Query to find Sales Orders that are shipped but not invoiced
- Query to get details of WIP discrete jobs
- Query to get Customer Bank Account Details
- Query to find Purchase Order and Invoice Details
- Query to find AP Invoices matched with receipts
- Query to find Supplier Bank Details
- Query to find Credit Memos on an AP invoice
- Query to find the AP invoices that are applied to multiple Purchase Orders
- Query to find BOM and Routings data
- AR Invoice grouping rule from RA_INTERFACE_LINES_ALL
- Query to find shipset and fulfilment set