Search Results okc_k_art_variables_h
Overview
OKC_K_ART_VARIABLES_H is a history table in the OKC (Contracts Core) schema of Oracle E-Business Suite, holding the "document clause variable history" for contract terms. In contract authoring, clause text is often parameterized with variables that are resolved at runtime or at merge time (for example, a party name, a monetary amount, or a date drawn from an attribute value set). This table preserves the values those variables assumed across successive document versions, keyed by contract article (CAT_ID) and major version.
As a historical record of variable state over time, the object is best understood as a satellite-style structure. ETRM's heuristic Data Vault classification, mined from the foreign-key structure, marks it as standalone; from a modeling perspective it behaves as a history/audit satellite whose parent key is CAT_ID combined with MAJOR_VERSION, rather than as a hub or link. This distinction matters when designing extraction or warehouse models: the natural grain is (CAT_ID, VARIABLE_CODE, MAJOR_VERSION), consistent with the unique index OKC_K_ART_VARIABLES_H_U1.
Key Information Stored
The documented physical schema contains 17 columns. The most significant are:
- CAT_ID — Contract article identifier; the FK-bearing column referencing BEN_TCS_CAT. It anchors the row to a specific clause article within a document.
- MAJOR_VERSION — Version coordinate that distinguishes successive document revisions for the same article.
- VARIABLE_CODE — The identifier of the clause variable being recorded.
- VARIABLE_TYPE and EXTERNAL_YN — Classification flags describing the variable's nature and whether it is externally sourced.
- ATTRIBUTE_VALUE_SET_ID and VARIABLE_VALUE_ID — References to the value-set and to the specific resolved value record.
- VARIABLE_VALUE — The resolved value stored for the variable at that version.
- OVERRIDE_GLOBAL_YN — Indicates whether a document-level value overrides a globally defined default.
- MR_VARIABLE_HTML and MR_VARIABLE_XML — Rendered representations of the variable content (with LOB-index placeholders SYS_IL0000329404C00016$$ and SYS_IL0000329404C00017$$).
- OBJECT_VERSION_NUMBER — Optimistic locking counter used by the Contracts framework.
- CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — Standard EBS audit columns identifying who created and last changed each row.
The surrogate key is not exposed as a single documented column; the business-key candidate is the composite unique index OKC_K_ART_VARIABLES_H_U1 over (CAT_ID, VARIABLE_CODE, MAJOR_VERSION). Only the CAT_ID foreign key to BEN_TCS_CAT is documented; no primary-key constraint is listed in the supplied metadata. The presence of OBJECT_VERSION_NUMBER is a strong indicator that this table is maintained by the Contracts Core PL/SQL API layer rather than by direct DML.
Common Use Cases and Queries
Typical reporting needs include reconciling the current variable values against prior versions, and auditing which values were carried into a printed or merged document. A version comparison is expressed as:
SELECT cat_id, variable_code, major_version, variable_value FROM okc_k_art_variables_h WHERE cat_id = :p_cat_id ORDER BY variable_code, major_version;- Identifying override behavior: filter on
override_global_yn = 'Y'to isolate document-level values that replace global defaults. - Auditing by user or period, using
last_updated_byandlast_update_date, to trace when a clause variable was last changed. - Retrieving rendered content for document regeneration by selecting
mr_variable_htmlandmr_variable_xmlfor a target version.
Because the table is history-oriented, queries should always constrain on CAT_ID and, where history granularity matters, on MAJOR_VERSION to avoid cross-version duplication.
Related Objects
- BEN_TCS_CAT — joined on CAT_ID (documented FK); supplies the article/category context.
- OKC_K_ART_VARIABLES — the current (non-history) counterpart maintained alongside this history table.
- OKC_K_ARTICLES and OKC_K_ARTICLE_VERSIONS — provide the article and version metadata resolved by CAT_ID and MAJOR_VERSION.
- OKC_K_HEADERS / OKC_K_LINES — the contract document and line structures that own the articles.
- OKC_TERMS_UTIL and the Contracts Core document-generation APIs — the PL/SQL layer that populates VARIABLE_VALUE and the MR_VARIABLE columns.
-
Table: OKC_K_ART_VARIABLES_H
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ART_VARIABLES_H, object_name:OKC_K_ART_VARIABLES_H, status:VALID, product: OKC - Contracts Core , description: Document clause variable history table. This will store clause variables used in a document through contract terms , implementation_dba_data: OKC.OKC_K_ART_VARIABLES_H ,
-
Table: OKC_K_ART_VARIABLES_H
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ART_VARIABLES_H, object_name:OKC_K_ART_VARIABLES_H, status:VALID, product: OKC - Contracts Core , description: Document clause variable history table. This will store clause variables used in a document through contract terms , implementation_dba_data: OKC.OKC_K_ART_VARIABLES_H ,
-
VIEW: OKC.OKC_K_ART_VARIABLES_H#
12.2.2
-
VIEW: OKC.OKC_K_ART_VARIABLES_H#
12.2.2
owner:OKC, object_type:VIEW, object_name:OKC_K_ART_VARIABLES_H#, status:VALID,
-
SYNONYM: APPS.OKC_K_ART_VARIABLES_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ART_VARIABLES_H, status:VALID,
-
SYNONYM: APPS.OKC_K_ART_VARIABLES_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_K_ART_VARIABLES_H, status:VALID,
-
TABLE: OKC.OKC_K_ART_VARIABLES_H
12.1.1
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ART_VARIABLES_H, object_name:OKC_K_ART_VARIABLES_H, status:VALID,
-
TABLE: OKC.OKC_K_ART_VARIABLES_H
12.2.2
owner:OKC, object_type:TABLE, fnd_design_data:OKC.OKC_K_ART_VARIABLES_H, object_name:OKC_K_ART_VARIABLES_H, status:VALID,
-
PACKAGE BODY: APPS.OKC_K_ART_VARIABLES_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_K_ART_VARIABLES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_K_ART_VARIABLES_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_K_ART_VARIABLES_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_COPY_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_COPY_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_COPY_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_COPY_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_GRP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_GRP, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_GRP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_GRP, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.1.1 FND Design Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.2.2 FND Design Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_K_ART_VARIABLES_PVT SQL Statements
12.2.2
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_K_ART_VARIABLES_PVT SQL Statements
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP SQL Statements
12.2.2
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_K_ART_VARIABLES_H
12.1.1
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_K_ART_VARIABLES_H
12.2.2
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_K_ART_VARIABLES_H
12.2.2
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_K_ART_VARIABLES_H
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VARIABLES_H
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VARIABLES_H
12.2.2
-
APPS.OKC_TERMS_COPY_PVT SQL Statements
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP SQL Statements
12.1.1
-
PACKAGE BODY: APPS.OKC_K_ART_VARIABLES_PVT
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ARTICLES_BH
12.2.2
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_K_ARTICLES_BH
12.1.1
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_K_ARTICLES_BH
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VARIABLES
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_BUS_VARIABLES_B
12.2.2
-
APPS.OKC_TERMS_COPY_PVT SQL Statements
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VARIABLES
12.1.1
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_K_ARTICLES_B
12.2.2
-
PACKAGE BODY: APPS.OKC_K_ART_VARIABLES_PVT
12.1.1
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ARTICLES_B
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VAR_EXT_TLH
12.2.2
-
APPS.OKC_K_ART_VARIABLES_PVT dependencies on OKC_BUS_VARIABLES_B
12.2.2
-
APPS.OKC_TERMS_UTIL_GRP dependencies on OKC_K_ART_VAR_EXT_BH
12.2.2
-
APPS.OKC_TERMS_COPY_PVT dependencies on OKC_K_ARTICLES_BH
12.2.2