Skip to the content.

INV Lot Upload – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

Creates and updates lots as in the Lot Numbers form (Inventory > On-hand, Availability > Lots).

A row updates the lot when Organization Code, Item and Lot Number exist, and creates it otherwise. A new lot takes the item defaults for status, grade, origination type and the dates left blank, and copies the parent lot attributes where the item or organization is set up to copy them. A blank Origination Date on a new lot defaults to the current date. Parent Lot can only be entered for a new lot.

Expiration Date, Expiration Action Date and Retest Date can be changed only for items under shelf life control, and the Expiration Date of such an item cannot be cleared. Status requires a lot status enabled item, Grade a grade controlled item. Changing the Origination Date does not recalculate the other dates. Clearing the Expiration Action Date also clears the Expiration Action.

With profile INV: Global Lot Attributes set to Yes, a changed date or grade is applied to the same lot in all organizations, as in the form.

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

Upload Mode, Organization Code, Item, Lot Number, Expiration Date From, Expiration Date To, Expiring Within Days

Oracle EBS Tables Used

mtl_material_statuses_vl, mtl_lot_numbers, mtl_onhand_quantities_detail, mtl_parameters, mtl_system_items_vl, org_access_view

Report Categories

Enginatics, R12 only, Upload

INV Onhand Quantities, INV Physical Inventory Locator Count Sheet, CAC Inventory Lot and Locator OPM Value (Period-End), CAC Onhand Lot Value (Real-Time), INV Cycle count listing, CAC Inventory and Intransit Value (Period-End) - Discrete/OPM

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 Example
Blitz Report™ XML Import INV_Lot_Upload.xml
SQL Source INV Lot Upload.sql
Full Report on Enginatics www.enginatics.com/reports/inv-lot-upload/

Case Study & Technical Analysis: INV Lot Upload

Executive Summary

The INV Lot Upload creates and updates inventory lots in Oracle Inventory, following the logic of the Lot Numbers form. A row updates a lot when its organization code, item and lot number already exist, and creates it otherwise. Inventory and quality teams use the upload to load lot master data from suppliers and manufacturing, to set expiration and retest dates for shelf-life items and to correct lot status and grade. Blitz Report downloads the lots of the selected organizations, with their dates, status, attributes and on-hand quantity, so that the spreadsheet shows the current state before changes are made.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. MTL_PARAMETERS is joined to MTL_SYSTEM_ITEMS_VL on the organization id, and MTL_SYSTEM_ITEMS_VL to MTL_LOT_NUMBERS on the organization id and inventory item id.
  2. The lot status is a scalar lookup on MTL_MATERIAL_STATUSES_VL through the status id of the lot.
  3. The on-hand quantity is a correlated subquery on MTL_ONHAND_QUANTITIES_DETAIL matching the organization, item and lot number.
  4. Organizations are restricted by a subquery on ORG_ACCESS_VIEW, using the responsibility application and responsibility id of the session.
  5. The flexfield values for the lot attributes and the lot descriptive flexfield are decoded from the attribute category of each lot.

Parameters & Filtering

Performance & Optimization

FAQ

Q: How does the upload decide whether to create or update a lot? A: It matches the organization code, item and lot number. If the lot exists, the row updates it; if not, the row creates it.

Q: Why can I not change the expiration date of an item? A: Expiration, expiration action and retest dates can be changed only for items under shelf-life control, and the expiration date of such an item cannot be cleared.

Q: Can Parent Lot be changed on an existing lot? A: No. Parent Lot can only be entered for a new lot.


© Enginatics GmbH