← Back to Cases
AP Invoices Stuck in Selected State After PPR Termination
Case Number00034752
Oracle ModuleAccounts Payable (AP) / Oracle Payments (IBY)
EBS VersionR12
Functional AreaPayment Processing / Payment Process Request (PPR)
Related PatchesOracle GDF ap_Rel_Inv_frm_TermPPR_fix.sql

Symptoms

Root Cause

When a Payment Process Request (PPR) terminates, fails, or completes without fully processing, the associated invoices should be released back to "Available for Payment" status. Due to a timing or processing error, the invoice selection records remain linked to the defunct PPR, preventing re-selection. This fix releases the invoices by clearing their PPR association.

Resolution

This fix uses the Oracle Generic Data Fix (GDF) framework.

Step 1 – Run identification script

Run the companion selection script (ap_Rel_Inv_frm_TermPPR_sel.sql) to identify PPRs in Terminated/Validation_Failed/Completed state whose associated invoices remain in "selected" status.

Step 2 – Execute the fix script

Run data_fix.sql via SQL*Plus. The script prompts for:

sqlplus <user>/<password>@<database> @data_fix.sql
Step 3 – Script processing

The script:

  1. Verifies the PPR concurrent program is in Completed status.
  2. Creates backup tables for affected payment schedule records.
  3. Clears the PPR assignment from invoice payment schedules, releasing them back to "Available" state.
  4. Handles the case where the PPR was terminated before the Build Payments step was executed.
  5. Commits and writes a log report of released invoices.
Step 4 – Validate

Confirm the affected invoices now show "Available" status in the AP Payment Manager and can be selected for a new payment run.

Note: This GDF handles PPRs that were terminated before or after the Build Payments step. The script checks the concurrent program status and aborts if the PPR is still in progress to prevent data corruption.

Script Inventory

FileDescription
data_fix.sqlOracle GDF script to release AP invoices from a terminated/failed/completed PPR. Clears payment selection status and restores invoices to Available for Payment. Uses AP_Acctg_Data_Fix_PKG framework with logging.

Key Tables Affected

TableAction
AP_PAYMENT_SCHEDULES_ALLClear PPR assignment; reset payment status to Available
IBY_PAY_SERVICE_REQUESTSValidate PPR status