Results for “ra_customer_relationships_morg”

6 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The RA_CUSTOMER_RELATIONSHIPS_MORG view is an Oracle Receivables (AR) reporting and integration object that exposes information about relationships defined between customer accounts. In the Oracle E-Business Suite 12.1.1 and 12.2.2 data model, the "MORG" suffix denotes a multi-organization (operating unit) secured object. The view presents relationship records scoped by ORG_ID, which allows queries to return only those customer relationships that belong to the operating unit in context, as determined by the Oracle EBS Multi-Org security model (MOAC / Multi-Org Access Control in R12).

The view is a thin projection over a single underlying base table, HZ_CUST_ACCT_RELATE_ALL, as documented in the ETRM metadata's View Text. Its primary analytical value lies in the CUSTOMER_RECIPROCAL_FLAG column — the field most commonly searched in this context. This flag indicates whether a defined relationship is reciprocal, i.e., whether the corresponding reverse relationship is maintained between the two customer accounts. It is a key control in Receivables and Trading Community Architecture (TCA) processing of related customers, particularly when the reciprocal relationship logic must be evaluated for statement generation, credit processing, or collections.

Because the view reflects the transactional and party-relationship tables rather than a pure lookup dimension, it typically carries high row-turnover and is used when querying both current relationship definitions and the audit columns (Last Update, Creation, and the WHO columns) associated with them.

Underlying Base Objects

Per the documented view text, the sole referenced base object is HZ_CUST_ACCT_RELATE_ALL. Each row in this view corresponds to one row in HZ_CUST_ACCT_RELATE_ALL; the view adds no filtering, joins, or derived columns beyond the base object's structure. The "ALL" suffix in the base table name confirms it is a multi-org table whose rows are partitioned by ORG_ID — which is precisely why the view is presented as MORG.

Although the ETRM metadata records the owner and referenced base objects as "none documented" in the 12.2.2 view-level entry, the embedded view SQL explicitly selects FROM HZ_CUST_ACCT_RELATE_ALL. This is the authoritative relationship between the view and its source table. Client implementations should treat the view as a secured access path over HZ_CUST_ACCT_RELATE_ALL and not as a materialized or replicated object.

Key Columns

The view exposes the following principal columns:

Common Use Cases and Queries

Typical uses of RA_CUSTOMER_RELATIONSHIPS_MORG include auditing reciprocal relationship setup, validating bill-to/ship-to relationship flags, and reporting the relationship network of a customer account for a given operating unit. The following sample retrieves all relationships for a specific customer within the current operating unit context:

  • List relationships and reciprocal status:
    SELECT CUSTOMER_ID, RELATED_CUSTOMER_ID, RELATIONSHIP_TYPE, CUSTOMER_RECIPROCAL_FLAG, STATUS, BILL_TO_FLAG, SHIP_TO_FLAG
    FROM RA_CUSTOMER_RELATIONSHIPS_MORG
    WHERE CUSTOMER_ID = :customer_id
    AND ORG_ID = :org_id;
  • Find non-reciprocal relationships:
    SELECT CUSTOMER_ID, RELATED_CUSTOMER_ID
    FROM RA_CUSTOMER_RELATIONSHIPS_MORG
    WHERE NVL(CUSTOMER_RECIPROCAL_FLAG, 'N') = 'N';
  • Audit recently changed relationships:
    SELECT CUSTOMER_ID, RELATED_CUSTOMER_ID, LAST_UPDATE_DATE, LAST_UPDATED_BY
    FROM RA_CUSTOMER_RELATIONSHIPS_MORG
    WHERE LAST_UPDATE_DATE >= :from_date AND ORG_ID = :org_id;

In each case the ORG_ID predicate (or a properly initialized MOAC context) is essential for correct multi-org behavior. Reporting on the CUSTOMER_RECIPROCAL_FLAG is the most frequent query pattern associated with this object.