Results for “okc_terms_local_var_v”
25 results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKC_TERMS_LOCAL_VAR_V is an APPS-owned view in the Oracle Contracts Core (OKC) module. It exposes locally defined contract terms variables that are associated with individual articles within contract documents. The view resolves local (non-global) business variables and joins them to their language-specific definitions, article metadata, and article text. Its central purpose is to make contract variable values readable in a flattened, report-friendly form without requiring the caller to resolve the OKC_BUS_VARIABLES_B / OKC_BUS_VARIABLES_TL lookup relationship manually.
Because the view filters on VAR_DEF_B.VARIABLE_TYPE = 'U', it returns user-defined variables only, distinguishing them from system or predefined variables. It also suppresses deleted articles via the NVL(KART.AMENDMENT_OPERATION_CODE, '?') <> 'DELETED' predicate and restricts the translation row to the session language through VAR_DEF.LANGUAGE = USERENV('LANG'). The presence of the VARIABLE_VALUE and VARIABLE_VALUE_ID columns makes this view the primary reference point when searching for how a specific term value is stored and surfaced.
Underlying Base Objects
The view is defined over five synonyms and references two packaged APIs in its select list:
- OKC_K_ART_VARIABLES — the driving base table, aliased VAR, holding the actual variable instances, their values, and the owning contract article.
- OKC_BUS_VARIABLES_B — aliased VAR_DEF_B, supplying the variable datatype and used to constrain to user-defined variables.
- OKC_BUS_VARIABLES_TL — aliased VAR_DEF, supplying the translated variable name and description.
- OKC_K_ARTICLES_B — aliased KART, providing the article, section, document type, and document identity.
- OKC_ARTICLE_VERSIONS — aliased V, providing article text and additional instructions.
- OKC_TERMS_UTIL_PVT — a package invoked for GET_ARTICLE_NAME and GET_SECTION_LABEL.
- OKC_K_ENTITY_LOCKS_GRP — a package contributing locking behavior to the OKC entity model.
Key Columns
- VARIABLE_CODE / VARIABLE_NAME / DESCRIPTION — the identifier and localized labels of the term variable.
- VARIABLE_VALUE / VARIABLE_VALUE_ID — the stored value and its surrogate key; the columns most relevant to a "variable_value" lookup.
- VARIABLE_DATATYPE / VARIABLE_TYPE — datatype of the value and the user-defined classification.
- EXTERNAL_YN / OVERRIDE_GLOBAL_YN / ATTRIBUTE_VALUE_SET_ID — flags governing visibility, global overrides, and value-set binding.
- CAT_ID / ARTICLE_ID / ARTICLE_VERSION_ID / ARTICLE_NAME / SECTION_LABEL / SECTION_ID — article and section context.
- DOCUMENT_TYPE / DOCUMENT_ID — the parent contract document identifier.
- ARTICLE_TEXT / INSTRUCTION_TEXT — first 2,000 characters of article body and instructions via DBMS_LOB.SUBSTR.
- OBJECT_VERSION_NUMBER, CREATED_BY, CREATION_DATE, LAST_UPDATED_BY, LAST_UPDATE_DATE, LAST_UPDATE_LOGIN — standard audit and concurrency columns. SHOW_DETAILS_FLAG is fixed to 'N'.
Common Use Cases and Queries
Typical scenarios include retrieving all user-defined variable values for a contract, reporting article text alongside resolved variable values, and reconciling local overrides against global definitions.
SELECT variable_code, variable_name, variable_value, variable_datatype FROM apps.okc_terms_local_var_v WHERE document_id = :p_document_id;
SELECT section_label, article_name, variable_code, variable_value FROM apps.okc_terms_local_var_v WHERE variable_value_id = :p_value_id;
Because DOCUMENT_TYPE and DOCUMENT_ID are exposed, the view can be joined directly to contract header tables for cross-document reporting. Filtering by EXTERNAL_YN = 'Y' isolates externally visible terms, and ORDER BY SECTION_ID, ARTICLE_VERSION_ID preserves the document's natural reading sequence when listing variable values.
-
View: OKC_TERMS_LOCAL_VAR_V 12.2.2
APPS.OKC_TERMS_LOCAL_VAR_V·↳ OKC_ARTICLE_VERSIONS·↳ OKC_BUS_VARIABLES_B·↳ OKC_BUS_VARIABLES_TL·Explore OKC module →
-
View: OKC_TERMS_LOCAL_VAR_V 12.1.1
APPS.OKC_TERMS_LOCAL_VAR_V·↳ OKC_ARTICLE_VERSIONS·↳ OKC_BUS_VARIABLES_B·↳ OKC_BUS_VARIABLES_TL·Explore OKC module →
-
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 FND Design Data 12.1.1
-
SYNONYM: PUBLIC.DBMS_LOB 12.1.1
-
12.2.2 DBA Data 12.2.2
-
eTRM - OKC Tables and Views 12.2.2
Intersection entity between rules and templates
-
eTRM - OKC Tables and Views 12.1.1
Intersection entity between templates and rules.
-
12.1.1 DBA Data 12.1.1
-
eTRM - OKC Tables and Views 12.1.1
Intersection entity between templates and rules.
-
eTRM - OKC Tables and Views 12.2.2
Intersection entity between rules and templates