Skip to main content

Oracle EBS R12 Receivables Module – Practical SQL Queries

 

Overview:

An Oracle ERP finance module is a core component of an ERP system that manages and automates a company’s financial functions and performance.

The Oracle E-Business Suite (EBS) R12 Receivables (AR) module is  organizes and automates invoicing and payment processing. This can help you improve cash management while increasing your finance team’s productivity.

With the Accounts Receivable system, you can streamline the day-to-day functions of your entire Accounts Receivable department. You can simplify and accelerate the process of applying receipts, and have up-to-date information that improves communication among your billing and credit and collections departments.

Oracle Receivables integrates with modules such as:

·        Oracle General Ledger (GL)

·        Oracle Order Management (OM)

·        Oracle Cash Management (CE)

Below are useful SQL queries commonly used in Oracle ERP R12 Receivables (AR).

Note:

Invoice : A bill sent to the customer.

Receipt : A payment received from the customer. 

Apply Receipt:  The action of linking the customer payment to a specific invoice.

 1) Customer Transaction type

Purpose: This query retrieves Receivables transaction types such as Invoice, Debit Memo, and Credit Memo.

SELECT
    CTT.NAME           AS TRANSACTION_TYPE,
    CTT.TYPE,
    CTT.DESCRIPTION
FROM
    RA_CUST_TRX_TYPES_ALL CTT
ORDER BY
    CTT.NAME;

 

2) Receipt Method Detail

Purpose: This query retrieves receipt methods configured in Oracle ERP Receivables.

SELECT

    RECEIPT_METHOD_ID,

    NAME AS RECEIPT_METHOD_NAME,

    RECEIPT_CLASS_ID,

    START_DATE,

    END_DATE

FROM

    AR_RECEIPT_METHODS

ORDER BY   NAME;

 
3)  Customer Invoice Details

Purpose: This query retrieves customer invoice details along with customer name, invoice amount, invoice date, and transaction status.

SELECT
    RCTA.TRX_NUMBER              AS INVOICE_NUMBER,
    RCTA.TRX_DATE                AS INVOICE_DATE,
    HCA.ACCOUNT_NAME             AS CUSTOMER_NAME,
    HCA.ACCOUNT_NUMBER           AS CUSTOMER_NUMBER,
    RCTA.CUSTOMER_TRX_ID,
    RCTA.INVOICE_CURRENCY_CODE   AS CURRENCY,
    RCTA.COMPLETE_FLAG           AS STATUS,
    APS.AMOUNT_DUE_ORIGINAL      AS ORIGINAL_AMOUNT,
    APS.AMOUNT_DUE_REMAINING     AS BALANCE_AMOUNT
FROM
    RA_CUSTOMER_TRX_ALL RCTA,
    HZ_CUST_ACCOUNTS HCA,
    AR_PAYMENT_SCHEDULES_ALL APS
WHERE
    RCTA.BILL_TO_CUSTOMER_ID = HCA.CUST_ACCOUNT_ID
    AND RCTA.CUSTOMER_TRX_ID = APS.CUSTOMER_TRX_ID
ORDER BY
    RCTA.TRX_DATE DESC;

 

4) Customer Outstanding Balance Query

Purpose: This query shows unpaid customer balances and remaining outstanding amounts.

SELECT
    HCA.ACCOUNT_NUMBER,
    HCA.ACCOUNT_NAME,
    APS.TRX_NUMBER,
    APS.DUE_DATE,
    APS.AMOUNT_DUE_ORIGINAL,
    APS.AMOUNT_DUE_REMAINING
FROM
    AR_PAYMENT_SCHEDULES_ALL APS,
    HZ_CUST_ACCOUNTS HCA
WHERE
    APS.CUSTOMER_ID = HCA.CUST_ACCOUNT_ID
    AND APS.AMOUNT_DUE_REMAINING > 0
ORDER BY
    APS.DUE_DATE;

 
5) Customer Receipt Details

Purpose: This query retrieves customer receipt information including receipt number, amount,receipt status and currency code.

SELECT
    ACR.RECEIPT_NUMBER,
    ACR.RECEIPT_DATE,
    HCA.ACCOUNT_NAME      AS CUSTOMER_NAME,
    ACR.AMOUNT,
    ACR.STATUS,
    ACR.CURRENCY_CODE
FROM
    AR_CASH_RECEIPTS_ALL ACR,
    HZ_CUST_ACCOUNTS HCA
WHERE
    ACR.PAY_FROM_CUSTOMER = HCA.CUST_ACCOUNT_ID
