Search Results wip_scrap_values




Overview

The CST_COST_UPDATES table is a critical audit and history table within the Oracle E-Business Suite Bills of Material (BOM) module. It serves as the central repository for recording every instance of a cost update transaction performed in the system. Its primary role is to provide a historical ledger of changes made to item costs, enabling traceability, compliance, and detailed analysis of cost evolution over time. Each row in this table represents a distinct cost update event, capturing the who, what, when, and scope of the change. This audit trail is essential for financial reporting, cost variance analysis, and troubleshooting discrepancies in inventory valuation.

Key Information Stored

The table's structure is designed to capture the metadata of a cost update operation. The primary identifier is the system-generated COST_UPDATE_ID. Key descriptive columns include ORGANIZATION_ID, which specifies the inventory organization where the update occurred, and UPDATE_DATE, which records the timestamp of the transaction. The COST_TYPE_ID links to the specific cost type (e.g., Frozen, Average) that was modified. To define the scope of the update, the table stores CATEGORY_ID and CATEGORY_SET_ID, indicating if the update was filtered by specific item categories. The INV_ADJUSTMENT_ACCOUNT column holds the general ledger account used for any resulting inventory value adjustments, linking directly to GL_CODE_COMBINATIONS. Together, these fields provide a comprehensive snapshot of each cost maintenance activity.

Common Use Cases and Queries

A primary use case is auditing the history of standard cost changes for financial period closes or internal audits. Analysts query this table to generate reports detailing all cost updates within a specific date range, including the user who performed them and the associated adjustment accounts. Another common scenario involves troubleshooting; when a current item cost seems incorrect, tracing back through CST_COST_UPDATES can identify the specific update that introduced the change. A typical query pattern joins this table to CST_ITEM_COSTS or CST_STANDARD_COSTS to correlate the update event with the resulting cost values.

  • Sample Query: SELECT ccu.COST_UPDATE_ID, ccu.UPDATE_DATE, ccu.LAST_UPDATE_LOGIN, ct.COST_TYPE, msiv.CONCATENATED_SEGMENTS ITEM, cic.ITEM_COST FROM CST_COST_UPDATES ccu, CST_COST_TYPES ct, CST_ITEM_COSTS cic, MTL_SYSTEM_ITEMS_KFV msiv WHERE ccu.COST_TYPE_ID = ct.COST_TYPE_ID AND cic.COST_UPDATE_ID = ccu.COST_UPDATE_ID AND cic.INVENTORY_ITEM_ID = msiv.INVENTORY_ITEM_ID AND cic.ORGANIZATION_ID = msiv.ORGANIZATION_ID AND ccu.ORGANIZATION_ID = :p_org_id AND TRUNC(ccu.UPDATE_DATE) BETWEEN :p_date_from AND :p_date_to ORDER BY ccu.UPDATE_DATE DESC;

Related Objects

CST_COST_UPDATES has extensive relationships with core costing tables, acting as a parent record for detailed cost changes. As per the provided metadata, it is referenced by numerous child tables via the COST_UPDATE_ID foreign key. These include CST_ITEM_COSTS, CST_STANDARD_COSTS, and CST_ELEMENTAL_COSTS, which store the actual revised cost values resulting from an update. It also links to temporary and debug tables like CST_STD_COST_ADJ_TEMP and CST_STD_COST_ADJ_DEBUG used during the update process. Furthermore, it maintains referential integrity with master data tables: CST_COST_TYPES (COST_TYPE_ID), MTL_CATEGORIES_B (CATEGORY_ID), MTL_CATEGORY_SETS_B (CATEGORY_SET_ID), and GL_CODE_COMBINATIONS (INV_ADJUSTMENT_ACCOUNT). This web of relationships underscores its central role in the cost management data model.