| Case Number | 00085420 |
| Oracle Module | Accounts Payable (AP) |
| EBS Version | 11i (11.5.10.2) |
| Functional Area | Payment Processing / Accounting Entries / GL Interface |
| Related Patches | None |
AP_AE_LINES_ALL records have code_combination_id = -1 (an invalid placeholder value).GL_INTERFACE rows for the same gl_sl_link_id, preventing the GL import from accepting the journal.During AP payment processing or batch accounting, the ERV accounting line was created with code_combination_id = -1 — a sentinel value indicating that the correct account could not be determined at the time of creation. This leaves the GL Interface record in an invalid state that blocks GL Transfer. The correct CCID must be applied directly to both the AE line and the corresponding GL Interface row.
The script first queries to display all invoice numbers affected by the invalid CCID condition — ERV lines in AP_AE_LINES_ALL with code_combination_id = -1 linked to GL_INTERFACE via gl_sl_link_id.
Run data_fix.sql. For each affected AE line, the script:
RSI_AP_AE_LINES_85420B from AP_AE_LINES_ALL.RSI_GL_INTERFACE_85420B from GL_INTERFACE.AP_AE_LINES_ALL.code_combination_id to the correct CCID for the affected AE line and header.GL_INTERFACE.code_combination_id to the correct CCID for the corresponding gl_sl_link_id.The script commits after each record and prints success/failure counts. Errors are logged to an error table. After completion, re-run the GL Transfer for the affected batch.
AP_AE_LINES_ALL and GL_INTERFACE accounting model. The backup tables (RSI_AP_AE_LINES_85420B, RSI_GL_INTERFACE_85420B) must be created before running the script. Records with errors are logged to RSI_GL_INT_RECON_85420B.
| File | Description |
|---|---|
| data_fix.sql | PL/SQL script (11i). Identifies AP_AE_LINES_ALL ERV records with code_combination_id = -1; backs up AP_AE_LINES_ALL and GL_INTERFACE rows; updates code_combination_id to the correct CCID in both tables; logs errors. Produces spooled output with record counts. |
| Table | Action |
|---|---|
| AP_AE_LINES_ALL | Update code_combination_id from -1 to correct CCID |
| GL_INTERFACE | Update code_combination_id from -1 to correct CCID (via gl_sl_link_id) |