Skip to the content.

CAC ICP PII Material Account Detail – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

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).

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.

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

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

Report Categories

Cost Accounting - Profit in Inventory, Cost Accounting - Transactions, Enginatics, R12 only

CAC Material Account Detail, CAC Missing Material Accounting Transactions, CAC ICP PII Inventory Pending Cost Adjustment, CAC ICP PII vs. Item Costs, CAC Inventory and Intransit Value (Period-End) - Discrete/OPM, CAC Inventory Lot and Locator OPM Value (Period-End), CAC Material Account Alias with Lot Numbers, CAC ICP PII WIP Material Usage Variance, CAC Material Account Summary

Running This SQL Without Blitz Report

Some Oracle EBS SQL reports in this library require functions from the utility package xxen_util. Install it before running the SQL directly against your Oracle EBS database.

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
Full SQL 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:

The Solution

This report solves the reconciliation challenge by attaching the PII value to every single material transaction.

Technical Architecture (High Level)

The query combines a specialized PII calculation with a massive transaction detail extract.

Parameters & Filtering

Performance & Optimization

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.


© 2026 Enginatics