OPM Batch Lot Genealogy – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Process Manufacturing · all Process Manufacturing reports
Overview
Oracle Process Manufacturing (OPM) batch lot genealogy as a multi-level tree, as shown in the Source and Where Used tabs of the Oracle Genealogy form.
Source walks from a lot through its producing batch to the ingredient lots, to any depth. Where Used walks from a lot through the consuming batches to the product lots. Each tree starts with its start lot at level 0.
Each row is a lot or batch with its level, lot status, grade, dates and the WIP issue or completion that created the link. Ended genealogy links are excluded.
Source, Supplier and Supplier Site show each lot’s origination as in the form: the document and trading partner of the lot’s first transaction. Supplier Site is shown for purchase order receipts only.
Without an Item or Lot Number, only lots with no other lot above them in the chosen direction start a tree, so each chain is listed once instead of under every lot within it. Enter an Item or Lot Number to see the tree of any lot.
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
Organization Code, Item, Lot Number like, Direction
Oracle EBS Tables Used
mtl_system_items_vl, dual, po_headers_all, ap_supplier_sites_all, mtl_transaction_lot_numbers, mtl_material_transactions, mtl_object_genealogy, mtl_lot_numbers, mtl_parameters, org_access_view, wip_entities, gme_batch_header, mtl_serial_numbers, mtl_material_statuses_vl, mtl_transaction_types
Report Categories
Related Reports
INV Serial Numbers, INV Items, INV Onhand Quantities, INV Item Upload, INV Item Upload 11i, INV Material Transactions
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | OPM Batch Lot Genealogy 05-Jun-2026 120007.xlsx |
| Blitz Report™ XML Import | OPM_Batch_Lot_Genealogy.xml |
| SQL Source | OPM Batch Lot Genealogy.sql |
| Full Report on Enginatics | www.enginatics.com/reports/opm-batch-lot-genealogy/ |
Case Study & Technical Analysis: OPM Batch Lot Genealogy
Executive Summary
This report shows lot genealogy in Oracle Process Manufacturing (OPM) as a multi-level tree. It reproduces the Source and Where Used views of the Oracle Genealogy form: the Source tree walks from a lot through the batch that produced it to the ingredient lots, to any depth, and the Where Used tree walks from a lot through the batches that consumed it to the product lots. It is used by quality, recall and traceability teams in process industries, who must answer which raw material lots went into a finished lot, and which finished lots contain a given ingredient lot. Each row is a lot or batch with its level in the tree, its status and grade, its dates and the transaction that created the link.
Business Challenge
- Traceability for recalls: When an ingredient lot is found to be defective, every batch and finished lot that used it must be identified quickly.
- Origin of a lot: The supplier, purchase order and supplier site of the lot must be known to contain a supplier issue.
- Multi-level chains: A finished lot can be made from intermediate lots that were themselves made from other lots, so the chain must be followed through several levels.
The Solution
- Builds the genealogy tree from the
MTL_OBJECT_GENEALOGYlinks, starting at the lot and walking up or down the chain to any depth, with the start lot at level 0. - Shows, for each lot or batch, its level, object type, lot status, grade, origination date and expiration date.
- Shows the source of each lot, its trading partner and, for purchase order receipts, the supplier site, from the first transaction of the lot.
- Shows the genealogy type and the transaction type, transaction date, quantity and unit of measure of the transaction that created the link.
- Without an item or lot number, starts a tree only at lots that have no other lot above them in the chosen direction, so each chain is listed once.
Technical Architecture (High Level)
Primary Tables
MTL_OBJECT_GENEALOGY: the parent and child links between objects, with the genealogy type, origin transaction and end date.MTL_LOT_NUMBERS: the lots, with the generic object identifier, status, grade, origination and expiration dates.MTL_MATERIAL_TRANSACTIONSandMTL_TRANSACTION_LOT_NUMBERS: the transactions that created the lot links, and the lot of each transaction.MTL_TRANSACTION_TYPES: the transaction type name.WIP_ENTITIESandGME_BATCH_HEADER: the batch identifier, batch number and WIP entity of a batch.MTL_SERIAL_NUMBERS: serial numbers that are genealogy objects.MTL_SYSTEM_ITEMS_VLandMTL_PARAMETERS: the item and organization.MTL_MATERIAL_STATUSES_VL: the lot status.PO_HEADERS_ALLandAP_SUPPLIER_SITES_ALL: the purchase order and the supplier site of a receipt.ORG_ACCESS_VIEW: the organizations the responsibility can access.
Logical Relationships
- Active links are those whose end date is empty or in the future, so ended genealogy links are excluded.
- A hierarchical CONNECT BY over the links walks the tree from the start objects, and the level and root are recorded.
- The start objects are the lots that have no link above them in the chosen direction, or the lot named by the Item and Lot Number parameters.
- Each object is joined to its lot, batch and serial number, and to its origin transaction through the lowest transaction identifier of the lot.
- The tree is ordered by organization, item, starting lot, and the row number of the walk.
Parameters & Filtering
- Organization Code: selects the organization of the starting lot.
- Item: selects the item of the starting lot, and restricts the trees to that item.
- Lot Number like: selects starting lots by a lot number pattern.
- Direction: chooses Source, which walks towards the ingredients, or Where Used, which walks towards the products.
Performance & Optimization
- Without an item or lot number, only the top lots of each chain start a tree, so a chain is not repeated for every lot inside it.
- The origin transaction is found by a minimum-identifier subquery on each lot, which gives one origination transaction per lot.
- The supplier site is looked up only for transactions whose source is a purchase order, so the purchase order tables are read only for receipts.
FAQ
Q: How do I find all lots that went into a finished lot? A: Enter the Item or Lot Number of the finished lot, and choose Source as the direction. The tree lists each ingredient lot and batch at its level.
Q: How do I find all finished lots that contain an ingredient lot? A: Enter the ingredient lot number and choose Where Used. The tree lists the consuming batches and the product lots below them.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© Enginatics GmbH