Library of Oracle EBS SQLs for operational Excel and ECC reporting, Discoverer replacement, Oracle EBS performance tuning and rapid report development.
Report for the margin from the customer invoices and shipments, based on the standard Oracle Margin table, cst_margin_summary. (If you want to show the COGS and Sales Accounts use report CAC Margin Analysis Account Summary.)
Note: in order to run this report, you first need to run the Margin Analysis Load Run request (to populate the standard Oracle Margin table).
Transaction Date From: enter the starting transaction date (mandatory). Transaction Date To: enter the ending transaction date (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). Customer Name: enter the specific customer name you wish to report (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 - 2024 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)
– |
– | Version Modified on Modified by Description
– | ======= =========== ============== =========================================
– | 1.0 18 APR 2006 Douglas Volz Initial Coding
– | 1.1 15 MAY 2006 Douglas Volz Working version
– | 1.2 17 MAY 2006 Douglas Volz Added order line and date information
– | 1.3 14 Dec 2012 Douglas Volz Modified for Garlock, changed category set
– | 1.4 19 Dec 2012 Douglas Volz Bug fix for category set name
– | 1.5 29 Jan 2013 Douglas Volz Fixed date parameters to have same format
– | as other reports; had to remove sales and COGS accounts as these are
– | on different rows and would need to rewrite the code to include this.
– | Also added a join for mic and mcs for category_set_id to avoid duplicate rows.
– | And added a having clause to screen out zero rows.
– | 1.6 25 Feb 2013 Douglas Volz Added apps.mtl_default_category_sets mdcs table
– | to make the script more generic
– | 1.7 27 Feb 2017 Douglas Volz Modified for Item Category and customer
– | information.
– | 1.8 28 Feb 2017 Douglas Volz Removed sales rep information,
– | was causing cross-joining.
– | 1.9 22 May 2017 Douglas Volz Adding Inventory item category
– | 1.10 23 May 2020 Douglas Volz Use multi-language table for UOM Code, item
– | master, OE transaction types and hr organization names.
– | 1.11 14 Jun 2024 Douglas Volz Remove tabs, reinstall parameters and org access controls.
– +=============================================================================+*/
Transaction Date From, Transaction Date To, Category Set 1, Category Set 2, Category Set 3, Customer Name, Item Number, Organization Code, Operating Unit, Ledger
cst_margin_summary, mtl_system_items_vl, mtl_units_of_measure_vl, fnd_common_lookups, mtl_parameters, so_order_types_all, oe_transaction_types_tl, hz_cust_accounts_all, hz_parties, hr_organization_information, hr_all_organization_units_vl, gl_ledgers, org_access_view
CAC Margin Analysis Account Summary
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.
CAC Margin Analysis Summary 24-Jun-2022 063517.xlsx
www.enginatics.com/reports/cac-margin-analysis-summary/
CAC_Margin_Analysis_Summary.xml
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 reporting and data upload for Oracle EBS
Oracle Discoverer replacement – importing worksheets into Blitz Report™
Blitz Report™ Questions & Answers
Supply Chain Hub by Blitz Report™
© 2025 Enginatics