← Back to Cases
AP Transactions Missing Accounting Events (Oracle Bug 8966238)
Case Number00088818
Oracle ModuleAccounts Payable (AP) / Subledger Accounting (XLA)
EBS VersionR12
Functional AreaInvoice Processing / Payment Processing / XLA Accounting Events
Related Oracle Bug8966238

Symptoms

Root Cause

Oracle Bug 8966238 caused AP accounting events to not be created for certain invoice distributions, prepayment distributions, and checks. When the accounting event is missing, the XLA Create Accounting program has no event to process, leaving the transaction unaccounted. The fix generates the missing events using the standard AP_ACCOUNTING_EVENTS_PKG.Create_Events API and optionally creates missing payment history records via AP_RECONCILIATION_PKG.insert_payment_history.

Resolution

Step 1 – Populate driver tables

Populate the following driver tables with the affected transactions before running the fix script:

Step 2 – Run the fix script

Run data_fix.sql via SQL*Plus. The script prompts for User Name, Responsibility Name, and optionally an email address for log delivery.

Step 3 – Back up affected data

Backup tables are created for key columns of affected rows in:

Step 4 – Fix prepayment distributions

For prepayment distributions with incorrect cancellation_flag = 'Y', the script resets the flag to 'N' in both AP_INVOICE_DISTRIBUTIONS_ALL and AP_SELF_ASSESSED_TAX_DIST_ALL, then calls AP_Acctg_Data_Fix_PKG.repop_prepay_dists to repopulate prepayment events.

Step 5 – Generate missing invoice accounting events

For each distinct invoice in the driver table, the script calls AP_ACCOUNTING_EVENTS_PKG.Create_Events:

Step 6 – Generate missing check accounting events

For each check in the driver table:

Step 7 – Commit and validate

The script commits per invoice and per check, updates driver table records to process_flag = 'D' on success, and produces an HTML log with the corrected transactions. Run Create Accounting for the affected transactions to complete the fix.

Note: This fix uses the Oracle GDF framework via AP_ACCTG_DATA_FIX_PKG. Driver tables must be created and populated before running. The script processes both invoice and check events. Transactions that fail to get an event generated remain with process_flag = 'Y' in the driver tables.

Script Inventory

FileDescription
data_fix.sqlOracle GDF fix script (Bug 8966238). Generates missing XLA accounting events for AP invoice distributions and payment checks. Fixes incorrect cancellation_flag on prepayment distributions. Creates missing payment history records. Uses AP_ACCOUNTING_EVENTS_PKG.Create_Events and AP_RECONCILIATION_PKG.insert_payment_history APIs.

Key Tables Affected

TableAction
AP_INVOICE_DISTRIBUTIONS_ALLAccounting event ID populated via Create_Events; cancellation_flag reset to 'N' for prepayments
AP_SELF_ASSESSED_TAX_DIST_ALLCancellation_flag reset to 'N' for prepayments
AP_INVOICE_PAYMENTS_ALLAccounting_event_id populated with PAYMENT CREATED event
AP_PAYMENT_HISTORY_ALLAccounting_event_id populated; missing history records inserted
AP_TEMP_INV_DRIVER_8966238Driver — process_flag updated to 'D' on success
AP_TEMP_CHK_DRIVER_8966238Driver — process_flag updated to 'D' on success