| Case Number | 00057940 |
| Oracle Module | Accounts Payable (AP) / eBusiness Tax (ZX) / Subledger Accounting (XLA) |
| EBS Version | R12 |
| Functional Area | Invoice Processing / Tax Calculation / Subledger Accounting |
| Related Patches | None |
amount, total_dist_amount, and taxable_amount values.ZX_LINES, ZX_LINES_SUMMARY, ZX_REC_NREC_DIST, ZX_LINES_DET_FACTORS) contain stale non-zero tax amounts that do not match the corrected AP values.XLA_AE_LINES, XLA_DISTRIBUTION_LINKS) reflect the incorrect amounts and must also be corrected.A cancellation, adjustment, or correction process did not complete cleanly, leaving residual non-zero amounts across the AP invoice, tax, and accounting layers. The amounts need to be zeroed in all affected tables to bring AP, ZX, and XLA into alignment. This is a more comprehensive version of the invoice zeroing fix that additionally corrects ZX_LINES_SUMMARY, ZX_REC_NREC_DIST, and the XLA accounting lines.
Run data_fix.sql. Backup tables are created for:
AP_INVOICE_DISTRIBUTIONS_ALLAP_INVOICE_LINES_ALL (via ap_invoice_lines)ZX_LINESZX_LINES_SUMMARYZX_REC_NREC_DISTZX_LINES_DET_FACTORSXLA_AE_LINESXLA_DISTRIBUTION_LINKSUpdate AP_INVOICE_DISTRIBUTIONS_ALL:
amount = 0 and total_dist_amount = 0 for the tax distribution.taxable_amount = 0 for the item distributions that reference the tax.Update AP_INVOICE_LINES_ALL to set amount = 0 for the affected invoice lines.
Update ZX_LINES to set line_amt = 0, rec_tax_amt = 0, and tax_amt = 0.
ZX_LINES_SUMMARY to set TAX_AMT = 0.ZX_REC_NREC_DIST to set rec_nrec_tax_amt = 0, TRX_LINE_DIST_AMT = 0, and TRX_LINE_DIST_TAX_AMT = 0.Update ZX_LINES_DET_FACTORS to set line_amt = 0 for the affected invoice and transaction line.
Update XLA_AE_LINES to set entered and accounted debit/credit amounts to zero for the affected accounting lines across the affected AE headers.
Update XLA_DISTRIBUTION_LINKS to set unrounded_entered_cr/dr = 0 and unrounded_accounted_cr/dr = 0.
Issue COMMIT. Re-validate the invoice and confirm it passes with zero tax amounts across all layers.
| File | Description |
|---|---|
| data_fix.sql | Creates backups; zeros AP_INVOICE_DISTRIBUTIONS_ALL (amount, total_dist_amount, taxable_amount); zeros AP_INVOICE_LINES_ALL; zeros ZX_LINES, ZX_LINES_SUMMARY, ZX_REC_NREC_DIST, ZX_LINES_DET_FACTORS; zeros XLA_AE_LINES entered/accounted DR/CR; zeros XLA_DISTRIBUTION_LINKS unrounded amounts. |
| Table | Action |
|---|---|
| AP_INVOICE_DISTRIBUTIONS_ALL | Update amount, total_dist_amount, taxable_amount to 0 |
| AP_INVOICE_LINES_ALL | Update amount to 0 |
| ZX_LINES | Update line_amt, rec_tax_amt, tax_amt to 0 |
| ZX_LINES_SUMMARY | Update TAX_AMT to 0 |
| ZX_REC_NREC_DIST | Update rec_nrec_tax_amt, TRX_LINE_DIST_AMT, TRX_LINE_DIST_TAX_AMT to 0 |
| ZX_LINES_DET_FACTORS | Update line_amt to 0 |
| XLA_AE_LINES | Update entered/accounted DR/CR amounts to 0 |
| XLA_DISTRIBUTION_LINKS | Update unrounded entered/accounted amounts to 0 |