Results for “as_cust_relationships_v”

4 results




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

Overview

AS_CUST_RELATIONSHIPS_V is a reporting view in the Oracle E-Business Suite Sales Foundation (AS) product family. It presents customer-to-customer relationship information maintained in the Oracle Trading Community Architecture (TCA) model, exposing both sides of each relationship — the subject party and the object party — together with the relationship type and the descriptive attributes of the relationship record itself. Its principal value is that it flattens the underlying TCA relationship structure into a single, human-readable row per relationship, resolving numeric party identifiers into party names and party numbers, and resolving relationship type codes into their translated meanings. This makes the view suitable for operational reporting, data extracts, and integration interfaces that need to publish or reconcile customer hierarchies without joining multiple TCA tables directly.

Because the view is not implemented as a physical database object in every environment (the ETRM documentation records it as "Not implemented in this database" for the source system), it should be treated as a logical reporting definition rather than a guaranteed object in any given schema. Where it is deployed, it is typically consumed by custom reports, BI Publisher data models, and inbound/outbound interfaces in Oracle EBS 12.1.1 and 12.2.2.

Underlying Base Objects

The view text is defined over four base objects:

The ETRM metadata records no referenced base objects beyond the view text itself, so the joins above are the authoritative definition of the view's lineage.

Key Columns

Common Use Cases and Queries

Typical uses include customer hierarchy and "related accounts" reporting, data migration and reconciliation extracts between EBS and external CRM or MDM systems, and supporting 360-degree customer views in custom OAF pages or BI Publisher reports. Because the view already resolves party names, downstream reports avoid repetitive TCA joins.

Retrieving the subject party name for a given customer:

  • SELECT subject_party_name, object_party_name, relationship_type, start_date, end_date FROM as_cust_relationships_v WHERE object_party_id = :party_id;

Listing all relationships where a party appears on either side:

  • SELECT subject_party_name, relationship_type, object_party_name FROM as_cust_relationships_v WHERE subject_party_id = :party_id OR object_party_id = :party_id;

Filtering to currently active relationships only:

  • SELECT subject_party_name, object_party_name, relationship_type FROM as_cust_relationships_v WHERE TRUNC(SYSDATE) BETWEEN NVL(start_date, SYSDATE) AND NVL(end_date, SYSDATE);

As with all EBS views, callers should respect operating unit and security context requirements and confirm the view's presence in the target instance, since the ETRM metadata indicates it may not be implemented in every database.