Search Results h_subinventory_code




Overview

The CST_XLA_INV_HEADERS_V view is an Oracle E-Business Suite (EBS) dictionary object owned by the APPS schema. It is classified under the BOM (Bills of Material) product family and is registered as a VALID database view in both EBS 12.1.1 and 12.2.2. The view functions as a bridge between the subledger accounting architecture (XLA) and the inventory and Cost Management transaction model. It exposes event header information held in the XLA events interface and enriches it with detail attributes drawn from material transaction records. Its primary role is to present a flattened, query-friendly projection of inventory cost events so that downstream reporting, reconciliation, and integration logic can associate an XLA event with its underlying inventory transaction, organization, item, cost group, subinventory, and locator context.

A distinctive characteristic of this view is its explicit handling of the CG_TXFR event type, which corresponds to a Cost Group Transfer. The view text uses DECODE(XEG.EVENT_TYPE_CODE, 'CG_TXFR', ...) expressions to substitute fixed transaction type, source type, and action identifiers for cost group transfer events, while retaining the standard MTL_MATERIAL_TRANSACTIONS values for all other event types. This design ensures that cost group transfers, which may not map cleanly onto a conventional inventory transaction, are still presented with valid transaction taxonomy.

Underlying Base Objects

According to the documented ETRM metadata for 12.2.2, the view references the following base objects:

  • CSTPSCHK (PACKAGE) – a Cost Management package associated with transaction validation and processing.
  • MTL_MATERIAL_TRANSACTIONS (SYNONYM) – the core inventory transaction table supplying transaction identifiers, quantities, item, revision, organization, cost group, subinventory, and locator details.
  • MTL_PARAMETERS (SYNONYM) – organization-level inventory parameters used for validation and defaulting.
  • WSH_SHIPPING_PARAMETERS (SYNONYM) – shipping parameter information, typically relevant to transfer and shipping-related inventory events.
  • XLA_EVENTS_GT (SYNONYM) – the global temporary table holding XLA event records, aliased as XEG in the view text, which supplies EVENT_ID, LEDGER_ID, EVENT_TYPE_CODE, and the SOURCE_ID_INT_2 organization reference.

The view text applies a CARDINALITY(XEG, 1) optimizer hint, reflecting an expectation that the XLA events global temporary table contributes a single row per event in the join.

Key Columns

Common Use Cases and Queries

This view is typically queried to reconcile inventory cost events with material transaction detail, to report on cost group transfers, and to feed downstream accounting or integration extracts. A representative query follows:

  • SELECT EVENT_ID, TRANSACTION_ID, ORGANIZATION_ID, INVENTORY_ITEM_ID, H_COST_GROUP_ID, H_TRANSFER_COST_GROUP_ID, PRIMARY_QUANTITY FROM APPS.CST_XLA_INV_HEADERS_V WHERE H_LEDGER_ID = :ledger_id;
  • Analysts investigating cost group transfer activity may filter on the transaction taxonomy columns to isolate events transformed by the CG_TXFR logic.
  • Integration processes join this view to XLA distributions and accounting lines to construct complete journal entry mappings for inventory transactions.