| Case Number | 00027242 |
| Oracle Module | Accounts Receivable (AR) |
| EBS Version | R12 |
| Functional Area | Cash Receipts / AR Distributions / Receipt Reversal |
| Related Patches | None |
AR_DISTRIBUTIONS_ALL that prevent the receipts from being reversed or deleted through the UI.source_type entries or wrong amounts, blocking the reversal process.REC (receivable) and UNAPP (unapplied) distribution pairs for each affected receipt.AR cash receipt distribution records in AR_DISTRIBUTIONS_ALL were created with incorrect source types, incorrect amounts, or duplicated rows. When the receipts are reversed, the AR module checks for specific distribution row patterns (source_type = 'REC' for the receivable credit, and two UNAPP rows — one DR and one CR for the unapplied cash clearing). If these rows are missing, duplicated, or have wrong amounts, the reversal fails. The fix removes the incorrect distributions and inserts the correct three-row pattern (REC, UNAPP-DR, UNAPP-CR) for each affected receipt.
Run 01_setup_log_tables.sql. Creates the RSI_27242_RCPT_LOG_MESSAGES table with a sequence and index for tracking fix progress and errors.
Run 02_log_package_spec.sql and 03_log_package_body.sql to compile the logging package used by the fix scripts.
Run 04_data_fix_transaction.txt. For the affected transaction's cash receipt:
RSI_27242_AR_DISTS_ALL, then delete them.ra_cust_trx_line_gl_dist_s.nextval for line_id:
source_type = 'REC': credit to the receivable account (amount_cr)source_type = 'UNAPP' row 1: debit to the unapplied cash account (amount_dr), with secondary source referencesource_type = 'UNAPP' row 2: credit to the receivable account (amount_cr)Run 05_data_fix_receipt_1.txt through 09_data_fix_receipt_5.txt. Each script applies the same pattern to a different cash receipt:
AR_DISTRIBUTIONS_ALL rows to a per-receipt backup table (joined via AR_CASH_RECEIPT_HISTORY_ALL, excluding source_table = 'CRH' rows).RSI_27242_RCPT_LOG_MESSAGES and companion objects) must be created before running the data fix scripts. Each receipt fix script targets a specific cash_receipt_id and associated receivable_application_id values — verify these against the database before executing. The correct CCID values for the REC and UNAPP distribution lines must be confirmed against the AR accounting rules for the affected operating unit before inserting.
| File | Description |
|---|---|
| 01_setup_log_tables.sql | Creates RSI_27242_RCPT_LOG_MESSAGES table, index, and sequence for fix progress tracking. |
| 02_log_package_spec.sql | Logging package specification. |
| 03_log_package_body.sql | Logging package body. |
| 04_data_fix_transaction.txt | Fixes AR_DISTRIBUTIONS_ALL for one cash receipt: backs up, deletes incorrect rows, inserts REC and UNAPP distribution pairs. |
| 05_data_fix_receipt_1.txt through 09_data_fix_receipt_5.txt | Per-receipt fix scripts (five receipts). Each backs up, deletes, and re-inserts correct REC and UNAPP distribution rows for one cash receipt. |
| Table | Action |
|---|---|
| AR_DISTRIBUTIONS_ALL | Delete incorrect distribution rows; insert correct REC and UNAPP source type rows for each affected receipt |
| AR_CASH_RECEIPT_HISTORY_ALL | Read only — used to identify associated distribution rows |
| AR_RECEIVABLE_APPLICATIONS_ALL | Read only — used to identify associated distribution rows |