CAC Number of Item Costs by Cost Type
Description:
Report to show the count of item costs by cost type. Use this report after you copy from one cost type to another, to ensure all rows have been copied over.
/* +=============================================================================+
– | Copyright 2017 - 2019 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. |
– +=============================================================================+
– |
– | Original Author: Douglas Volz (doug@volzconsulting.com)
– |
– | Program Name: xxx_count_costs_by_cost_type.sql
– |
– | Parameters:
– | p_from_cost_type – The cost type you copied from, mandatory
– | p_to_cost_type – The cost type you copied to, mandatory
– | p_from_org_code – The inventory organization you copied from, if
– | enter a blank or null value you get all organizations
– | p_to_org_code – The inventory organization you copied to, if
– | enter a blank or null value you get all organizations
– |
– | Description:
– | Report to show the count of item costs by cost type. Use this report after
– | you copy from one cost type to another, to ensure all rows have been copied over.
– |
– | Version Modified on Modified by Description
– | ======= =========== ============== =========================================
– | 1.0 04 May 2017 Douglas Volz Initial Coding
– | 1.1 31 Aug 2019 Douglas Volz Added to and from cost types and org codes
– +=============================================================================+*/
Parameters
From Cost Type, To Cost Type, From Org Code, To Org Code
Used tables
cst_item_costs, mtl_parameters, cst_cost_types
Categories
Related reports
CAC Internal Order Shipment Margin, CAC PO Price vs. Costing Method Comparison, CST Item Standard Cost Upload
Dependencies
If you would like to try one of these Oracle EBS SQLs without having Blitz Report installed, note that some of the reports require functions from utility package xxen_util.
Example Report
CAC Number of Item Costs by Cost Type 07-Jul-2022 152510.xlsx
Report SQL
www.enginatics.com/reports/cac-number-of-item-costs-by-cost-type/
Blitz Report™ import options
CAC_Number_of_Item_Costs_by_Cost_Type.xml
Case Study & Technical Analysis: CAC Number of Item Costs by Cost Type
Executive Summary
The CAC Number of Item Costs by Cost Type report is a simple but vital utility for Cost Accountants. It provides a count of how many items exist in one Cost Type versus another. This is primarily used during the “Cost Copy” process to verify that the copy was successful and complete.
Business Challenge
- Completeness Check: You have 10,000 items in your “Frozen” cost type. You copy them to “Pending” to simulate a price increase. Did all 10,000 copy over? Or did 50 fail?
- Multi-Org Validation: Did the copy process work for all 5 inventory organizations, or did one fail?
Solution
This report provides a side-by-side count.
- Comparison: Count(Cost Type A) vs. Count(Cost Type B).
- Granularity: Breaks down the count by Organization.
- Variance: Ideally, the counts should match (or match the expected subset).
Technical Architecture
- Query:
SELECT count(*) FROM cst_item_costs GROUP BY organization_id, cost_type_id. - Logic: Simple aggregation.
Parameters
- From Cost Type: (Mandatory) Source.
- To Cost Type: (Mandatory) Target.
- Org Code: (Optional) Filter.
Performance
- Instant: Counting rows is extremely fast in Oracle.
FAQ
Q: Why would the counts differ? A: The “Cost Copy” program has options to “Copy Only Based on Rollup” or “Copy Only Buy Items”. If you used these filters, the target count will be lower. Also, if an item already exists in the target, it’s an update, not an insert, so the count might not change.
Oracle E-Business Suite Reporting Library
We provide an open source Oracle EBS SQLs as a part of operational and project implementation support toolkits for rapid Excel reports generation.
Blitz Report™ is based on Oracle EBS forms technology, and hence requires minimal training. There are no data or performance limitations since the output files are created directly from the database without going through intermediate file formats such as XML.
Blitz Report can be used as BI Publisher and Oracle Discoverer replacement tool. Standard Oracle BI Publisher and Discoverer reports can also be imported into Blitz Report for immediate output to Excel. Typically, reports can be created and version tracked within hours instead of days. The concurrent request output automatically opens upon completion without the need for re-formatting.
The Filters, Columns, Rows and Values fields are used to create and deliver the data in pivot table format with full drill down to details.

The Excel template upload functionality in Blitz Report allows users to create their own layouts by uploading an Excel template with additional sheets and charts, automatically refreshed when the report runs again. This allows to create custom dashboards and more advanced visualizations of report data.

You can download and use Blitz Report free of charge for your first 30 reports.
The installation and implementation process usually takes less than 1 hour; you can refer to our installation and user guides for specific details.
If you would like to optimize your Oracle EBS implementation and or operational reporting you can visit www.enginatics.com to review great ideas and example usage in blog. Or why not try for yourself in our demo environment.
Useful Links
Blitz Report™ – World’s fastest data upload and reporting for Oracle EBS
Oracle Discoverer replacement – importing worksheets into Blitz Report™
Blitz Report™ Questions & Answers
Supply Chain Hub by Blitz Report™
© 2025 Enginatics