Search Results sex_code




Overview

RA_HCONTACTS is a Receivables (AR) compatibility view in Oracle E-Business Suite 12.1.1 and 12.2.2. It presents customer contact information — historically stored in the legacy RA_CONTACTS table — by projecting data from the Oracle Trading Community Architecture (TCA) model, principally the HZ_CUST_ACCOUNT_ROLES, HZ_ORG_CONTACTS, HZ_PARTIES, and HZ_CONTACT_POINTS tables. It exists to preserve backward compatibility for pre-11.5.10 forms, reports, and custom code that referenced RA_CONTACTS directly, while the underlying data is maintained by TCA.

A notable characteristic is that the view object itself is frequently not instantiated in customer databases. The ETRM documentation explicitly records "Not implemented in this database" for the implementation/DBA data, meaning the view definition may exist in the patch metadata but is only created in environments where the compatibility script has been run. The view is also read-only in practice; DML against customer contacts is performed through TCA public APIs and the Customers / Contacts forms, not through this view.

Underlying Base Objects

The view text references the following objects, using correlation aliases:

  • HZ_CUST_ACCOUNT_ROLES (alias ACCT_ROLE) — the primary driver, supplying the contact's surrogate and foreign keys, who columns, status, primary flag, and the ATTRIBUTE1 through ATTRIBUTE25 flex columns.
  • HZ_ORG_CONTACTS (alias ORG_CONT) — role-level contact attributes such as job title, mail stop, decision-maker flag, rank, contact number, and reference-use flag.
  • HZ_PARTIES (alias PARTY) — person name components (last, first, pre-name adjunct, suffix), the customer key, language, and the do-not-mail flag. A comment in the view text notes the key is taken from HZ_PARTIES because the person key is stored there (Bugs 1199439 and 1354647).
  • HZ_CONTACT_POINTS (alias REL_PARTY) — supplies the contact e-mail address.

RA_HCONTACTS is therefore a denormalized join across the TCA contact sub-model rather than a view over a single legacy table.

Key Columns

Common Use Cases and Queries

Typical scenarios include legacy report migration, reconciliation between legacy RA_CONTACTS-based extracts and TCA, and incremental synchronization of contact changes. A standard query returns active contacts for a customer, filtered by update date:

  • SELECT contact_id, customer_id, address_id, person_first_name, person_last_name, email_address, last_update_date FROM ra_hcontacts WHERE customer_id = :customer_id AND status = 'A' ORDER BY person_last_name, person_first_name;
  • SELECT contact_id, customer_id, last_update_date FROM ra_hcontacts WHERE last_update_date >= :last_run_date;

Because the view is not implemented in every database, code should verify existence in ALL_VIEWS before use. For new development, query the TCA tables directly or use the TCA APIs, since RA_HCONTACTS is a compatibility artifact with no documented base objects and no DML support.