AP Period Close Exceptions – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™. Oracle EBS module: Payables · all Payables reports
Overview
Based on Oracle standard Period Close Exceptions Report Source: Period Close Exceptions Report (XML) Short Name: APXPCER DB package: ap_period_close_pkg
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
Ledger, Operating Unit, Exception Type, Period Name, From Accounting Date, To Accounting Date, Supplier
Oracle EBS Tables Used
ap_invoices_all, ap_invoice_distributions_all, ap_suppliers, hz_parties, hr_all_organization_units, gl_ledgers, fnd_currencies, ap_invoice_lines_all, ap_checks_all, ap_payment_history_all, ce_bank_accounts, ce_bank_acct_uses_all, ap_system_parameters_all, ap_inv_selection_criteria_all, ap_selected_invoices_all, ap_lookup_codes, fnd_lookups, iby_pay_service_requests, xla_ae_headers, xla_events, xla_event_types_tl, xla_transaction_entities
Report Categories
Related Reports
GL Account Analysis, GL Account Analysis (Drilldown) (with inventory and WIP), GL Account Distribution Analysis, AP Invoice on Hold, AP Invoices and Lines, AP Accounted Invoice Aging, AP Invoice Approval Status, CE Bank Statement and Reconciliation
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 | Example |
| Blitz Report™ XML Import | AP_Period_Close_Exceptions.xml |
| SQL Source | AP Period Close Exceptions.sql |
| Full Report on Enginatics | www.enginatics.com/reports/ap-period-close-exceptions/ |
Case Study & Technical Analysis: AP Period Close Exceptions
Executive Summary
The AP Period Close Exceptions report lists the Oracle Payables items that stop an accounting period from closing cleanly. It covers invoice distributions that are not posted, invoices without distributions, payments that are not posted, future dated payments, unconfirmed payment batches and Subledger Accounting events that are not transferred or not processed. Accounting managers and Payables supervisors run it before period close to clear each exception by its owner. It follows the logic of the Oracle standard Period Close Exceptions Report (APXPCER), and runs in Excel through Blitz Report.
Business Challenge
- Clean close: A period cannot be closed while Payables holds unposted or unaccounted items, and these items are spread across invoices, payments and batches.
- Subledger to General Ledger reconciliation: Events that are not transferred to the General Ledger leave the ledger incomplete for the period.
- Future dated payments: Payments scheduled after the period end must be identified so that they fall into the right period.
- Ownership: Each exception type has a different owner, so the report must group the items by type, ledger and operating unit.
The Solution
- Builds seven exception types, each as its own block of the query, and labels every row with the exception type in the Exception Type column.
- Shows the ledger, operating unit, supplier, invoice or check number, accounting date, currency and amount for each exception, so that the owner of an item can find it.
- Shows the bank account, the payment batch name and status, and the Subledger Accounting event type where these apply to the exception.
- Reports the period name entered, so each printed or exported page is identified by its period.
Technical Architecture (High Level)
Primary Tables
AP_INVOICES_ALLandAP_INVOICE_DISTRIBUTIONS_ALL: invoice headers and their distributions, used for unposted and missing distributions.AP_INVOICE_LINES_ALL: invoice lines, compared with distributions to find invoices without distributions.AP_CHECKS_ALLandAP_PAYMENT_HISTORY_ALL: payments and their history entries, used for unposted payments and future dated payments.AP_INV_SELECTION_CRITERIA_ALLandAP_SELECTED_INVOICES_ALL: payment batches and the invoices selected for them.XLA_AE_HEADERS,XLA_EVENTS,XLA_EVENT_TYPES_TLandXLA_TRANSACTION_ENTITIES: Subledger Accounting events and their transfer status.AP_SUPPLIERS,HZ_PARTIES,HR_ALL_ORGANIZATION_UNITS,GL_LEDGERS,FND_CURRENCIES,CE_BANK_ACCOUNTSandCE_BANK_ACCT_USES_ALL: supplier, operating unit, ledger, currency and bank details.IBY_PAY_SERVICE_REQUESTS: the Oracle Payments service requests that carry the status of a payment batch.
Logical Relationships
- Each exception type is a separate UNION ALL branch, and the outer query returns
:period_namewith the branch rows. - Invoice distributions are linked to invoices on invoice id, and the posted flag and reversal flag decide whether a distribution is unaccounted.
- Payment history rows are linked to checks on check id, and transaction types such as PAYMENT CREATED and PAYMENT CLEARING select the unposted history.
- Subledger events in
XLA_EVENTSare linked toXLA_TRANSACTION_ENTITIESby entity id, and toXLA_AE_HEADERSfor the transfer status. The entity code selects invoices or payments. - Batch status is decoded from
AP_LOOKUP_CODESandFND_LOOKUPS, and from the payment service request status for the Payments system.
Parameters & Filtering
- Ledger and Operating Unit: restrict the exceptions to one ledger or operating unit.
- Exception Type: selects one of the exception types to report.
- Period Name: the accounting period that the report is run for, and which is shown on every row.
- From Accounting Date and To Accounting Date: bound the accounting dates of the exceptions.
- Supplier: limits the invoices and payments to one supplier.
Performance & Optimization
- Each exception type is a separate block with its own filters, so the database reads only the tables needed for the type selected.
- The batch status test calls
AP_PAYMENT_UTIL_PKG.GET_PSR_STATUSonly when a payment service request exists, as the DECODE checks for a null request id first. - Subledger Accounting events are filtered on the application id 200 for Payables and the transfer and process status codes, which keeps the event tables from being scanned without limit.
- Running the report for one period and one exception type at a time keeps the output short and the query fast, since each block returns only the open items.
FAQ
Q: What does an Unaccounted Invoice Distribution exception mean? A: The invoice distribution is not posted and is not a reversal. The item must be posted before the period can be closed.
Q: How do I find payments that are still future dated? A: Run the report with the Exception Type set to Future Dated Payments. These are issued checks with a future payment due date, shown with the accounting date on which they fall.
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