← Back to Cases
AP Payment Accounting Date and Period Moved to New Period (11i)
Case Number00094256
Oracle ModuleAccounts Payable (AP)
EBS Version11i (11.5.10.2)
Functional AreaPayment Processing / Invoice Distributions / Accounting Period
Related PatchesNone

Symptoms

Root Cause

AP invoice distributions and payment records were assigned to an incorrect period (e.g., a December period) when they should have been in the following January period. The records have not yet been posted (posted_flag = 'N') so the period and date can be corrected. The corresponding AP_ACCOUNTING_EVENTS_ALL records also have the wrong accounting date and may have the cannot_account_flag set, preventing them from being processed.

Resolution

Step 1 – Create backup tables

Run data_fix.sql. Backup tables are created for:

Step 2 – Update invoice distribution period and date

Update AP_INVOICE_DISTRIBUTIONS_ALL to set the correct period_name (derived from GL_PERIOD_STATUSES by start date) and accounting_date for invoice distributions linked to the affected checks that are still unposted and in the incorrect period.

Step 3 – Update payment period and date

Update AP_INVOICE_PAYMENTS_ALL to set the correct accounting_date and period_name for the affected unposted payment records.

Step 4 – Update accounting event date and clear cannot-account flag

Update AP_ACCOUNTING_EVENTS_ALL to set the correct accounting_date and clear cannot_account_flag (set to NULL) for the affected check accounting events that are not yet in ACCOUNTED status.

Step 5 – Commit and validate

Issue COMMIT. Re-run the AP accounting process for the affected checks and confirm the records are posted to the correct period.

Note: This fix uses the 11i AP_ACCOUNTING_EVENTS_ALL table (not the R12 XLA events model). Only unposted records (posted_flag = 'N') are updated. The period name for the target date is derived dynamically from GL_PERIOD_STATUSES by matching the correct period start date.

Script Inventory

FileDescription
data_fix.sqlCreates backups; updates period_name and accounting_date in AP_INVOICE_DISTRIBUTIONS_ALL and AP_INVOICE_PAYMENTS_ALL for unposted records in the incorrect period; clears cannot_account_flag and updates accounting_date in AP_ACCOUNTING_EVENTS_ALL for affected checks.

Key Tables Affected

TableAction
AP_INVOICE_DISTRIBUTIONS_ALLUpdate period_name and accounting_date to correct period
AP_INVOICE_PAYMENTS_ALLUpdate accounting_date and period_name to correct period
AP_ACCOUNTING_EVENTS_ALLUpdate accounting_date; clear cannot_account_flag