Skip to the content.

AR Refund Upload – Oracle EBS SQL Report

Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.

Overview

Bulk-refund customer credit balances in AR. Each row refunds either an open credit memo or the unapplied/on-account portion of a customer cash receipt by applying it against the operating unit’s Credit Memo Refund Receivables Activity, via AR_CM_APPLICATION_PUB.Activity_application or AR_RECEIPT_API_PUB.Activity_application.

WHEN TO USE EACH REFUND SOURCE

WORKFLOW (review and select) The template downloads (Create, Update mode) pre-populated with every eligible credit memo and unapplied receipt for the parameters, showing Customer Name and Open Balance. Review the list, then:

  1. Set Refund = Yes on the rows to refund; leave blank to skip. Blank rows are not processed.
  2. Refund Amount defaults to the source open balance - override with a smaller positive amount for a partial refund (validated > 0 and <= balance, in Excel and at upload).
  3. Apply Date / Apply GL Date default to today; the GL Date must be in an open AR period.
  4. Optionally set Payment Method, Pay Group, Payment Reason Comments, Comments - these flow to the AP Payment Request invoice. To add a row manually: pick Refund Source, then the Credit Memo Number or Receipt Number (the LOV adapts to the source).

APPROVAL LIMITS The AR API runs with p_chk_approval_limit_flag=’Y’ - the user’s AR approval limit applies. Rows over the limit error with the API’s own message. Limits are never bypassed.

END-TO-END FLOW

  1. AR (this upload): a new ar_receivable_applications_all row is created (application_type=’CM’ or ‘CASH’, status=’ACTIVITY’).
  2. AR -> AP business event (automatic): AP creates a Payment Request invoice (source=’Receivables’, invoice_type_lookup_code=’PAYMENT REQUEST’) payable to the customer’s TCA party.
  3. AP Invoice Validation (standard AP concurrent).
  4. AP Payment Process Request issues the disbursement.

This upload performs step 1 only. Steps 2-4 are standard Oracle AP processing - a second human control point before any money leaves.

PER-OU SETUP Each OU that processes refunds needs a Credit Memo Refund-type Receivables Activity (AR Setup -> Receipts -> Receivable Activities). The same activity is used for both CM and receipt refunds. If none, the upload errors: “No Credit Memo Refund activity is defined for this operating unit.”

CANDIDATE IDENTIFICATION

FILTER PARAMETERS

MODE Create, Update by default so the eligible candidates pre-populate. Only rows with Refund = Yes are processed; the result XLSM lists the refunded rows.

Run this report in Excel in seconds: download Blitz Report™ free (your first 30 reports are free) or try it in the online demo.

Report Parameters

Upload Mode, Operating Unit, GL Date From, GL Date To, Credit Memo Number, Customer Name, Batch Name, Include accounts with open invoices, Open Invoice Due Within Days

Oracle EBS Tables Used

ar_payment_schedules_all, ra_customer_trx_all, hr_all_organization_units_vl, hz_cust_accounts, hz_parties, mo_glob_org_access_tmp, dual, ar_receivable_applications_all, ar_cash_receipts_all

Report Categories

Enginatics, R12 only, Upload

ONT Order to Cash Tracker, AR Unapplied Receipts Register, AR Receipt Register, AR Credit Memo Application Upload, CAC Interface Error Summary, AR Aging

Running This SQL Without Blitz Report

The SQL source can be run in any SQL client. Some Oracle EBS SQL reports in this library use functions from the utility package xxen_util – install it first. Blitz Report™ adds parameters, Excel output with pivots, scheduling and security on top.

Download & Import Options

Resource Link
Excel Example Output Example
Blitz Report™ XML Import AR_Refund_Upload.xml
SQL Source AR Refund Upload.sql
Full Report on Enginatics www.enginatics.com/reports/ar-refund-upload/

Case Study & Technical Analysis: AR Refund Upload

Executive Summary

This upload refunds customer credit balances in Oracle Receivables. Each row refunds either an open credit memo or the unapplied, on-account portion of a customer cash receipt, by applying it against the operating unit’s Credit Memo Refund Receivables Activity. Collections and cash-application teams use it to clear customer credits in bulk, with a review step before any money leaves. It runs in Excel through Blitz Report™ in Create, Update mode.

Business Challenge

The Solution

Technical Architecture (High Level)

Primary Tables

Logical Relationships

  1. The credit memo branch joins open CM installments to transactions, operating unit, customer and party.
  2. A NOT EXISTS test removes a credit memo when the same customer has an open invoice, unless Include accounts with open invoices is Yes.
  3. When that override is set, the open invoice due-date test excludes only customers with an open invoice due within the number of days entered.
  4. The receipt branch joins unapplied receipts (status UNAPP) to their customer, and keeps those with a positive amount in an UNAPP or ACC application.
  5. The two branches are combined with UNION ALL, and each row carries a refund source of Credit Memo or Unapplied Receipt.
  6. Each row is numbered with ROWNUM as its upload row.

Parameters & Filtering

Performance & Optimization

FAQ

Q: When should a refund come from a credit memo rather than an unapplied receipt? A: Use a credit memo refund when the customer holds an open credit memo from an overpayment, and an unapplied receipt refund when the customer paid more than owed or paid against the account with no specific invoice.

Q: Why might a credit memo not appear in the download? A: By default a credit memo is hidden when its customer has any open invoice, so the customer must have no open invoices unless Include accounts with open invoices is set to Yes.

Q: What happens after the refund row is uploaded with Refund set to Yes? A: The upload creates the refund application in Receivables and a Payment Request invoice in Accounts Payable, which still needs Invoice Validation and the Payment Process Request before any payment is issued.


© Enginatics GmbH