Results for “okc_contacts_hv”

28 results




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

Overview

OKC_CONTACTS_HV is a historical (version-aware) reporting view owned by the APPS schema in Oracle E-Business Suite 12.1.1 and 12.2.2. It belongs to the OKC — Contracts Core product and exposes the historical rows held in the OKC_CONTACTS_H base table. As its name indicates, the view is the "history" counterpart to the operational OKC_CONTACTS entity, giving reporting and integration consumers a versioned perspective on the contacts associated with a contract or contract line.

Its principal role is to decouple reporting, interface, and diagnostic queries from the underlying date-effective storage model. Because contracts in OKC are versioned, a contact may exist across multiple major versions, each bounded by START_DATE and END_DATE. Rather than requiring consumers to reconstruct version logic themselves against the history table, OKC_CONTACTS_HV presents every stored version row in a predictable column layout, joined to FND_LOOKUPS so that the contact role code is resolved to a human-readable meaning.

The presence of the MAJOR_VERSION and OBJECT_VERSION_NUMBER columns makes the view especially useful for audit, reconciliation, and point-in-time analysis of contract contacts. It carries the standard EBS WHO columns (CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN), which support standard audit reporting conventions.

Underlying Base Objects

The documented metadata lists three referenced objects, all resolved through the APPS schema:

  • OKC_CONTACTS_H (SYNONYM) — the history table that supplies every row and column of the view. It is aliased CTCB in the view text and provides the ROW_ID (via ROWID), ID, versioning, attribute, primary-flag, resource-class, and sales-group data.
  • FND_LOOKUPS (VIEW) — the standard EBS lookups view, aliased FNDV and joined on LOOKUP_TYPE = 'OKC_CONTACT_ROLE' and CTCB.CRO_CODE = FNDV.LOOKUP_CODE. This join translates the stored role code (CRO_CODE) into the display column ROLE (FNDV.MEANING).
  • FND_GLOBAL (PACKAGE) — the standard EBS environment/context package; it is documented as referenced and typically supports ambient session context (for example user and responsibility) resolved during view execution.

Because the join to FND_LOOKUPS is an inner join, only history rows whose CRO_CODE matches an active lookup entry under lookup type 'OKC_CONTACT_ROLE' appear in the result set. The view therefore depends on the OKC Contact Role lookup being populated and consistent with the contract contact data.

Key Columns

  • ROW_ID, ID — physical row identifier and the contact record identifier.
  • MAJOR_VERSION, OBJECT_VERSION_NUMBER — the contract version in which this contact row was effective, and the optimistic-locking version counter.
  • CPL_ID, DNZ_CHR_ID — the contract line and the contract header (document) the contact belongs to.
  • CRO_CODE, ROLE — the stored contact role code and its lookup-resolved meaning (e.g., the party's function on the contract).
  • CONTACT_SEQUENCE — ordering of contacts within their parent.
  • OBJECT1_ID1, OBJECT1_ID2, JTOT_OBJECT1_CODE — the party/object reference and its object-type code, identifying the actual contact party.
  • RESOURCE_CLASS — classifies the contact resource. This is the column most frequently targeted when users search for "resource_class" on this object.
  • SALES_GROUP_ID — the associated sales group, where assigned.
  • PRIMARY_YN — indicates whether the contact is the primary contact for its parent.
  • START_DATE, END_DATE — effective date range of the history version.
  • ATTRIBUTE_CATEGORY, ATTRIBUTE1 … ATTRIBUTE15 — the standard EBS descriptive flexfield columns.
  • CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard WHO audit columns.

Common Use Cases and Queries

Typical uses include auditing contact assignments across contract versions, reconciling contacts with their roles, and extracting contacts for a specific contract in a given version window. A query listing all versions of a contract's contacts follows:

  • SELECT id, dnz_chr_id, major_version, contact_sequence, role, resource_class, primary_yn, start_date, end_date FROM okc_contacts_hv WHERE dnz_chr_id = :p_contract_id ORDER BY major_version, contact_sequence;

To isolate contacts of a given resource classification or role, filter on the resolved columns:

  • SELECT id, major_version, role, resource_class FROM okc_contacts_hv WHERE resource_class = :p_resource_class;
  • SELECT id, dnz_chr_id, role, sales_group_id FROM okc_contacts_hv WHERE role = 'Primary Contact' AND primary_yn = 'Y';

Because the view surfaces historical and current version rows together, consumers must apply START_DATE/END_DATE or MAJOR_VERSION filters when a single point-in-time result is required rather than the full version record.