MTL_LOT_NUMBERS
Schema: INVmasterPer inventory orgThe lot master — definition, genealogy (parent lot), status, grade, and the origination/expiration/retest dates for every lot, keyed by item + organization + lot number
Lot definitions are per item per org — the same lot number can legitimately exist under different items or orgs, so lot joins always carry item and org alongside the lot number. DISABLE_FLAG is a NUMBER, not a Y/N character flag.
What the badges mean
- master
- Data class: what the table holds — master data, transaction documents, control/configuration, interface/staging, or an APPS-schema view.
Fields
11 fields · 3 key
| # | Field | Description | Type | Flags |
|---|---|---|---|---|
| 1 | INVENTORY_ITEM_ID | Item id — lots are defined per item | NUMBER | Key |
| 2 | ORGANIZATION_ID | Inventory organization — lots are defined per org too | NUMBER | Key |
| 3 | LOT_NUMBER | The lot number — only meaningful together with item and org | VARCHAR2 | Key |
| 4 | PARENT_LOT_NUMBER | Parent lot for split/merge genealogy | VARCHAR2 | |
| 5 | ORIGINATION_DATE | When the lot came into existence | DATE | |
| 6 | EXPIRATION_DATE | When the lot expires — the shelf-life analysis date | DATE | Filter date |
| 7 | RETEST_DATE | When the lot is due for retest | DATE | |
| 8 | STATUS_ID | Material status of the lot | NUMBER | |
| 9 | GRADE_CODE | Quality grade of the lot | VARCHAR2 | |
| 10 | DISABLE_FLAG | Whether the lot is disabled — a NUMBER, not a Y/N character flag | NUMBER | |
| 11 | SUPPLIER_LOT_NUMBER | The supplier's own lot number, kept for traceability | VARCHAR2 |
Field provenance: hand-curated. 3 key fields.
Boilerplate SQL
Starting point for reading MTL_LOT_NUMBERSon Databricks — real DATE columns need no conversion, and the org anchor and the LAST_UPDATE_DATE watermark are already in place. Set your Unity Catalog location, schema, and org values below; they’re substituted into the SQL and the copy button.
-- ============================================================
-- Table : MTL_LOT_NUMBERS — The lot master — definition, genealogy (parent lot), status, grade, and the origination/expiration/retest dates for every lot, keyed by item + organization + lot number
-- Purpose: Column-selected read of MTL_LOT_NUMBERS — auto-generated from field metadata
-- Grain : One row per inventory org (ORGANIZATION_ID) + INVENTORY_ITEM_ID + LOT_NUMBER
-- Notes : Auto-generated skeleton for Oracle EBS R12 data landed in your lakehouse. Dates are real DATE/TIMESTAMP columns — no conversion needed. WHO audit columns omitted (see the quirks guide); the optional LAST_UPDATE_DATE watermark filter supports incremental extracts.
-- ============================================================
SELECT
t.INVENTORY_ITEM_ID AS "Item id — lots are defined per item",
t.ORGANIZATION_ID AS "Inventory organization — lots are defined per org too",
t.LOT_NUMBER AS "The lot number — only meaningful together with item and org",
t.PARENT_LOT_NUMBER AS "Parent lot for split/merge genealogy",
t.ORIGINATION_DATE AS "When the lot came into existence",
t.EXPIRATION_DATE AS "When the lot expires — the shelf-life analysis date",
t.RETEST_DATE AS "When the lot is due for retest",
t.STATUS_ID AS "Material status of the lot",
t.GRADE_CODE AS "Quality grade of the lot",
t.DISABLE_FLAG AS "Whether the lot is disabled — a NUMBER, not a Y/N character flag",
t.SUPPLIER_LOT_NUMBER AS "The supplier's own lot number, kept for traceability"
FROM <catalog>.<schema>.MTL_LOT_NUMBERS t
WHERE
t.ORGANIZATION_ID = <inventory_org_id> -- inventory org, NOT the operating unit — see quirks guide #two-orgs
-- AND t.INVENTORY_ITEM_ID = <INVENTORY_ITEM_ID>
-- AND t.LOT_NUMBER = '<LOT_NUMBER>'
-- AND t.EXPIRATION_DATE >= DATE '<DATE_FROM>'
-- AND t.EXPIRATION_DATE <= DATE '<DATE_TO>'
-- AND t.LAST_UPDATE_DATE >= TIMESTAMP '<watermark>' -- WHO watermark, bulk-stamped by batch jobs; see quirks guide #who-columns
ORDER BY t.INVENTORY_ITEM_ID;8 parameters not filled: <catalog>, <schema>, <inventory_org_id>, <INVENTORY_ITEM_ID>, <LOT_NUMBER>, <DATE_FROM>, <DATE_TO>, <watermark>
Relationships
1-hop neighbors — click a table to navigate there. FND lookup decode and translation edges are highlighted; they’re the joins newcomers most often get wrong.
Join details
ON MTL_ONHAND_QUANTITIES_DETAIL.LOT_NUMBER = MTL_LOT_NUMBERS.LOT_NUMBER AND MTL_ONHAND_QUANTITIES_DETAIL.INVENTORY_ITEM_ID = MTL_LOT_NUMBERS.INVENTORY_ITEM_ID AND MTL_ONHAND_QUANTITIES_DETAIL.ORGANIZATION_ID = MTL_LOT_NUMBERS.ORGANIZATION_IDON MTL_TRANSACTION_LOT_NUMBERS.LOT_NUMBER = MTL_LOT_NUMBERS.LOT_NUMBER AND MTL_TRANSACTION_LOT_NUMBERS.INVENTORY_ITEM_ID = MTL_LOT_NUMBERS.INVENTORY_ITEM_ID AND MTL_TRANSACTION_LOT_NUMBERS.ORGANIZATION_ID = MTL_LOT_NUMBERS.ORGANIZATION_IDON MTL_LOT_NUMBERS.INVENTORY_ITEM_ID = MTL_SYSTEM_ITEMS_B.INVENTORY_ITEM_ID AND MTL_LOT_NUMBERS.ORGANIZATION_ID = MTL_SYSTEM_ITEMS_B.ORGANIZATION_IDON MTL_SERIAL_NUMBERS.LOT_NUMBER = MTL_LOT_NUMBERS.LOT_NUMBER AND MTL_SERIAL_NUMBERS.INVENTORY_ITEM_ID = MTL_LOT_NUMBERS.INVENTORY_ITEM_ID AND MTL_SERIAL_NUMBERS.CURRENT_ORGANIZATION_ID = MTL_LOT_NUMBERS.ORGANIZATION_ID