Results for “okc_k_headers_all_b”

50+ results




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

Overview

OKC.K_HEADERS_ALL_B is the base table that stores header-level attributes of a contract within the Oracle E-Business Suite Contracts Core (OKC) module. Each row represents a single contract, and the table serves as the anchor that groups all related lines, terms, and conditions belonging to that contract. The _ALL suffix indicates the table participates in multi-organization (Operating Unit) security via ORG_ID, while the _B suffix denotes the base table of a translated entity, with the corresponding _TL table supplying language-specific descriptive columns. In a Data Vault modeling context, the table’s FK and PK structure heuristically classifies it as a hub: it carries a stable business key (CONTRACT_NUMBER with modifier) and a surrogate primary key, with dependent descriptive attributes and many self-referencing and foreign-key links radiating outward.

Key Information Stored

The surrogate primary key documented in ETRM is ID (unique index OKC_K_HEADERS_ALL_B_U1), which is the internal CHR identifier referenced throughout the schema as CHR_ID. Business-key candidates are captured by OKC_K_HEADERS_ALL_B_U2 on the combination of CONTRACT_NUMBER and CONTRACT_NUMBER_MODIFIER, uniquely identifying a contract as users see it.

Common Use Cases and Queries

Contract reporting typically starts from this header table. To list active contracts for an operating unit:

  • SELECT ID, CONTRACT_NUMBER, STS_CODE, START_DATE, END_DATE FROM OKC_K_HEADERS_ALL_B WHERE ORG_ID = :p_org AND STS_CODE = 'ACTIVE';
  • Joining to status and subclass lookups: ... JOIN OKC_STATUSES_B S ON S.CODE = H.STS_CODE JOIN OKC_SUBCLASSES_B SC ON SC.CODE = H.SCS_CODE.
  • Resolving renewals via the self-referencing link: SELECT h1.CONTRACT_NUMBER, h2.CONTRACT_NUMBER renewed_to FROM OKC_K_HEADERS_ALL_B h1 JOIN OKC_K_HEADERS_ALL_B h2 ON h2.ID = h1.CHR_ID_RENEWED_TO.
  • Template identification: WHERE TEMPLATE_YN = 'Y' to drive contract authoring.

Typical reports include contract repository extracts, expiration/renewal calendars, and integration feeds keyed on CONTRACT_NUMBER. Because it is the hub, ad-hoc queries should always link child lines and terms through ID.

Related Objects