Search Results p_ctx_id




Overview

ARH_DQM_CUST_HELPER is an Oracle E-Business Suite PL/SQL package body owned by APPS and classified as OTHER. It belongs to the Oracle Receivables (AR) module and, more specifically, to the Data Quality Management (DQM) infrastructure that supports customer and party deduplication, matching, and cleansing within Oracle Customers Online / Trading Community Architecture (TCA). The package name prefix "ARH_DQM" indicates that it operates on the receivables customer model (HZ_CUST_ACCOUNTS, HZ_CUST_ACCOUNT_ROLES, HZ_CUST_ACCT_SITES) combined with the DQM matching results held in the HZ_MATCHED_* global temporary tables.

The package provides helper functions and procedures that determine whether customers, customer account roles, account sites, and party relationships already exist in a given matching context (search_context_id), and that compute or apply scoring and treatment logic for those relationships. The header revision "$Header: ARHDQMAB.pls 115.4 2002/05/31" shows that the source is a long-standing, stable component of the TCA/DQM stack that is still shipped in EBS 12.1.1 and 12.2.2.

Key Procedures and Functions

The ETRM metadata documents 16 procedures and functions. The principal members include:

Tables Accessed

The package reads and writes the standard TCA customer and matching tables through APPS synonyms. Customer data comes from HZ_CUST_ACCOUNTS, HZ_CUST_ACCOUNT_ROLES, HZ_CUST_ACCT_SITES, HZ_CUST_ACCT_SITES_ALL, HZ_PARTIES, HZ_PARTY_SITES, HZ_ORG_CONTACTS, HZ_CONTACT_POINTS and HZ_RELATIONSHIPS. Match results are staged in the global temporary tables HZ_MATCHED_PARTIES_GT, HZ_MATCHED_CONTACTS_GT, HZ_MATCHED_CPTS_GT and HZ_MATCHED_PARTY_SITES_GT. The existence-check functions query these matched tables against HZ_CUST_ACCOUNTS and HZ_CUST_ACCOUNT_ROLES, filtered by SEARCH_CONTEXT_ID, to establish whether a customer entity has already been processed.

Usage Notes

ARH_DQM_CUST_HELPER is invoked internally by the DQM matching and deduplication engine during customer matching runs rather than by end users. It is referenced by one other package in the EBS code base, which orchestrates the matching flow. Typical invocation paths include Oracle Customers Online match/merge processing and concurrent programs that populate the HZ_MATCHED_* global temporary tables and subsequently decide the treatment of matched customer records. Because the functions expose parameters such as p_ctx_id, p_cust_account_id, p_cust_account_role_id and p_status, custom code extending customer deduplication can call them to test membership of an entity within a search context; the p_status parameter in particular accepts 'ALL' or an account status value and is applied through a DECODE on NVL(car.status,'A'). Such calls should generally be confined to the matching session, since the global temporary tables hold context-specific session data.