CAC ICP PII Material Account Detail – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Cost Accounting · all Cost Accounting reports
Overview
Report to get the Material accounting distributions, in detail, for each item, organization and individual transaction. Including profit in inventory amounts based on your PII cost type. With the Show SLA Accounting parameter you can choose to use the Release 12 Subledger Accounting (Create Accounting) account setups by selecting Yes. And if you have not modified your SLA accounting rules, select No to allow this report to run a bit faster. Use Show Projects to display or not display the project information (project number, name, task and project cost collection status) and use Show WIP Job to display or not display the WIP job information (WIP class, class type, WIP job, description, assembly number and assembly description). To get all positive and negative amounts above a threshold value, use the Absolute Transaction Amount parameter. For Discrete, Flow and Workorderless WIP (but not Repetitive Schedules). Both Flow and Workorderless show up as the WIP Type “Flow schedule”.
Note: The SQL logic and code for this report is identical to the CAC Material Account Summary report.
Hidden Parameters:
Numeric Sign for PII: allows you to set the sign of the profit in inventory amounts, defaulted to “1” (mandatory).
/* +=============================================================================+ – | 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. – | 1.32 24 Oct 2026 Andy Haack Rebuilt to the Blitz Report SQL standards. – +=============================================================================+ – | – | Version Modified on Modified by Description – | ======= =========== ============== ========================================= – | 1.0 06 Nov 2009 Douglas Volz Initial Coding – | 1.30 21 Oct 2022 Douglas Volz Logic change for Internal RMA order numbers. – | 1.31 28 Jul 2025 Douglas Volz Added Reason Codes and GL & OU Security Profiles.
Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.
Report Parameters
PII Cost Type, PII Sub-Element, Transaction Date From, Transaction Date To, Show SLA Accounting, Show Projects, Show WIP Job, Category Set 1, Category Set 2, Category Set 3, Accounting Line Type, Transaction Type, Transaction Source Type, Transaction Id, Minimum Absolute Amount, Only Zero Amounts, Organization Code, Item Number, Operating Unit, Ledger
Oracle EBS Tables Used
mtl_parameters, cst_item_cost_details, cst_cost_types, bom_resources, xxen_report_org_access, wip_discrete_jobs, wip_requirement_operations, mtl_material_transactions, mtl_item_status_vl, oe_order_lines_all, oe_order_headers_all, oe_transaction_types_tl, mtl_transaction_accounts, wip_entities, wip_flow_schedules, wip_accounting_classes, mtl_system_items_vl, org_acct_periods, mtl_transaction_types, mtl_txn_source_types, hr_organization_information, hr_all_organization_units_vl, gl_ledgers, gl_code_combinations, mtl_secondary_inventories, mtl_transaction_reasons, cst_cost_groups, cst_cost_elements
Report Categories
Related Reports
CAC Material Account Detail, CAC Material Account Summary, CAC ICP PII Material Account Summary, CAC ICP PII WIP Material Usage Variance, CAC Manufacturing Variance, CAC WIP Resource Efficiency, CAC ICP PII WIP Pending Cost Adjustment, CAC WIP Material Relief, CAC WIP Material Usage Variance
Running This SQL Without Blitz Report
The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | CAC ICP PII Material Account Detail 14-Oct-2022 070903.xlsx |
| Blitz Report™ XML Import | CAC_ICP_PII_Material_Account_Detail.xml |
| SQL Source | CAC ICP PII Material Account Detail.sql |
| Full Report on Enginatics | www.enginatics.com/reports/cac-icp-pii-material-account-detail/ |
Case Study & Technical Analysis: CAC ICP PII Material Account Detail
Executive Summary
The CAC ICP PII Material Account Detail report is a forensic accounting tool that bridges the gap between operational inventory transactions and financial profit elimination. It provides a granular, transaction-by-transaction view of material movements, overlaid with the specific Intercompany Profit (ICP) or Profit in Inventory (PII) value associated with each item. This allows finance teams to audit exactly which transactions contributed to the PII balance in the General Ledger.
Business Challenge
Eliminating intercompany profit is often done at a high level (e.g., “Total Inventory * Margin %”). However, this approach fails when:
- Margins Vary: Different items have different profit margins.
- Transaction Timing: Profit is only realized when the item is sold to a third party. Internal transfers just move the profit around.
- Audit Trails: Auditors ask, “Why did the PII elimination account change by $50,000 this month?” A high-level summary cannot answer this.
- Reconciliation: When the General Ledger PII balance doesn’t match the calculated PII in inventory, finding the culprit transaction is like finding a needle in a haystack.
The Solution
This report solves the reconciliation challenge by attaching the PII value to every single material transaction.
- Transaction-Level PII: It calculates
Transaction Quantity * PII Unit Costfor every receipt, issue, and transfer. - Accounting Visibility: It shows the actual Debit and Credit accounts hit by the transaction, allowing users to see if the PII was correctly moved or expensed.
- SLA Integration: It supports both the legacy inventory accounting (
MTL_TRANSACTION_ACCOUNTS) and the modern Subledger Accounting (XLA_DISTRIBUTION_LINKS) to ensure the data matches the final GL entries.
Technical Architecture (High Level)
The query combines a specialized PII calculation with a massive transaction detail extract.
- PII CTE: A Common Table Expression (
pii) pre-calculates the PII unit cost for every item/organization combination based on the user-specifiedPII Cost TypeandPII Sub-Element. - Main Query: This joins the PII CTE to the material transaction tables (
MTL_MATERIAL_TRANSACTIONS,MTL_TRANSACTION_ACCOUNTSorXLA_...). - Dynamic Accounting: The
Show SLA Accountingparameter toggles the logic to pull account numbers either from the raw inventory subledger or the final SLA distribution links, handling the complexity of R12 accounting engines.
Parameters & Filtering
- PII Cost Type & Sub-Element: Critical parameters that define what the system considers “Profit.”
- Transaction Date Range: Allows for focused period-end auditing.
- Show SLA Accounting: “Yes” provides the most accurate GL view; “No” provides a faster operational view.
- Show Projects / WIP: Optional flags to bring in Project Manufacturing or Work in Process context, which can be performance-intensive.
- Minimum Absolute Amount: Filters out small “noise” transactions to focus on material variances.
Performance & Optimization
- CTE Strategy: Calculating PII costs in a CTE once per item/org is far more efficient than recalculating it for every single transaction row.
- Indexed Filtering: The query relies heavily on
TRANSACTION_DATEandORGANIZATION_IDindexes to limit the dataset before joining to the heavy accounting tables.
FAQ
Q: Why does the report show PII for “Issue to WIP” transactions? A: When raw materials are issued to a job, the profit embedded in those materials moves from “Raw Material Inventory” to “WIP Inventory.” This report tracks that movement to ensure the PII isn’t accidentally written off or lost during production.
Q: Can I use this to reconcile my PII GL Account? A: Yes. By filtering for your PII GL Account in the output (using Excel filters on the account segments), you can sum the “PII Amount” column and compare it to the “Transaction Amount” to see if the manual or automated entries match the theoretical PII movement.
Q: What is the “Numeric Sign for PII” parameter? A: Some companies store PII as a negative cost element (contra-asset) to net it out, while others store it as a positive statistical element. This parameter ensures the report sums the values correctly regardless of the setup.
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
© Enginatics GmbH