| Case Number | 00126977 |
| 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 not clear to zero.The AP liability balance table (AP_LIABILITY_BALANCE) and accounting entry lines (AP_AE_LINES_ALL) for the payment side of multiple affected invoices contain a different code_combination_id than the corresponding invoice liability lines. This account mismatch prevents the Trial Balance from netting the invoice and payment to zero. The fix consolidates all affected liability balance and AE line records to use the invoice's credited account as the correct CCID. This is a follow-on case to the same pattern addressed in case 00088203.
Populate RSI_AP_BAL_TMP_126977 with the affected invoice IDs, their current account balances, and CCID values before running the fix script.
Run data_fix.sql. For each affected invoice, the script determines the correct target CCID from the credited account in the driver table, then:
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. Errors are logged to rsi_ap_tb_recon_126977. Verify the affected invoices no longer appear on the AP Trial Balance.
AP_AE_LINES_ALL and AP_LIABILITY_BALANCE accounting model. The driver table RSI_AP_BAL_TMP_126977 must be created and populated before running this script. This case uses the same fix pattern as case 00088203 but for a different set of invoices.
| File | Description |
|---|---|
| data_fix.sql | PL/SQL script (11i). Corrects mismatched code_combination_id on AP_LIABILITY_BALANCE and AP_AE_LINES_ALL for multiple paid invoices remaining on the Trial Balance. Consolidates payment-side liability rows to the invoice liability CCID. Creates backup tables and error log. |
| 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 |