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 Internal Order Shipment Margin


Report to display the internal sales orders/requisition shipments with COGS, margin, inter-company profit and other useful information. This report separately gets the COGS and revenue entries for the entered date range. If the COGS information is not reported the sales order line was not shipped in the entered date range. If the revenue nformation is not reported the sales order line was not billed in the entered date range.

/* +=============================================================================+ – | Copyright 2010 - 2020 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 ( – | – | Parameters: – | p_from_org_ledger – general ledger you wish to report, for the From Organization, optional – | p_to_org_ledger – general ledger you wish to report, for the To Organization, optional – | p_from_org_code – the source or from inventory organization you wish to report, optional – | p_trx_date_from – starting transaction date for internal shipment transactions, mandatory – | p_trx_date_to – ending transaction date for internal shipment transactions, mandatory – | p_pii_cost_type – the profit in inventory costs you wish to report – | p_pii_resource_code – the sub-element or resource for profit in inventory, – | such as PII or ICP – | p_curr_conv_date – currency conversion date – | p_std_cost_curr_conv_type – currency conversion type used to set your standard costs and – | transfer prices – | – | Version Modified on Modified by Description – | ======= =========== ========================================= – | Version Modified on Modified by Description – | ======= =========== ============== ========================================= – | 1.0 12 Nov 2009 Douglas Volz Initial Coding based on XXX_IRO_COGS.sql – | 1.27 25 May 2020 Douglas Volz Changed to multi-language views for organizations, operating units, – | categories and units of measure. Remove RA Batches code logic. – | Remove sections for custom IR/ISO transactions. – +=============================================================================+*/ – ======================================================== – Program Outline – ======================================================== – Section I: Output the Report Columns for the Internal Shipment Entries – Section II: Get the currency conversion rates, based on the currency conversion – type and currency conversion date parameters – Section III: Condense the 2 union all statements into one line – for each Transaction Id. Also get the PII item costs. – Section IV: Get the material, payables and revenue transactions – which represent the Internal Order activity. – Assume IR/ISO shipments may or may not use custom billing – Section IV has 2 union all reports as follows: – Report 1: Get IR/ISO COGS and Sales for Intransit Shipments – where title passes upon shipment (FOB = 1, Shipment) – Report 2: Get IR/ISO COGS and Sales for IR/ISO Intransit Receipts – where title passes upon receipt (FOB_Point = 2, Receipt)


Transaction Date From, Transaction Date To, Currency Conversion Date, Currency Conversion Type, Budget Currency Conversion Type, Category Set 1, Category Set 2, PII Sub-Element, PII Cost Type, From Org Ledger, To Org Ledger

Used tables

ra_customer_trx_all, gl_daily_rates, gl_daily_conversion_types, cst_item_cost_details, cst_cost_types, bom_resources, mtl_system_items_vl, mtl_units_of_measure_vl, mtl_material_transactions, mtl_transaction_lot_numbers, oe_order_headers_all, oe_order_lines_all, po_requisition_headers_all, po_requisition_lines_all, mtl_parameters, hz_cust_accounts_all, hz_cust_acct_sites_all, hz_cust_site_uses_all, hz_parties, hr_organization_information, hr_all_organization_units_vl, gl_ledgers, mtl_intercompany_parameters, hz_cust_accounts, qp_list_headers_tl, gl_access_set_norm_assign, gl_ledger_set_norm_assign_v




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 Internal Order Shipment Margin 23-Jun-2022 160407.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