Results for “as_party_relationships_v”

16 results




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

Overview

AS_PARTY_RELATIONSHIPS_V is a reporting view owned by the APPS schema in Oracle E-Business Suite, registered under the AS - Sales Foundation product. Its documented status is VALID in both the 12.1.1 and 12.2.2 releases. The view exposes the party-to-party relationship model maintained by Oracle Trading Community Architecture (TCA), presenting one row per relationship record whose lifecycle status is either Active ('A') or Inactive ('I'). It is the presentation-layer counterpart to the physical relationship store, offering a stable, denormalized access point for forms, concurrent programs, and downstream reporting against relationship data without requiring consumers to query HZ_RELATIONSHIPS directly.

In practice the view functions as a read façade over TCA relationships. Because its predicate filters on STATUS, callers receive only those relationships that have been logically created and are either currently active or have been inactivated, while records pending purge or otherwise flagged are excluded.

Underlying Base Objects

The view is defined over a single documented base object, HZ_RELATIONSHIPS, accessed through a synonym in the APPS schema. The defining text selects the relationship identifier and both endpoints of the relationship (SUBJECT_ID and OBJECT_ID), the party context, the relationship classification, and the full set of descriptive, date-effectivity, WHO-audit, concurrent-program, and DFF attribute columns, terminating with the CONTENT_SOURCE_TYPE column, which indicates the source system or origin from which the relationship record was created. The WHERE clause restricts rows to STATUS IN ('A','I').

All structural semantics therefore derive from HZ_RELATIONSHIPS. The view introduces no joins; it is a projection and filter, so column-level behavior, nullability, and datatypes mirror the base table.

Key Columns

Common Use Cases and Queries

Typical uses include resolving a party's active relationships, identifying relationships by type, and reporting on relationships sourced from specific content sources. The following returns active relationship types for a given party:

SELECT relationship_id, subject_id, object_id,
       relationship_code, start_date, end_date
FROM   apps.as_party_relationships_v
WHERE  status = 'A'
AND    (subject_id = :p_party_id OR object_id = :p_party_id);

Filtering by the searched column isolates records by origin, useful when reconciling imported versus locally created relationships:

SELECT relationship_id, subject_id, object_id, relationship_code,
       content_source_type
FROM   apps.as_party_relationships_v
WHERE  content_source_type = :p_content_source_type;

Because the view exposes the DFF and global DFF columns, it is also a convenient source for extracts that must carry descriptive flexfield context. Consistently apply the STATUS, effectivity, and CONTENT_SOURCE_TYPE predicates to avoid over-broad result sets.