CAC ICP PII vs. Item Costs – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.
Overview
Report to compare the Frozen or Pending Costs against the PII item costs. If you enter a Period Name this report also shows the stored month-end from the period end snapshot (snapshot that is created when you close the inventory periods). If you leave the Period Name blank or null you will report the real-time onhand quantities. Also note that this report excludes inactive items.
Note: there is a hidden parameter, Numeric Sign for PII, which allows you to set the sign of the profit in inventory amounts. You can specify positive or negative values based on how you enter PII amounts into your PII Cost Type. Defaulted as positive (+1).
Parameters:
Cost Type: defaults to your Costing Method; if the cost type is missing component costs the report will find any missing item costs from your Costing Method cost type. PII Cost Type: the profit in inventory cost type you wish to report PII Sub-Element: the sub-element or resource for profit in inventory, such as PII or ICP (optional) Period Name (Closed): Accounting period you wish to report for the onhand quantities at month-end, If you leave this value blank or null you get the real-time onhand quantities. Category Set 1: any item category you wish, typically the Product or Product Line category set (optional). Category Set 2: any item category you wish, typically the Cost category set (optional). Organization Code: enter the specific inventory organization(s) you wish to report (optional). Operating Unit: enter the specific operating unit(s) you wish to report (optional). Ledger: enter the specific ledger(s) you wish to report (optional).
/* +=============================================================================+ – | Copyright 2009 - 2022 Douglas Volz Consulting, Inc. – | All rights reserved. – | Permission to use this code is granted provided the original author is – | acknowledged. No warranties, express or otherwise is included in this – | permission. – +=============================================================================+ – | Version Modified on Modified by Description – | ======= =========== ===================================================== – | 1.0 29 Sep 2009 Douglas Volz Initial Coding – | 1.4 01 May 2019 Douglas Volz Period name is now optional, if left null – | the real-time quantities are reported. – | 1.5 27 Jan 2020 Douglas Volz Added Org Code and Operating Unit parameters. – | 1.6 26 Feb 2022 Douglas Volz Changed to multi-language views for items, – | item status and UOM. Added List Price, – | Market Price and Currency Code to report. – | Exclude items with a status of Inactive. – | 1.7 26 Sep 2022 Douglas Volz Performance improvements and removed group by. – +=============================================================================+*/
Report Parameters
Cost Type, PII Cost Type, PII Sub-Element, Period Name (Closed), Category Set 1, Category Set 2, Category Set 3, Organization Code, Operating Unit, Ledger
Oracle EBS Tables Used
cst_item_costs, mtl_system_items_vl, mtl_item_status_vl, mtl_units_of_measure_vl, mfg_lookups, fnd_common_lookups, mtl_parameters, cst_cost_types, hr_organization_information, hr_all_organization_units, gl_ledgers, cst_item_cost_details, bom_resources, org_access_view, mtl_supply, mtl_interorg_parameters, mtl_onhand_quantities_detail, mtl_secondary_inventories, org_acct_periods, cst_period_close_summary, gl_access_set_norm_assign, gl_ledger_set_norm_assign_v, mo_glob_org_access_tmp, dual
Report Categories
Related Reports
CAC Last Standard Item Cost, CAC Material Account Summary, CAC Inventory and Intransit Value (Period-End), CAC ICP PII Inventory and Intransit Value (Period-End), CAC Inventory and Intransit Value (Period-End) - Discrete/OPM, CAC New Standard Item Costs, CAC Missing Material Accounting Transactions, CAC User-Defined and Rolled Up Costs, CAC Cost vs. Planning Item Controls, CAC Item Cost Summary
Running This SQL Without Blitz Report
Some Oracle EBS SQL reports in this library require functions from the utility package xxen_util. Install it before running the SQL directly against your Oracle EBS database.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | CAC ICP PII vs. Item Costs 03-Sep-2022 232153.xlsx |
| Blitz Report™ XML Import | CAC_ICP_PII_vs_Item_Costs.xml |
| Full SQL on Enginatics | www.enginatics.com/reports/cac-icp-pii-vs-item-costs/ |
Case Study & Technical Analysis: CAC ICP PII vs. Item Costs
Executive Summary
The CAC ICP PII vs. Item Costs report is a strategic validation tool used to audit the relationship between standard inventory costs and their embedded intercompany profit (PII) components. It serves two primary functions: validating that PII is correctly defined as a percentage of the total cost, and providing a valuation snapshot that compares “Gross Inventory Value” (with profit) vs. “Net Inventory Value” (without profit). This report is essential for ensuring that transfer pricing policies are correctly reflected in the system’s cost data.
Business Challenge
In complex supply chains, items may have PII components that are supposed to represent a specific margin (e.g., 10% of the total cost). However, due to manual errors, cost rollups, or currency fluctuations, the actual PII amount in the system might drift.
- Policy Compliance: Finance needs to verify if the PII stored in the system matches the corporate transfer pricing policy.
- Valuation Analysis: For management reporting, companies often need to see inventory value at “Standard Cost” vs. “Consolidated Cost” (Standard - PII).
- Data Integrity: Identifying items where PII > Total Cost (which is impossible and indicates a data error) or where PII exists for “Buy” items that shouldn’t have it.
The Solution
This report provides a side-by-side comparison of the total item cost and its PII component.
- Cost Breakdown: It displays
Item Cost(Standard),PII Item Cost(Profit), andNet Item Cost(Cost Basis). - Percentage Check: It calculates the
PII Percent(PII / Total Cost), allowing users to quickly spot outliers (e.g., sorting by percentage to find items with 0% or >50% profit). - Dual-Mode Quantity:
- Historical Mode: If a
Period Nameis entered, it pulls quantities from the month-end snapshot (CST_PERIOD_CLOSE_SUMMARY), matching the official closing balances. - Real-Time Mode: If
Period Nameis blank, it pulls current on-hand quantities (MTL_ONHAND_QUANTITIES_DETAIL), useful for mid-month auditing.
- Historical Mode: If a
Technical Architecture (High Level)
The query joins the standard cost definition table with a specialized PII calculation subquery.
- Cost Type Join: It joins
CST_ITEM_COSTS(for the main Cost Type, usually “Frozen” or “Average”) with a subquery onCST_ITEM_COST_DETAILS(for the specific PII Cost Type and Sub-Element). - Dynamic Quantity Logic: A complex
LEFT JOINstructure determines the source of the quantity data (Snapshot vs. Real-Time) based on the presence of the:p_period_nameparameter. - Net Calculation: The report performs the math
Total Cost - (Sign * PII Cost)dynamically, handling theNumeric Sign for PIIparameter to ensure correct netting regardless of whether PII is stored as a positive or negative value.
Parameters & Filtering
- Cost Type: The primary costing method (e.g., Frozen, Average) to compare against.
- PII Cost Type & Sub-Element: The specific cost bucket holding the profit value.
- Period Name (Closed): The switch that toggles between historical snapshot data and real-time on-hand data.
- Category Sets: Allows for analysis by Product Line or Cost Category.
Performance & Optimization
- Snapshot Utilization: When running for a closed period, using
CST_PERIOD_CLOSE_SUMMARYis significantly faster than summing transaction history. - Inactive Item Exclusion: The report automatically filters out inactive items to keep the output focused on relevant inventory.
FAQ
Q: Why is the “Net Item Cost” higher than the “Item Cost”?
A: This happens if your Numeric Sign for PII parameter is set incorrectly. If PII is stored as a negative number (contra-asset) but you tell the report it’s positive, the math will add it instead of subtracting it.
Q: Can I use this to check Pending Costs before a standard cost update?
A: Yes. Set the Cost Type parameter to “Pending” (or whatever your simulation cost type is named) to validate the new costs and PII values before they are frozen.
Q: Why do some items show 0 Quantity? A: If you run in Real-Time mode, it shows items even if they have 0 on-hand, as long as they have a cost defined. This is useful for checking master data setup even for items currently out of stock.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© 2026 Enginatics