AR Transactions and Lines – Oracle EBS SQL Report
Oracle E-Business Suite SQL report from the Enginatics Library powered by Blitz Report™.
Overview
AR transaction report. Can be run at Header, Line and/or Distribution Level Optionally include special columns for service contracts (OKS) and lease contracts (OKL) data
Report Parameters
Ledger, Operating Unit, Display Level, Bill To Customer like, Bill To Customer Number, Consolidated Invoice Number, Transaction Number, Inv. Date Period, Inv. Date From, Inv. Date To, GL Period, GL Date From, GL Date To, Inv. Creation Date From, Inv. Creation Date To, Status, Overdue for more than x Days, Salesperson, Transaction Class, Transaction Type, Batch Source, Batch Name, Interface Category, Sales Order, Ship From Warehouse, Distribution Class, Distribution Account From, Distribution Account To, Print Date from, Print Date to, Display Contracts Details, Category Set 1, Category Set 2, Category Set 3, Show DFF Attributes
Oracle EBS Tables Used
ra_customer_trx_all, ar_cons_inv_trx_all, ar_cons_inv_all, ra_customer_trx_lines_all, gl_ledgers, hr_all_organization_units_vl, ar_payment_schedules_all, oe_sys_parameters_all, ar_xla_ctlgd_lines_v, mtl_system_items_vl, gl_code_combinations_kfv, ra_batch_sources_all, ra_batches_all, ra_cust_trx_types_all, ra_terms_vl, hz_cust_accounts, hz_parties, hz_cust_site_uses_all, hz_cust_acct_sites_all, hz_party_sites, hz_locations, fnd_territories_vl, ra_territories_kfv, jtf_rs_salesreps, jtf_rs_resource_extns_vl, oe_order_lines_all, oe_order_headers_all, ar_receipt_methods, iby_fndcpt_pmt_chnnls_vl, iby_fndcpt_tx_extensions, iby_pmt_instr_uses_all, iby_creditcard, iby_ext_bank_accounts
Report Categories
Enginatics, Nidec changes, R12 only
Related Reports
AR Transaction Register, AR Incomplete Transactions, AR Transactions and Payments, AR Aging, AR Customer Upload
Running This SQL Without Blitz Report
Some Oracle EBS SQL reports in this library require functions from the utility package xxen_util. Install it before running the SQL directly against your Oracle EBS database.
Download & Import Options
| Resource | Link |
|---|---|
| Excel Example Output | AR Transactions and Lines 20-Jan-2019 115611.xlsx |
| Blitz Report™ XML Import | AR_Transactions_and_Lines.xml |
| Full SQL on Enginatics | www.enginatics.com/reports/ar-transactions-and-lines/ |
Case Study & Technical Analysis: AR Transactions and Lines
1. Executive Summary
Business Problem
Accounts Receivable (AR) departments need detailed visibility into customer transactions to manage collections, resolve disputes, and analyze revenue. Standard reports often lack the flexibility to show data at different levels of granularity (Header, Line, Distribution) or to include industry-specific details like Service Contracts (OKS) or Lease Management (OKL). Common challenges include:
- Revenue Analysis: Difficulty in analyzing revenue by Item, Product Category, or Salesperson.
- Reconciliation: Tracing transactions from the sub-ledger to the General Ledger.
- Customer Service: Quickly retrieving invoice details (PO Number, Ship-To Address, Line Items) to answer customer queries.
- Collections: Identifying overdue invoices and their aging status.
Solution Overview
The AR Transactions and Lines report is a versatile, multi-level reporting tool that serves as the “Swiss Army Knife” for AR analysis. It allows users to run the report at the Header level (for aging and balances), Line level (for product and revenue analysis), or Distribution level (for accounting reconciliation). It enriches standard AR data with critical context from Order Management, Service Contracts, and Payments.
Key Benefits
- Multi-Level Reporting: Dynamic columns allow users to drill down from Invoice Headers to specific Line Items and GL Distributions.
- 360-Degree View: Combines Customer, Billing, Shipping, Payment, and Accounting data in a single view.
- Cross-Module Integration: Fetches related data from Order Management (Sales Orders), Service Contracts (Contract Numbers), and Payments (Credit Card/Bank details).
- Global Reach: Supports multi-org and multi-currency reporting with consolidated billing numbers.
- Performance: Optimized to handle high volumes of transaction data efficiently.
2. Technical Analysis
Core Tables and Views
The report queries the core AR transaction tables and links to several peripheral modules:
RA_CUSTOMER_TRX_ALL: The transaction header (Invoice, Credit Memo, Debit Memo).RA_CUSTOMER_TRX_LINES_ALL: Transaction lines (Items, Tax, Freight).AR_PAYMENT_SCHEDULES_ALL: Tracks the due dates, remaining balances, and payment status.RA_CUST_TRX_LINE_GL_DIST_ALL: The accounting distributions (Revenue, Receivable, Tax accounts).HZ_PARTIES/HZ_CUST_ACCOUNTS: Customer master data (TCA).OE_ORDER_HEADERS_ALL: Links to Sales Orders.OKC_K_HEADERS_ALL: Links to Service Contracts (optional).
SQL Logic and Data Flow
The SQL uses a modular approach with lexical parameters (&line_columns, &distribution_columns) to dynamically adjust the query based on the user’s selected “Display Level”.
- Dynamic Granularity:
- Header Level: Aggregates data to one row per invoice.
- Line Level: Joins to
RA_CUSTOMER_TRX_LINES_ALLto show item details. - Distribution Level: Joins to
RA_CUST_TRX_LINE_GL_DIST_ALLto show GL account splits.
- Consolidated Billing: Logic to handle “Consolidated Invoices” (
AR_CONS_INV_ALL), which group multiple AR invoices into a single customer-facing document. - Address Formatting: Uses
hz_format_pub.format_addressto generate standardized address strings for Bill-To and Ship-To locations. - Conditional Columns: Uses
CASEstatements to ensure that header-level amounts (Total Due, Tax Original) are only displayed on the first line of a multi-line invoice to prevent duplication in Excel sums.
Integration Points
- Order Management: Fetches Sales Order numbers and Warehouses.
- General Ledger: Validates Revenue and Receivable accounts.
- Service Contracts (OKS): Optional join to fetch Contract Number, Start/End Dates for subscription billing.
- Payments: Fetches Payment Methods and masked instrument numbers.
3. Functional Capabilities
Reporting Dimensions
- Customer Analysis: Analyze revenue by Bill-To, Ship-To, or Paying Customer.
- Product Analysis: Group by Inventory Item, Item Category, or Description.
- Sales Performance: Analyze revenue by Salesperson or Sales Region.
- Financials: Reconcile AR to GL by Transaction Type, Class, or Currency.
Key Parameters
- Display Level: Header, Line, or Distribution.
- Date Ranges: Transaction Date, GL Date, Creation Date.
- Status: Open, Closed, Incomplete, Pending.
- Contracts: Option to “Display Contracts Details” for OKS/OKL integration.
4. Implementation Considerations
Performance
- Granularity Impact: Running at the “Distribution” level significantly increases row count. Users should be advised to use “Header” or “Line” unless specific accounting analysis is required.
- Date Filters: Always enforce date ranges in high-volume environments.
Best Practices
- Revenue Recognition: Use the “Distribution” level to audit Revenue Recognition rules and ensure revenue is posted to the correct periods.
- Data Quality: Use the report to identify invoices with missing Salespersons or incorrect Territory assignments.
- Collections: Use the “Overdue Days” calculation to prioritize collection efforts for high-value, aged invoices.
Useful Links
- Blitz Report™ – World’s Fastest Oracle EBS Reporting Tool
- Oracle Discoverer Replacement – Import Worksheets into Blitz Report™
- Oracle EBS Reporting Toolkits by Blitz Report™
- Blitz Report™ FAQ & Community Q&A
- Supply Chain Hub by Blitz Report™
- Blitz Report™ Customer Case Studies
- Oracle EBS Reporting Blog
- Oracle EBS Reporting Resource Centre
© 2026 Enginatics