Results for “object_state”

2 results




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

Overview

HZ_PARTY_RELATIONSHIP_V is a registered, valid view owned by the APPS schema within the Oracle E-Business Suite Receivables (AR) product family. It exposes party-to-party relationship data maintained in the Trading Community Architecture (TCA) model by joining the HZ_RELATIONSHIPS entity to HZ_PARTIES and to the AR_LOOKUPS lookup view. Its principal purpose is to present, in a single denormalized row, both sides of a relationship — the subject party and the object party — together with the relationship itself and the translated meaning of the relationship code.

The view is significant for reporting and integration because the underlying TCA relationship table stores only surrogate identifiers for the subject and object parties. HZ_PARTY_RELATIONSHIP_V resolves those identifiers against HZ_PARTIES so that a relationship can be reported directly against human-readable party names, numbers, and types. The presence of the SUBJECT_ID and OBJECT_ID columns alongside PARTY_ID, PARTY_NUMBER, and PARTY_NAME makes the view especially suited to ad hoc queries and inbound/outbound interface extracts where related party details must be flattened for downstream consumption. Users searching for "subject_party_name" arrive here because the view supplies the subject party context through these identification columns.

Underlying Base Objects

Per the documented metadata, HZ_PARTY_RELATIONSHIP_V is defined over three referenced base objects:

The join therefore combines relationship instance data with party master data and lookup translation, delivering a reporting-ready projection without exposing the normalized key structure that would otherwise require multiple lookups.

Key Columns

  • RELATIONSHIP_ID, RELATIONSHIP_CODE, MEANING — the relationship's primary key, its code, and the decoded lookup meaning.
  • PARTY_ID, PARTY_NUMBER, PARTY_NAME, PARTY_TYPE — identifies the party associated with the relationship row and its classification (PERSON, ORGANIZATION, GROUP).
  • SUBJECT_ID, OBJECT_ID — the from/to party identifiers that define the direction of the relationship; these are the columns that drive resolution of the subject party name.
  • START_DATE, END_DATE, STATUS, DIRECTIONAL_FLAG — effective dating and lifecycle controls, indicating whether the relationship is active and whether it is directional.
  • CONTENT_SOURCE_TYPE — identifies the origin or channel through which the relationship was created.
  • Attribute flexfields — A_ATTRIBUTE1–A_ATTRIBUTE20 and GLOBAL_ATTRIBUTE1–GLOBAL_ATTRIBUTE20, with ATTRIBUTE_CATEGORY and GLOBAL_ATTRIBUTE_CATEGORY, provide extensibility.
  • Party detail columns — address (ADDRESS1–ADDRESS4, CITY, STATE, PROVINCE, POSTAL_CODE, COUNTRY, COUNTY), validation (VALIDATED_FLAG), and commerce attributes (DUNS_NUMBER, TAX_REFERENCE, CUSTOMER_KEY).

Common Use Cases and Queries

Typical uses include generating related-party reports for customers and suppliers, extracting group hierarchy relationships, reconciling TCA relationships against source systems via ORIG_SYSTEM_REFERENCE, and powering inbound interface validation where both sides of a relationship must be verified.

Sample query retrieving active directional relationships with the subject party context:

SELECT r.relationship_id,
       r.relationship_code,
       r.meaning,
       r.subject_id,
       r.object_id,
       r.party_id,
       r.party_number,
       r.party_name,
       r.start_date,
       r.end_date,
       r.status
FROM   apps.hz_party_relationship_v r
WHERE  r.status = 'A'
ORDER  BY r.party_name;

To identify relationships where a specific party is the subject, filter on SUBJECT_ID, or join the view back to HZ_PARTIES for the subject party's name and number. Because the view already resolves the relationship code to MEANING, reports can present the relationship description directly, and joins to AR_LOOKUPS are unnecessary at the reporting layer.