| Case Number | 00032977 |
| Oracle Module | Accounts Payable (AP) |
| EBS Version | R12 (post-upgrade from 11i) |
| Functional Area | AP Trial Balance / Upgrade Data |
| Related Patches | Oracle Bug 13872039 (ap_ignore_tb_fix.sql) |
Oracle Bug 13872039: During the upgrade from 11i to R12, certain fully paid AP invoices that originated in 11i were not flagged with the IGNORE_RATE_DIFFS_FLAG or the equivalent "ignore in Trial Balance" attribute in the upgraded R12 data. As a result, the R12 AP Trial Balance report picks up these legacy records and includes them as open items even though they were fully reconciled in 11i.
This fix uses the Oracle Generic Data Fix (GDF) framework via the AP_Acctg_Data_Fix_PKG package and driver table AP_IGNORE_TB_13872039.
Ensure the driver table AP_IGNORE_TB_13872039 has been created and populated with the affected invoice/distribution records using the companion selection script.
Run data_fix.sql via SQL*Plus:
sqlplus <user_name>/<password>@<database> @data_fix.sql
The script performs the following:
AP_LIABILITY_BALANCE and AP_AE_LINES_ALL (and/or XLA tables in R12).AP_INVOICE_DISTRIBUTIONS_ALL and related tables with the flag that marks them as "ignore in Trial Balance".PROCESS_FLAG = 'P' for successfully processed records.Re-run the AP Trial Balance report and confirm the legacy 11i invoices no longer appear.
| File | Description |
|---|---|
| data_fix.sql | Oracle GDF fix for Bug 13872039. Sets the "ignore in Trial Balance" flag on AP invoice distributions that were fully processed in 11i but incorrectly appear on the R12 AP Trial Balance. Uses AP_Acctg_Data_Fix_PKG with logging. |
| Bug / Patch | Description |
|---|---|
| Bug 13872039 | R12 AP Trial Balance report includes invoices created and paid in 11i that should not appear after upgrade |
| Table | Action |
|---|---|
| AP_IGNORE_TB_13872039 | Driver table — populated by selection script; process_flag updated to 'P' |
| AP_INVOICE_DISTRIBUTIONS_ALL | Update to set ignore-in-Trial-Balance flag |
| AP_AE_LINES_ALL / XLA tables | Backup and update as applicable |