Search Results ar_mass_applications_v
Overview
AR_MASS_APPLICATIONS_V is a Receivables (AR) view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It exposes the candidate transaction rows that the Mass Apply workflow presents to users during automatic and manual application of receipts against open debit items. The view is a critical component of the AutoApply and Mass Apply programs, which match cash receipts, on-account credits, and unapplied payments against open invoices, debit memos, chargebacks, and credit memos. Note that the underlying query uses the /*+ FIRST_ROWS ... ORDERED */ hint set and USE_NL directives, indicating the view was designed for interactive, cursor-driven access where rows are fetched incrementally for user review rather than bulk reporting.
The object carries a VALID status and is synonymous across 12.1.1 and 12.2.2, which is significant given the HZ_CUST_ACCOUNTS_U1 index reference in the view text. The query deliberately pins the unique index HZ_CUST_ACCOUNTS_U1 on the customer account table, and this index is a documented touchpoint for the view's execution plan in both releases. The user's search for "hz_cust_accounts_u1" reflects this dependency, since plan stability for AR_MASS_APPLICATIONS_V often depends on that index remaining valid and analyzed.
Underlying Base Objects
The ETRM metadata documents the following referenced base objects, all accessed through APPS-schema synonyms:
- AR_PAYMENT_SCHEDULES — the primary driver of the view's population, aliased PS_INV; its ROWID serves as the ROW_ID column.
- HZ_CUST_ACCOUNTS and HZ_PARTIES — supply CUSTOMER_NUMBER and CUSTOMER_NAME respectively.
- HZ_CUST_SITE_USES_ALL and HZ_CUST_ACCT_RELATE_N1 — provide site and relationship context used for customer filtering.
- AR_RECEIVABLE_APPLICATIONS_ALL — aliased APP; its SUM(AMOUNT_APPLIED) is used to compute AMOUNT_DUE_REMAINING for receipt rows.
- AR_CONS_INV_ALL — the consolidated invoice source.
- RA_CUSTOMER_TRX_ALL, RA_CUST_TRX_TYPES_ALL, RA_TERMS_B, RA_BATCH_SOURCES_ALL — provide transaction, type, terms, and batch source attributes.
- Utility packages ARPT_SQL_FUNC_UTIL, ARP_DEDUCTION, ARP_VIEW_CONSTANTS, and FND_PROFILE — supply lookup translations, deduction logic, view constants, and profile option values (notably the reporting currency).
The query's ORDERED hint means the join sequence follows the FROM clause order, with PS_INV leading and the customer, site-use, batch source, and terms tables nested-looped.
Key Columns
The view exposes a wide column set reflecting its dual role for payment and transaction rows:
- CASH_RECEIPT_ID — populated only when CLASS='PMT', otherwise -1; drives which row is a receipt.
- CUSTOMER_TRX_ID and CM_CUSTOMER_TRX_ID — the invoice or credit memo identifier; note CM_CUSTOMER_TRX_ID is cast as TO_NUMBER('') (NULL) in this view, with the chargeback context handled elsewhere.
- RECEIPT_NUMBER and TRX_NUMBER — the receipt and transaction document numbers.
- AMOUNT_DUE_REMAINING — computed as SUM(APP.AMOUNT_APPLIED)*-1 for receipts and PS_INV.AMOUNT_DUE_REMAINING for invoices.
- DISCOUNT_TAKEN_EARNED / DISCOUNT_TAKEN_UNEARNED and their DISCOUNTS_EARNED / DISCOUNTS_UNEARNED aliases — pass-through discount figures from AR_PAYMENT_SCHEDULES.
- TRX_CLASS_CODE / TRX_CLASS_NAME — derived from the CLASS column via ARPT_SQL_FUNC_UTIL.GET_LOOKUP_MEANING('INV/CM', ...).
- APPLIED_FLAG — hardcoded 'N', confirming these are unapplied candidates.
- INSTALLMENT, DUE_DATE, STATUS, TERM_ID, CUST_TRX_TYPE_ID — standard payment schedule and transaction attributes.
Common Use Cases and Queries
AR_MASS_APPLICATIONS_V is queried by the Mass Apply concurrent program and by custom application extensions that reimplement the matching logic. A typical diagnostic query to list open invoice candidates for a single customer is:
SELECT ROW_ID, TRX_NUMBER, TRX_CLASS_NAME, AMOUNT_DUE_REMAINING, DUE_DATE, STATUS FROM APPS.AR_MASS_APPLICATIONS_V WHERE CUSTOMER_ID = :cust_id AND TRX_CLASS_CODE = 'INV' AND APPLIED_FLAG = 'N' ORDER BY DUE_DATE;SELECT CUSTOMER_NAME, CUSTOMER_NUMBER, RECEIPT_NUMBER, AMOUNT_DUE_REMAINING FROM APPS.AR_MASS_APPLICATIONS_V WHERE CASH_RECEIPT_ID > 0 AND AMOUNT_DUE_REMAINING <> 0;
Because the optimizer relies on FIRST_ROWS and the HZ_CUST_ACCOUNTS_U1 index, queries should always be filtered by CUSTOMER_ID (or CUSTOMER_NUMBER) so the nested-loops path is taken. Running the view without a customer predicate causes the PUSH_SUBQ and FIRST_ROWS hints to force inefficient row-by-row access on large AR datasets. This is why support notes frequently pair the view with concerns about index HZ_CUST_ACCOUNTS_U1 — if that unique index is dropped for tuning reasons, view performance for Mass Apply degrades sharply in both 12.1.1 and 12.2.2.
-
View: AR_MASS_APPLICATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_MASS_APPLICATIONS_V, object_name:AR_MASS_APPLICATIONS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_MASS_APPLICATIONS_V ,
-
View: AR_MASS_APPLICATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_MASS_APPLICATIONS_V, object_name:AR_MASS_APPLICATIONS_V, status:VALID, product: AR - Receivables , implementation_dba_data: APPS.AR_MASS_APPLICATIONS_V ,
-
SYNONYM: APPS.AR_CONS_INV_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_CONS_INV_ALL, status:VALID,
-
PACKAGE: APPS.ARP_VIEW_CONSTANTS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_VIEW_CONSTANTS, status:VALID,
-
PACKAGE: APPS.ARP_DEDUCTION
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARP_DEDUCTION, status:VALID,
-
PACKAGE: APPS.ARP_DEDUCTION
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_DEDUCTION, status:VALID,
-
PACKAGE: APPS.ARP_VIEW_CONSTANTS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARP_VIEW_CONSTANTS, status:VALID,
-
SYNONYM: APPS.AR_CONS_INV
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_CONS_INV, status:VALID,
-
SYNONYM: APPS.RA_TERMS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_B, status:VALID,
-
SYNONYM: APPS.RA_TERMS_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_TERMS_B, status:VALID,
-
SYNONYM: APPS.RA_BATCH_SOURCES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_BATCH_SOURCES_ALL, status:VALID,
-
PACKAGE: APPS.ARPT_SQL_FUNC_UTIL
12.1.1
owner:APPS, object_type:PACKAGE, object_name:ARPT_SQL_FUNC_UTIL, status:VALID,
-
PACKAGE: APPS.ARPT_SQL_FUNC_UTIL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:ARPT_SQL_FUNC_UTIL, status:VALID,
-
SYNONYM: APPS.RA_BATCH_SOURCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_BATCH_SOURCES, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
SYNONYM: APPS.AR_RECEIVABLE_APPLICATIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_RECEIVABLE_APPLICATIONS_ALL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.RA_CUST_TRX_TYPES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_CUST_TRX_TYPES_ALL, status:VALID,
-
VIEW: APPS.AR_MASS_APPLICATIONS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_MASS_APPLICATIONS_V, object_name:AR_MASS_APPLICATIONS_V, status:VALID,
-
VIEW: APPS.AR_MASS_APPLICATIONS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:AR.AR_MASS_APPLICATIONS_V, object_name:AR_MASS_APPLICATIONS_V, status:VALID,
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 FND Design Data
12.2.2
-
SYNONYM: APPS.AR_RECEIVABLE_APPLICATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_RECEIVABLE_APPLICATIONS, status:VALID,
-
SYNONYM: APPS.HZ_CUST_SITE_USES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_SITE_USES, status:VALID,
-
SYNONYM: APPS.RA_CUST_TRX_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_CUST_TRX_TYPES, status:VALID,
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX_ALL, status:VALID,
-
SYNONYM: APPS.AR_PAYMENT_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AR_PAYMENT_SCHEDULES, status:VALID,
-
SYNONYM: APPS.HZ_CUST_SITE_USES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_SITE_USES_ALL, status:VALID,
-
SYNONYM: APPS.RA_CUSTOMER_TRX
12.1.1
owner:APPS, object_type:SYNONYM, object_name:RA_CUSTOMER_TRX, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_PROFILE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.1.1
description: Territory information ,
-
eTRM - AR Tables and Views
12.2.2
description: Territory information ,