Search Results cancelled_quantity




Overview

CZ_COMPONENT_SELECTIONS_V is a Bills of Material (BOM) reporting view that consolidates component selection information for configured items. In Oracle EBS 12.1.1 and 12.2.2, the view serves as a unified read interface over two fundamentally different sources of component selections: sales order lines (SO_LINES_ALL) and bill of material configuration explosion records (BOM_CONFIG_EXPLOSIONS). The CZ_ prefix associates the object with Oracle's Configurator (CZ) schema, which manages model and option structures for configured products.

The view's purpose is to present, in a single flattened result set, the components that have been selected for a configured item regardless of whether the selection originated from an order management context or a manufacturing/BOM context. Because the underlying sources have different primary keys, columns, and grain, the view normalizes them into a common column list and uses a literal discriminator column, ROW_QUALIFIER, to indicate the origin of each row.

Per the ETRM documentation, this view is listed as "Not implemented in this database," and no base objects are formally documented as referenced. It is therefore typically encountered as a definition shipped with the Configurator product rather than a standalone deployed database object. Its SHIP_TO_SITE_USE_ID column is the attribute most frequently searched in this context.

Underlying Base Objects

The view text, as documented, is a straightforward UNION of two queries:

  • SO_LINES_ALL — the order management table holding sales order line details. Rows from this source carry the qualifier 'SO_LINES'. Constants are substituted for columns that do not exist on SO_LINES_ALL: GROUP_ID = -1, PARENT_LINE_ID = -1, SEQUENCE_NUMBER = -1, and ITEM_SVRID = -1.
  • BOM_CONFIG_EXPLOSIONS — the table storing exploded component selections for configured bills, including the selection quantity and the organization context. Rows from this source carry the qualifier 'BCE'. Constants are substituted for its missing order columns: LINE_ID = -1, HEADER_ID = -1, PARENT_LINE_ID = -1, and SHIP_TO_SITE_USE_ID = -1.

Neither source is documented in ETRM as a formally referenced base object, but both are named explicitly in the view definition.

Key Columns

  • ROW_QUALIFIER — discriminator indicating the source of the row ('SO_LINES' or 'BCE'); essential for filtering.
  • LINE_ID, HEADER_ID — sales order line and header identifiers, populated only for 'SO_LINES' rows.
  • GROUP_ID — configuration group identifier, populated only for 'BCE' rows.
  • INVENTORY_ITEM_ID — the component item identifier (mapped from COMPONENT_ITEM_ID for BCE rows).
  • COMPONENT_CODE — the configuration component code.
  • ORDERED_QUANTITY / CANCELLED_QUANTITY — order quantities from SO_LINES_ALL; BCE rows populate ORDERED_QUANTITY from SELECT_QUANTITY and set cancelled to zero.
  • WAREHOUSE_ID — warehouse/organization context (ORGANIZATION_ID for BCE rows).
  • SHIP_TO_SITE_USE_ID — the ship-to site use identifier carried from SO_LINES_ALL; set to -1 for BCE rows.
  • CONTEXT and ATTRIBUTE1ATTRIBUTE15 — descriptive flexfield segments available on both sources.

Common Use Cases and Queries

A typical query filters by qualifier to avoid the -1 placeholder values:

  • Retrieve sales order component selections by ship-to site:
    SELECT line_id, header_id, inventory_item_id, component_code,
           ordered_quantity, ship_to_site_use_id
    FROM   cz_component_selections_v
    WHERE  row_qualifier = 'SO_LINES'
    AND    ship_to_site_use_id = :p_site_use_id;
  • Retrieve BOM configuration explosion components by group:
    SELECT group_id, inventory_item_id, component_code,
           ordered_quantity, warehouse_id
    FROM   cz_component_selections_v
    WHERE  row_qualifier = 'BCE'
    AND    group_id = :p_group_id;
  • Count components per source:
    SELECT row_qualifier, COUNT(*)
    FROM   cz_component_selections_v
    GROUP  BY row_qualifier;

The SHIP_TO_SITE_USE_ID column is meaningful only for order-line rows, making ROW_QUALIFIER = 'SO_LINES' a necessary predicate whenever this attribute is filtered.