CAC ICP PII Material Account Detail
Description:
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).
Parameters:
PII Cost Type: the profit in inventory cost type you wish to report (mandatory). PII Sub-Element: the sub-element or resource for profit in inventory, such as PII or ICP (mandatory). Transaction Date From: enter the starting transaction date (mandatory). Transaction Date To: enter the ending transaction date (mandatory). Show SLA Accounting: enter Yes to use the Subledger Accounting rules for your accounting information (mandatory). If you choose No the report uses the pre-Create Accounting entries. Show Projects: display the project information. Enter Yes or No, use to limit the report size (mandatory). Show WIP: display the WIP job or flow schedule information. Enter Yes or No, use to limit the report size (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). Accounting Line Type: enter the accounting purpose or line type to report (optional). Transaction Type: select the material transaction type, such as PO Receipt, Return to Vendor or Account Alias Issue (optional). Transaction Source Type: select the material transaction source, such as Purchase Order or Account Alias (optional). Transaction Id: enter the transaction number or identifier to report (optional). Minimum Absolute Amount: enter the minimum debit or credit to report (optional). To see all accounting entries, enter zero (0). Only Zero Amounts: use this parameter to find entries with a zero transaction amount (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 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. – +=============================================================================+ – | – | 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.
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
Used tables
mfg_lookups, mtl_system_items_vl, org_acct_periods, mtl_transaction_types, mtl_units_of_measure_vl, mtl_item_status_vl, mtl_txn_source_types, pii, mtl_secondary_inventories, mtl_transaction_reasons, cst_cost_groups, cst_cost_elements, bom_resources, fnd_user, gl_code_combinations, hr_organization_information, hr_all_organization_units_vl, gl_ledgers, fnd_common_lookups, &pii_lookup_table, select, decode, organization_id, fob_point, acct_period_id, reference_account, inv_sub_ledger_id, inventory_item_id, transaction_source_type_id, &show_document_number, transaction_id, transfer_transaction_id, parent_transaction_id, transaction_date, creation_date, created_by, reason_id, regexp_replace, transaction_type_id, accounting_line_type, gl_access_set_norm_assign, gl_ledger_set_norm_assign_v, mo_glob_org_access_tmp, dual
Categories
Cost Accounting - Profit in Inventory, Cost Accounting - Transactions, Enginatics
Related reports
CAC Material Account Detail, CAC Missing Material Accounting Transactions
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 ICP PII Material Account Detail 14-Oct-2022 070903.xlsx
Report SQL
www.enginatics.com/reports/cac-icp-pii-material-account-detail/
Blitz Report™ import options
CAC_ICP_PII_Material_Account_Detail.xml
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.
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