ORDER BY
    ACR.RECEIPT_DATE DESC;

 
6) Receipt Invoice details

Purpose: This query shows which receipts are applied against customer invoices.

Note: Applied receipt means Payment allocated to an invoice.

SELECT
    ACR.RECEIPT_NUMBER,
    RCTA.TRX_NUMBER        AS INVOICE_NUMBER,
    ARA.AMOUNT_APPLIED,
    ARA.APPLY_DATE
FROM
    AR_RECEIVABLE_APPLICATIONS_ALL ARA,
    AR_CASH_RECEIPTS_ALL ACR,
    RA_CUSTOMER_TRX_ALL RCTA
WHERE
    ARA.CASH_RECEIPT_ID = ACR.CASH_RECEIPT_ID
    AND ARA.APPLIED_CUSTOMER_TRX_ID = RCTA.CUSTOMER_TRX_ID
    AND ARA.STATUS = 'APP';

 

7) AR Invoice Accounting distribution

Purpose: This query retrieves accounting distribution details for customer invoices.

SELECT
    RCTA.TRX_NUMBER,
    RCTLGD.ACCOUNT_CLASS,
    GCC.CONCATENATED_SEGMENTS AS ACCOUNT,
    RCTLGD.AMOUNT
FROM
    RA_CUSTOMER_TRX_ALL RCTA,
    RA_CUST_TRX_LINE_GL_DIST_ALL RCTLGD,
    GL_CODE_COMBINATIONS_KFV GCC
WHERE
    RCTA.CUSTOMER_TRX_ID = RCTLGD.CUSTOMER_TRX_ID
    AND RCTLGD.CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
ORDER BY
    RCTA.TRX_NUMBER;

 

Conclusion

Oracle E-Business Suite R12 Receivables (AR) provides powerful functionality to manage day-to-day Accounts Receivable operations such as invoicing, receipt processing, customer balance tracking, and accounting.
The practical SQL queries shared in this article help users efficiently monitor customer transactions, analyze outstanding balances, track receipts, and review accounting information.

Comments

Popular posts from this blog

Oracle EBS R12 General Ledger (GL) Module – Practical SQL Queries

Introduction Oracle E-Business Suite (EBS) R12 General Ledger (GL) is the core Financial module in Oracle EBS R12. It is used to manage journal entries, accounting periods, balances, and financial reporting. The GL module integrates with Payables (AP), Receivables (AR), Fixed Assets (FA), Purchasing (PO), and Inventory (INV). The main purpose of a general ledger system is to record financial activity of a company and to produce financial and management reports to help the organization make decisions. Below are real-world SQL queries commonly used.   1) View configured Ledgers      Purpose: Fetch Ledger Configuration Details SELECT       ledger_id,      name  AS   ledger_name ,    short_name ,   currency_code FROM     gl_ledgers ORDER BY     ledger_id ;   2) Ledger Information Query Purpose: Fetch Ledger Configuration Details SELECT     gl.name   ...

Exploring AI in Oracle APEX 26.1

Artificial Intelligence (AI) is transforming the way organizations and developers work. Businesses and professionals are increasingly adopting AI tools to improve productivity, automate processes, and build smarter applications. Oracle APEX introduces a significant evolution in application development by integrating governed Generative AI capabilities directly into the low-code platform. This enables developers to build intelligent, conversational applications while maintaining enterprise-grade security and control. In this article we explore AI capabilities in Oracle APEX 26.1 What is AI Agents AI Agents can be created to reason over user requests and take actions through approved AI Tools. Each tool exposes a specific application capability the agent is allowed to invoke, such as retrieving data, running server-side PL/SQL, or executing client-side JavaScript. APEX manages the execution flow by preparing context, dispatching tool calls, executing tools, handling results, and...

Oracle R12 Inventory Configuration: Key points to Avoid Mistakes

Most Oracle ERP R12 inventory problems are not system failures they are process and configuration failures. The same categories of mistakes surface repeatedly across implementations: Focusing on master data control, disciplined transactions, proper OU setup, and strong internal controls prevents operational and financial discrepancies.   This article walks through the four most critical areas where Oracle R12 inventory implementations go wrong, explains why each mistake is costly, and provides recommendations to prevent them. Each section includes the relevant navigation path and configuration screenshots for hands-on reference   1.       Improper Item Master Configuration in Oracle R12   Oracle E‑Business Suite R12 , the Item Master Configuration serves as the foundation of the Inventory module. Two critical components under this configuration umbrella are: Define Master Item Setup Define Item Status Both setups control how items ...