Results for “invbv_onhand_balances”

14 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

INVBV_ONHAND_BALANCES is a read-only view owned by the APPS schema within the Oracle E-Business Suite Inventory (INV) module. It is documented under ETRM as "Retrofitted," indicating it belongs to a compatibility layer of legacy view names retained for backward compatibility with earlier releases and third-party integrations. The view is classified with a VALID status in both 12.1.1 and 12.2.2, confirming its continued availability in the EBS data model.

Functionally, the view exposes on-hand quantity records held at the subinventory, locator, revision, and lot level. Because its defining query is constrained with a read-only clause and a security predicate, it is intended strictly for query and reporting purposes. It serves organizations that depend on a stable, pre-existing view name to retrieve on-hand balances without being rewritten against the underlying MTL_ONHAND_QUANTITIES object. This makes it relevant to custom reports, Oracle Discoverer workbooks, and integrations that predate or bypass the standard INV on-hand schema objects.

Underlying Base Objects

The documented base object for INVBV_ONHAND_BALANCES is a single referenced object: MTL_ONHAND_QUANTITIES, itself documented as a VIEW. The view definition selects from this object using the alias MOQ and projects a subset of its columns without joins, aggregations, or additional tables.

Two structural characteristics are significant. First, the WHERE clause contains the predicate '_SEC:MOQ.ORGANIZATION_ID' IS NOT NULL, which is an Organization Security Profile substitution token. At runtime this is resolved by the EBS security model according to the signed-in user's organization access, so results are automatically limited to the organizations the user is authorized to view. Second, the query concludes with WITH READ ONLY, preventing any DML against the view. Practically, the view is a secured, denormalized projection of on-hand data rather than a stored object with independent persistence.

Key Columns

The view exposes the following columns, which correspond to identifiers and transactional context for each on-hand row:

  • INVENTORY_ITEM_ID — The unique internal identifier of the inventory item. Joins to MTL_SYSTEM_ITEMS_B for item attributes.
  • ORGANIZATION_ID — The inventory organization to which the on-hand quantity belongs; the column filtered by the security predicate.
  • DATE_RECEIVED — The date the quantity was received into stock.
  • ONHAND_QUANTITY — The quantity currently on hand for the specific item, subinventory, locator, revision, and lot combination.
  • SUBINVENTORY_NAME — The subinventory in which the quantity resides (derived from SUBINVENTORY_CODE in the base object).
  • REVISION — The item revision, where revision control is enabled.
  • INVENTORY_LOCATOR_ID — The unique identifier of the stock locator (row/rack/bin) within the subinventory. This is the column most frequently used as a search term, as it is the primary join key to MTL_ITEM_LOCATIONS for locator descriptions and to locator-driven reporting.
  • CREATE_TRANSACTION_ID / UPDATE_TRANSACTION_ID — Transaction identifiers associated with the creation and most recent update of the on-hand row.
  • LOT_NUMBER — The lot or batch number for lot-controlled items.
  • CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE — Standard EBS audit columns recording row creation and last modification.

Common Use Cases and Queries

Typical uses include on-hand balance reporting by item within an organization, locator-level inventory inquiries, and reconciliation of balances against transaction history.

SELECT inventory_item_id, organization_id, subinventory_name,
       inventory_locator_id, onhand_quantity
FROM   apps.invbv_onhand_balances
WHERE  organization_id = :org_id
AND    inventory_item_id = :item_id;

Locator-specific retrieval:

SELECT inventory_item_id, onhand_quantity, lot_number
FROM   apps.invbv_onhand_balances
WHERE  inventory_locator_id = :locator_id
AND    onhand_quantity > 0;

Because the view enforces organization security and is read-only, it is safe for ad-hoc analysis. Note that it is retrofitted, so new development should generally target the current standard INV on-hand objects, restricting this view to compatibility-driven requirements.