PA Invoice Review – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Projects · all Projects reports
Overview
Project draft invoices with line details showing invoice amounts, approval and release status, customer, GL date, and expenditure type breakdown.
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
Operating Unit, Project, Invoice Date From, Invoice Date To, Released
Oracle EBS Tables Used
pa_draft_invoice_items, pa_tasks, pa_draft_invoices_all, pa_projects_all, hz_cust_accounts, hz_parties, hr_all_organization_units_vl, mo_glob_org_access_tmp, dual
Report Categories
Related Reports
ONT Orders and Lines 11i, ONT Orders and Lines, PA Project Revenue and Cost by Period, PA Project Upload, GL Account Analysis, PA Project Billing Status, GL Account Analysis (Drilldown) (with inventory and WIP), GL Account Distribution Analysis, QP Customer Pricing Engine Request
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 | PA Invoice Review 23-Mar-2026 194132.xlsx |
| Blitz Report™ XML Import | PA_Invoice_Review.xml |
| SQL Source | PA Invoice Review.sql |
| Full Report on Enginatics | www.enginatics.com/reports/pa-invoice-review/ |
Case Study & Technical Analysis: PA Invoice Review
Executive Summary
The PA Invoice Review report lists Oracle Projects draft invoices with their line details. For each draft invoice it shows the invoice amount, the approval, release and transfer status, the bill-to customer, the GL date and the project period, and for each line the amount, description, task and event. Project billing and revenue teams use it to review draft invoices before they are released to receivables, to check the approval state of each invoice, and to confirm which lines make up a billing cycle. The report runs in Excel via Blitz Report.
Business Challenge
- Pre-release review: Draft invoices must be checked for amount, customer and dates before they are released, and a line-by-line review in the forms is slow.
- Approval tracking: Invoices move through approval, release and transfer, and billing teams need to see which stage each invoice has reached.
- Customer and task alignment: Each invoice line carries a task and event, and reviewers must confirm that the billed work matches the bill-to customer.
- Period and GL date control: The GL date and the Projects period decide where the revenue is recognized, so they must be visible at review.
The Solution
- Invoice-level totals: The invoice amount is the sum of its draft invoice line amounts for the same project and invoice number.
- Status flags: Approved, Released and Transferred are shown as Yes or No, with their dates beside them.
- Line detail: Each line shows its line number, amount, description, task number and event number.
- Audit columns: The creator, creation date, last updater and last update date are returned for each draft invoice.
Technical Architecture (High Level)
Primary Tables
PA_DRAFT_INVOICES_ALL: the draft invoice header, with invoice number, dates, currency, bill-to customer, status dates and GL date.PA_DRAFT_INVOICE_ITEMS: the draft invoice lines, with line number, amount, text, task and event.PA_PROJECTS_ALL: the project number, name and organization.PA_TASKS: the task number for each invoice line.HZ_CUST_ACCOUNTS: the bill-to customer account and its number.HZ_PARTIES: the customer party name.HR_ALL_ORGANIZATION_UNITS_VL: the operating unit name.MO_GLOB_ORG_ACCESS_TMP: the operating unit access list for the session.
Logical Relationships
PA_DRAFT_INVOICES_ALLis joined toPA_DRAFT_INVOICE_ITEMSon project and draft invoice number.PA_DRAFT_INVOICES_ALLis joined toPA_PROJECTS_ALLon project identifier, and the project’s organization is joined toHR_ALL_ORGANIZATION_UNITS_VL.PA_DRAFT_INVOICES_ALLis outer joined toHZ_CUST_ACCOUNTSon the bill-to customer identifier, and toHZ_PARTIESon party identifier.- Each invoice line is outer joined to
PA_TASKSon task identifier to return the task number. - The invoice amount is a scalar subquery that sums the line amounts of the same project and invoice.
Parameters & Filtering
- Operating Unit: Restricts the output to one operating unit within the accessible set.
- Project: Restricts the draft invoices to one project.
- Invoice Date From and To: Restrict the draft invoices by their invoice date.
- Released: Restricts the draft invoices by release status.
The SQL text does not reference these parameters through bind variables. The rows are determined by the operating unit access list and the joins described above.
Performance & Optimization
- The organization restriction is an
INsubquery onMO_GLOB_ORG_ACCESS_TMP, unioned with the current organization for release 11, which keeps the read to the permitted operating units. - The invoice amount is a correlated scalar subquery on
PA_DRAFT_INVOICE_ITEMS, which runs once for each line returned. - Customer and task lookups are outer joins on keyed columns, so they do not multiply the rows.
- The query uses no aggregation at the outer level and no analytic functions.
FAQ
Q: How do I see whether a draft invoice has been released to receivables? A: The Released column shows Yes when a released date exists, with the released date beside it.
Q: Why does the invoice amount repeat on every line? A: The invoice amount is the total of all lines for the same project and draft invoice number, so it is repeated on each line of that invoice.
Q: Which customer is shown for a draft invoice? A: It is the bill-to customer on the draft invoice header, shown by its party name and account number.
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