← Back to Cases
AP Accounting Entry Lines DR/CR Amounts Incorrect
Case Number00032661
Oracle ModuleAccounts Payable (AP)
EBS Version11i
Functional AreaAP Accounting / Journal Entry Lines
Related PatchesNone

Symptoms

Root Cause

The accounting entry line records in AP_AE_LINES_ALL were created with incorrect entered_dr, accounted_dr, entered_cr, and accounted_cr values, typically due to a rounding error, a manual override, or a system calculation failure during the accounting run. The debit line and its corresponding credit line both contained wrong amounts that needed direct correction.

Resolution

Step 1 – Create backup table

Run data_fix.sql. The script first creates a backup of the affected rows:

CREATE TABLE rsi_ap_ae_lines_<case> AS
SELECT * FROM ap_ae_lines_all
 WHERE ae_line_id IN (<debit_line_id>, <credit_line_id>);
Step 2 – Validate the backup

A SELECT on the backup table confirms 2 rows were captured before any modifications.

Step 3 – Update the debit line

Set entered_dr and accounted_dr to the correct amount on the debit AE line.

Step 4 – Update the credit line

Set entered_cr and accounted_cr to the correct amount on the credit AE line.

Step 5 – Commit and verify

Issue COMMIT. Verify the GL balance and AP reports now reflect the corrected amounts.

Note: AP_AE_LINES_ALL is an Oracle 11i table. In R12 environments, the equivalent records reside in XLA (Subledger Accounting) tables. This fix is specific to Oracle EBS 11i instances.

Script Inventory

FileDescription
data_fix.sqlCreates backup of AP_AE_LINES_ALL records; updates entered_dr/accounted_dr on the debit line and entered_cr/accounted_cr on the credit line to the correct amounts.

Key Tables Affected

TableAction
AP_AE_LINES_ALLUpdate entered_dr, accounted_dr (debit line); entered_cr, accounted_cr (credit line)