Skip to the content.

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

Enginatics

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

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. Active links are those whose end date is empty or in the future, so ended genealogy links are excluded.
  2. A hierarchical CONNECT BY over the links walks the tree from the start objects, and the level and root are recorded.
  3. 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.
  4. Each object is joined to its lot, batch and serial number, and to its origin transaction through the lowest transaction identifier of the lot.
  5. The tree is ordered by organization, item, starting lot, and the row number of the walk.

Parameters & Filtering

Performance & Optimization

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.


© Enginatics GmbH