Library of Oracle EBS SQLs for operational Excel and ECC reporting, Discoverer replacement, Oracle EBS performance tuning and rapid report development.

View the Project on GitHub Enginatics/Oracle-EBS-SQL

CAC Calculate Average Item Costs


Using purchase order receipts, calculate average item costs over a specified transaction date range and compare against the Comparison Cost Type. In addition, with the Use Default Material Overheads parameter you can choose which material overheads to use on this report. Select Yes to use the Default Material Overhead setups. Set to No to use the material overheads from the specified Comparison Cost Type. And if planning to use roll up these item costs, to avoid doubling up rolled up material costs on assemblies, choose Yes for the parameter Exclude Rolled Up Items, to avoid having manually defined material costs and rolled up material costs.


Transaction Date From: enter the starting transaction date for PO Receipt History (mandatory). Transaction Date To: enter the ending transaction date for PO Receipt History (mandatory). Comparison Cost Type: enter the cost type to compare against the calculated average item costs (mandatory). If the costs are not found in the Comparison Cost Type get them from the Costing Method Cost Type. Use Default Material Overheads: set to Yes to report the material overheads based on the Default Material Overhead setups. Set to No to use the material overheads from the specified Comparison Cost type (mandatory). Only Active Rates: set to Yes to only get active, enabled default material overhead rates (mandatory). Exclude Rolled Up Items: to avoid doubling up rolled up material costs, choose Yes for this parameter, to avoid having manually defined material costs and rolled up material costs (mandatory). Currency Conversion Date: the exchange rate conversion date that was used to set the standard costs (mandatory). Currency Conversion Type: the exchange rate conversion type that was used to set the standard costs (mandatory). Show Last AP Invoice: Enter Yes to show the last AP invoice date, number and price (mandatory). Category Set 1: any item category you wish, typically the Cost or Product Line category set (optional). Category Set 2: any item category you wish, typically the Inventory category set (optional). Supplier Type to Exclude: enter the specific supplier(s) you wish to exclude from the average cost calculations (optional). Item Status to Exclude: enter the item number status you want to exclude. Defaulted to ‘Inactive’ (optional). Item Number: enter the specific item number(s) you wish to report (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 2006 - 2023 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 05 Jan 2019 Douglas Volz Initial Coding based on item_cost_history.sql – | 1.15 10 Jan 2023 Douglas Volz Fix for Average Cost calculations, UOM issue. – | 1.16 21 Aug 2023 Douglas Volz Remove tabs and restrict to only orgs you have access to, – | Add last payables invoice and purchase order price information. – | 1.17 25 Sep 2023 Douglas Volz Fix for the Last PO and Last A/P information – | 1.18 13 Oct 2023 Andy Haack Fix for G/L Daily Rates, outer joins – | 1.19 24 Nov 2023 Douglas Volz Fixed item number parameter for last PO information – | and fix Last A/P Invoice info for G/L Daily Rates – | 1.20 08 Dec 2023 Douglas Volz Added G/L and Operating Unit security restrictions. – +=============================================================================+*/


Transaction Date From, Transaction Date To, Use Default Material Overheads, Only Active Rates, Exclude Rolled Up Items, Comparison Cost Type, Currency Conversion Date, Currency Conversion Type, Show Last AP Invoice, Category Set 1, Category Set 2, Supplier Type to Exclude, Item Status to Exclude, Item Number, Organization Code, Operating Unit, Ledger

Used tables

mtl_units_of_measure_vl, mtl_item_status_vl, fnd_common_lookups, mfg_lookups, hr_organization_information, hr_all_organization_units_vl, gl_ledgers, mtl_material_transactions, rcv_transactions, mtl_system_items_vl, mtl_parameters, po_vendors, fnd_lookup_values_vl, org_access_view, cst_cost_types, cst_item_costs




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 Calculate Average Item Costs 11-Dec-2022 114227.xlsx

Report SQL

Blitz Report™ import options


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.

Blitz Report Pivots

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.

Blitz Report Dashboard

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 to review great ideas and example usage in blog. Or why not try for yourself in our demo environment.

CRM FoundationContracts Core
Lease and Finance ManagementPayments
Process ManufacturingProcess Manufacturing Inventory
Public Sector FinancialsShipping Execution
XML PublisherAdvanced Pricing
CapacityLegal Entity Configurator
ProjectsService Contracts
Subledger AccountingApplications DBA
Enterprise Asset ManagementInstalled Base
E-Business TaxEnterprise Command Center
Advanced Supply Chain PlanningProperty Manager
Bills of MaterialMaster Scheduling/MRP
Work in ProcessHuman Resources
Order ManagementCash Management
Cost ManagementDiscoverer
PayablesGeneral Ledger
Blitz ReportDatabase Administration
Application Object LibraryCost Accounting

Useful Links

Blitz Report™ – World’s fastest reporting and data upload for Oracle EBS

Oracle Discoverer replacement – importing worksheets into Blitz Report™

Blitz Report™ Toolkits

Supply Chain Hub by Blitz Report™

Blitz Report™ customers

Oracle EBS Reporting Blog

Oracle EBS Reporting

© 2024 Enginatics