Search Results receipt
Overview
The MTL_ONHAND_QUANTITIES_DETAIL table is a core transactional table within the Oracle E-Business Suite Inventory (INV) module. It serves as the detailed repository for tracking on-hand inventory quantities using the First-In, First-Out (FIFO) costing method. Its primary role is to store granular receipt-level quantity data, enabling the system to accurately determine the cost of goods sold and the valuation of remaining inventory based on the chronological order of receipts. This table is fundamental to the financial integrity of inventory accounting for organizations utilizing the FIFO cost model in versions 12.1.1 and 12.2.2.
Key Information Stored
The table's structure is designed to record inventory balances at multiple organizational and receipt levels. As indicated by the primary key constraints, critical columns include a unique surrogate key (ONHAND_QUANTITIES_ID) and a composite key for FIFO tracking. Essential data points stored are:
- INVENTORY_ITEM_ID and ORGANIZATION_ID: Identify the specific item and its stocking organization.
- OWNING_ORGANIZATION_ID and PLANNING_ORGANIZATION_ID: Support inter-org and multi-org inventory structures.
- DATE_RECEIVED: The pivotal timestamp for FIFO calculation, determining the cost layer sequence.
- Quantity and secondary quantity fields to record the on-hand balance from each specific receipt.
The dual primary keys highlight its dual purpose: ensuring row uniqueness (MTL_ONHAND_QUANTITIES_PK) and supporting the FIFO costing engine's need to query and sequence receipts efficiently (MTL_FIFO_COST_U1).
Common Use Cases and Queries
This table is central to inventory valuation and cost management processes. A primary use case is generating the FIFO cost layers report, which details the quantity and cost of inventory available for consumption, ordered by receipt date. It is also heavily queried during transaction processing (like issues and shipments) to identify the specific cost layer to relieve. Common SQL patterns involve joining with MTL_SYSTEM_ITEMS_B and HR_ORGANIZATION_UNITS for reporting.
SELECT mohqd.inventory_item_id,
msi.segment1 item_code,
mohqd.organization_id,
mohqd.date_received,
mohqd.primary_transaction_quantity
FROM inv.mtl_onhand_quantities_detail mohqd,
inv.mtl_system_items_b msi
WHERE mohqd.inventory_item_id = msi.inventory_item_id
AND mohqd.organization_id = msi.organization_id
AND mohqd.organization_id = :p_org_id
ORDER BY mohqd.date_received;
This query retrieves the FIFO layers for a given organization, crucial for month-end closing and financial analysis.
Related Objects
MTL_ONHAND_QUANTITIES_DETAIL is intrinsically linked to other key Inventory entities. It is the detailed counterpart to summary on-hand tables like MTL_ONHAND_QUANTITIES. For transactional integrity, it relates to MTL_MATERIAL_TRANSACTIONS, which posts transactions that create or consume the detailed quantities. The table is maintained by internal Inventory APIs and is the direct source for cost calculation views used by the Cost Management module. Key related objects include the MTL_FIFO_COST_U1 index for performance and the primary key relationship with other inventory detail tables.
-
Lookup Type: MTL_TRANSACTION_ACTION
12.1.1
product: INV - Inventory , meaning: MTL TRANSACTION ACTION ,
-
Lookup Type: MTL_TRANSACTION_ACTION
12.2.2
product: INV - Inventory , meaning: MTL TRANSACTION ACTION ,
-
Lookup Type: MTL_PICK_LOCATOR_RULE
12.1.1
product: INV - Inventory , meaning: Locator Rule for Picking Sort ,
-
Lookup Type: MTL_PICK_SUBINVENTORY_RULE
12.1.1
product: INV - Inventory , meaning: Subinventory Rule for Picking Sort ,
-
Lookup Type: MTL_PICK_LOCATOR_RULE
12.2.2
product: INV - Inventory , meaning: Locator Rule for Picking Sort ,
-
Lookup Type: MTL_PICK_SUBINVENTORY_RULE
12.2.2
product: INV - Inventory , meaning: Subinventory Rule for Picking Sort ,
-
Lookup Type: MTL_PO_TXN
12.2.2
product: INV - Inventory , meaning: MTL PO TXN ,
-
Lookup Type: MTL_PO_TXN
12.1.1
product: INV - Inventory , meaning: MTL PO TXN ,
-
Lookup Type: MVT_STATISTICAL_TYPE
12.2.2
product: INV - Inventory , meaning: MVT STATISTICAL TYPE , description: Statistical Type ,
-
Lookup Type: MVT_STATISTICAL_TYPE
12.1.1
product: INV - Inventory , meaning: MVT STATISTICAL TYPE , description: Statistical Type ,
-
Lookup Type: MTL_TXN_ISSUE_RECEIPT
12.2.2
product: INV - Inventory , meaning: MTL TXN ISSUE RECEIPT ,
-
Lookup Type: MTL_TXN_ISSUE_RECEIPT
12.1.1
product: INV - Inventory , meaning: MTL TXN ISSUE RECEIPT ,
-
Lookup Type: MTL_RECEIVING_TYPE
12.1.1
product: INV - Inventory , meaning: MTL RECEIVING TYPE ,
-
Lookup Type: MTL_DEFAULT_LOCATORS
12.1.1
product: INV - Inventory , meaning: MTL DEFAULT LOCATORS ,
-
Lookup Type: MTL_DEFAULT_LOCATORS
12.2.2
product: INV - Inventory , meaning: MTL DEFAULT LOCATORS ,
-
Lookup Type: MTL_DEFAULT_SUBINVENTORY
12.2.2
product: INV - Inventory , meaning: MTL DEFAULT SUBINVENTORY ,
-
Lookup Type: MTL_DEFAULT_SUBINVENTORY
12.1.1
product: INV - Inventory , meaning: MTL DEFAULT SUBINVENTORY ,
-
Lookup Type: MTL_RECEIVING_TYPE
12.2.2
product: INV - Inventory , meaning: MTL RECEIVING TYPE ,
-
Lookup Type: MTL_LOGICAL_TRANSACTION_CODE
12.1.1
product: INV - Inventory , meaning: MTL LOGICAL TRANSACTION CODE ,
-
Lookup Type: MTL_LOGICAL_TRANSACTION_CODE
12.2.2
product: INV - Inventory , meaning: MTL LOGICAL TRANSACTION CODE ,
-
Lookup Type: INV_ITEM_ATTRIBUTES
12.1.1
product: INV - Inventory , meaning: Item Attributes , description: Item Attributes ,
-
Lookup Type: MTL_FOB_POINT
12.1.1
product: INV - Inventory , meaning: MTL FOB POINT ,
-
Lookup Type: PCH_RECEIVING_TYPE
12.1.1
product: INV - Inventory , meaning: PCH RECEIVING TYPE ,
-
Lookup Type: MTL_DISP_TYPE
12.1.1
product: INV - Inventory , meaning: MTL DISP TYPE ,
-
Lookup Type: PCH_RECEIVING_TYPE
12.2.2
product: INV - Inventory , meaning: PCH RECEIVING TYPE ,
-
Lookup Type: INV_ITEM_ATTRIBUTES
12.2.2
product: INV - Inventory , meaning: Item Attributes , description: Item Attributes ,
-
Lookup Type: MTL_FOB_POINT
12.2.2
product: INV - Inventory , meaning: MTL FOB POINT ,
-
Lookup Type: MTL_NEGATIVE_RECEIPT
12.1.1
product: INV - Inventory , meaning: MTL NEGATIVE RECEIPT ,
-
Lookup Type: MTL_SERIAL_NUMBER_RULE
12.1.1
product: INV - Inventory , meaning: MTL SERIAL NUMBER RULE ,
-
Table: MTL_ONHAND_QUANTITIES_DETAIL
12.2.2
owner:INV, object_type:TABLE, fnd_design_data:INV.MTL_ONHAND_QUANTITIES_DETAIL, object_name:MTL_ONHAND_QUANTITIES_DETAIL, status:VALID, product: INV - Inventory , description: FIFO quantities by control level and receipt , implementation_dba_data: INV.MTL_ONHAND_QUANTITIES_DETAIL ,
-
Lookup Type: MTL_SERIAL_NUMBER_RULE
12.2.2
product: INV - Inventory , meaning: MTL SERIAL NUMBER RULE ,
-
Lookup Type: MTL_DISP_TYPE
12.2.2
product: INV - Inventory , meaning: MTL DISP TYPE ,
-
Lookup Type: MTL_NEGATIVE_RECEIPT
12.2.2
product: INV - Inventory , meaning: MTL NEGATIVE RECEIPT ,
-
Lookup Type: MTL_LOCATOR_RULE
12.2.2
product: INV - Inventory , meaning: MTL LOCATOR RULE ,
-
Lookup Type: MTL_SUBINVENTORY_RULE
12.2.2
product: INV - Inventory , meaning: MTL SUBINVENTORY RULE ,
-
Lookup Type: MTL_LOT_RULE
12.2.2
product: INV - Inventory , meaning: MTL LOT RULE ,
-
Lookup Type: MTL_SUBINVENTORY_RULE
12.1.1
product: INV - Inventory , meaning: MTL SUBINVENTORY RULE ,
-
Lookup Type: MTL_LOCATOR_RULE
12.1.1
product: INV - Inventory , meaning: MTL LOCATOR RULE ,
-
Table: MTL_ONHAND_QUANTITIES_DETAIL
12.1.1
owner:INV, object_type:TABLE, fnd_design_data:INV.MTL_ONHAND_QUANTITIES_DETAIL, object_name:MTL_ONHAND_QUANTITIES_DETAIL, status:VALID, product: INV - Inventory , description: FIFO quantities by control level and receipt , implementation_dba_data: INV.MTL_ONHAND_QUANTITIES_DETAIL ,
-
Lookup Type: MTL_LOT_RULE
12.1.1
product: INV - Inventory , meaning: MTL LOT RULE ,
-
Lookup Type: MTL_ISSUE_RECEIPT_REQUEST
12.2.2
product: INV - Inventory , meaning: MTL ISSUE RECEIPT REQUEST ,
-
Lookup Type: MTL_SERIAL_NUMBER
12.2.2
product: INV - Inventory , meaning: MTL SERIAL NUMBER ,
-
Lookup Type: MTL_ISSUE_RECEIPT_REQUEST
12.1.1
product: INV - Inventory , meaning: MTL ISSUE RECEIPT REQUEST ,
-
Lookup Type: INV_REPAIR_PROGRAMS
12.1.1
product: INV - Inventory , meaning: Repair Programs , description: R12 APS ENH: Repair Programs ,
-
Lookup Type: INV_REPAIR_PROGRAMS
12.2.2
product: INV - Inventory , meaning: Repair Programs , description: R12 APS ENH: Repair Programs ,
-
Lookup Type: MTL_SERIAL_NUMBER
12.1.1
product: INV - Inventory , meaning: MTL SERIAL NUMBER ,
-
Lookup Type: MTL_MATERIAL_RECEIPT
12.1.1
product: INV - Inventory , meaning: MTL MATERIAL RECEIPT ,
-
Lookup Type: MTL_MATERIAL_RECEIPT
12.2.2
product: INV - Inventory , meaning: MTL MATERIAL RECEIPT ,
-
Lookup Type: PCH_TRANSACTION_TYPE
12.2.2
product: INV - Inventory , meaning: PCH TRANSACTION TYPE ,
-
Lookup Type: DOC_TYPE
12.2.2
product: INV - Inventory , meaning: Document Types , description: Document types for mobile receipt page. ,