| Case Number | 00088203 |
| Oracle Module | Accounts Payable (AP) |
| EBS Version | 11i (11.5.10.2) |
| Functional Area | Payment Processing / AP Trial Balance / Liability Balance |
| Related Patches | None |
AP_AE_LINES_ALL and AP_LIABILITY_BALANCE reference different code_combination_id values for the liability account, causing the net balance to appear open instead of clearing to zero.The AP liability balance table (AP_LIABILITY_BALANCE) and accounting entry lines (AP_AE_LINES_ALL) for the payment side of affected invoices contain a different code_combination_id than the invoice liability lines. This mismatch prevents the Trial Balance from netting the invoice and payment to zero. The fix identifies the credited (invoice) account as the correct CCID and updates all payment-side liability balance and AE line records to use the same account.
Populate RSI_AP_BAL_TMP_88203 with the affected invoice IDs, their current account balances, and CCID values before running the fix script.
Run data_fix.sql. The script identifies invoices in the driver table that have more than one distinct account (CCID) across their liability balance records, then for each affected invoice:
AP_AE_LINES_ALL and AP_LIABILITY_BALANCE records.AP_LIABILITY_BALANCE.code_combination_id to the target CCID for all payment-side balance rows with the incorrect account.AP_AE_LINES_ALL.code_combination_id to the target CCID for the corresponding AE lines.The script commits after each invoice and prints a summary of successful and failed records. Verify the affected invoices no longer appear on the AP Trial Balance after re-running the report.
AP_AE_LINES_ALL and AP_LIABILITY_BALANCE accounting model. The driver table RSI_AP_BAL_TMP_88203 must be created and populated with the affected invoice data before running this script. An optional GL Transfer mode (l_gl_transfer = TRUE) can insert correcting GL Interface entries.
| File | Description |
|---|---|
| data_fix.sql | PL/SQL script (11i). Corrects mismatched code_combination_id on AP_LIABILITY_BALANCE and AP_AE_LINES_ALL for paid invoices remaining on the Trial Balance. Consolidates all payment-side liability rows to use the invoice liability account CCID. Creates backup tables and error log. Produces spooled output. |
| Table | Action |
|---|---|
| AP_LIABILITY_BALANCE | Update code_combination_id to invoice liability CCID |
| AP_AE_LINES_ALL | Update code_combination_id to invoice liability CCID |
| GL_INTERFACE | Optional — insert correcting adjustment entries if GL transfer required |