← Back to Cases
AP AE Lines and GL Interface Code Combination ID Incorrect (11i)
Case Number00085420
Oracle ModuleAccounts Payable (AP)
EBS Version11i (11.5.10.2)
Functional AreaPayment Processing / Accounting Entries / GL Interface
Related PatchesNone

Symptoms

Root Cause

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.

Resolution

Step 1 – Identify affected records

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.

Step 2 – Create backup tables and run the fix

Run data_fix.sql. For each affected AE line, the script:

  1. Inserts a backup row into RSI_AP_AE_LINES_85420B from AP_AE_LINES_ALL.
  2. Inserts a backup row into RSI_GL_INTERFACE_85420B from GL_INTERFACE.
  3. Updates AP_AE_LINES_ALL.code_combination_id to the correct CCID for the affected AE line and header.
  4. Updates GL_INTERFACE.code_combination_id to the correct CCID for the corresponding gl_sl_link_id.
Step 3 – Commit and validate

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.

Note: This fix applies to the 11i 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.

Script Inventory

FileDescription
data_fix.sqlPL/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.

Key Tables Affected

TableAction
AP_AE_LINES_ALLUpdate code_combination_id from -1 to correct CCID
GL_INTERFACEUpdate code_combination_id from -1 to correct CCID (via gl_sl_link_id)