Results for “oe_related_items_v”

28 results




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

Overview

OE_RELATED_ITEMS_V is a reporting view owned by the APPS schema in Oracle E-Business Suite, belonging to the Order Management (ONT) product family. It exposes the relationships defined between inventory items — substitutions, replacements, and related-item associations — as maintained in Oracle Inventory, and presents them in a denormalized form that is convenient for order entry, order import, and integration consumption. The view resolves the child item identifier from the related-items relationship into a concatenated item key and translated description, and derives a substitution type classification from the underlying relationship type identifier.

Because the view applies restrictive predicates on the base data, only items that are customer-order enabled and of BOM item type 1 (standard) or 4 (model/ATO-related) are surfaced, and only relationships that are currently active based on their start and end dates. Lookup rows must be enabled and effective as of the current date, and lookup code '14' is explicitly excluded. As a result, the view is effectively filtered to currently valid, orderable related items.

Underlying Base Objects

The view is defined over five documented objects:

  • MTL_RELATED_ITEMS_VIEW (VIEW, aliased REL) — the driving source of relationships; supplies ORGANIZATION_ID, INVENTORY_ITEM_ID, RELATED_ITEM_ID, RELATIONSHIP_TYPE_ID, RECIPROCAL_FLAG, and the relationship start/end dates.
  • MTL_PARAMETERS (SYNONYM, aliased MP) — supplies the master organization identifier, used both as the restriction on REL.ORGANIZATION_ID and as the ORGANIZATION_ID output column.
  • MTL_SYSTEM_ITEMS_B_KFV (VIEW, aliased B) — the key flexfield view providing the concatenated item segments, primary UOM, list price, customer-order enabled flag, and BOM item type. Joins are made to the related item on inventory_item_id and organization_id.
  • MTL_SYSTEM_ITEMS_TL (SYNONYM, aliased T) — the translated items table, supplying the description for the related item, restricted to the session language via USERENV('LANG').
  • MFG_LOOKUPS (VIEW, aliased LOOK) — resolves relationship_type_id into a meaning, restricted to lookup_type 'MTL_RELATIONSHIP_TYPES' and to enabled, currently effective lookup rows. Lookup code '14' is excluded.

Key Columns

  • ORGANIZATION_ID — the master organization identifier from MTL_PARAMETERS.
  • INVENTORY_ITEM_ID — the parent item for which the relationship is defined.
  • RELATED_ITEM_ID — the associated item identifier from the relationship record.
  • RELATIONSHIP_TYPE_ID / RELATIONSHIP_TYPE — the numeric lookup code and its decoded meaning from MFG_LOOKUPS.
  • RECIPROCAL_FLAG — indicates whether the relationship applies in both directions.
  • RELATED_ITEM_DESCRIPTION — language-specific description of the related item (the column most commonly searched as "related_item_description").
  • RELATED_ITEM — the concatenated item key flexfield segments for the related item.
  • UOM / UNIT_PRICE — primary unit of measure and list price per unit of the related item.
  • SUBSTITUTION_TYPE — derived value: 'R' for relationship_type_id 2, 4, or 8; otherwise 'A'.
  • CUSTOMER_ORDER_ENABLED_FLAG / BOM_ITEM_TYPE — flag and item type of the related item.

Common Use Cases and Queries

The view is typically queried to retrieve substitutes or related items for a given parent item during order entry, or to report on the descriptions and pricing of related items across the item catalog. Because RELATIONSHIP_TYPE is already decoded and RELATED_ITEM is concatenated, it is directly usable in list-of-values and import validation logic.

A representative query retrieving substitution information for a parent item:

  • SELECT related_item, related_item_description, uom, unit_price, relationship_type, substitution_type FROM oe_related_items_v WHERE inventory_item_id = :p_item_id;

A representative query resolving a description-based lookup, matching the common "related_item_description" search pattern:

  • SELECT inventory_item_id, related_item, related_item_description FROM oe_related_items_v WHERE UPPER(related_item_description) LIKE UPPER('%' || :keyword || '%');

Because the view already enforces customer-order-enabled and effective-date filtering, additional predicates on CUSTOMER_ORDER_ENABLED_FLAG are redundant, and developers joining to base tables should be aware that organization context is fixed to the master organization via MTL_PARAMETERS.