Search Results okc_terms_util_pvt
Overview
OKC_TERMS_UTIL_PVT is a private (PVT) PL/SQL utility package in the Oracle E-Business Suite Contracts (OKC) module, owned by the APPS schema and declared with AUTHID CURRENT_USER. It provides the internal service layer that supports the Terms and Conditions (T&C) infrastructure used across Oracle Contracts, Order Management, and Quoting. Rather than exposing a public API surface, this package centralizes low-level operations such as deleting terms records when a source document is removed, marking clause variables as amended, merging template working copies upon approval, and resolving the many system variables embedded in contract text. The package also contains the versioning helpers used to determine which article version is current, which is the area of interest for callers searching on get_latest_art_version_id. With 61 documented procedures and functions and 34 dependent packages, OKC_TERMS_UTIL_PVT is a foundational internal component of the ETRM (Enterprise Contracts / Terms) data model in both 12.1.1 and 12.2.2.
Key Procedures and Functions
- DELETE_DOC — Removes Terms and Conditions records associated with a document that is being deleted, identified by document type and document ID.
- DELETE_DOC_VERSION — Performs the same cleanup for a specific document version rather than the entire document.
- MARK_AMENDMENT — Flags an article as amended when one or more of its variables has changed, using the API message-handling convention.
- MERGE_TEMPLATE_WORKING_COPY — Merges an approved working copy of a template back into the parent template, storing the parent template identifier as a package global and updating the draft clause records accordingly.
- GET_SYSTEM_VARIABLES — Retrieves the values of all system variables referenced in the Terms and Conditions of a given document, dispatching to the appropriate integrating API based on document type.
- SUBSTITUTE_VAR_VALUE_GLOBALLY — Replaces variable values throughout the contract text.
- Versioning helpers — GET_LATEST_ART_VERSION, GET_LATEST_ART_VERSION_NO, and GET_ARTICLE_VERSION_NUMBER resolve the current article version identifier and its version number for a contract line.
- Amendment and alternate checks — HAS_AMENDMENTS, HAS_ALTERNATES, GET_ALTERNATE_YN, GET_SUMMARY_AMEND_CODE, and GET_ACTUAL_SUMMARY_AMEND_CODE report amendment and alternate status.
- Metadata and label helpers — CREATE_UNASSIGNED_SECTION, IS_DOC_TYPE_VALID, GET_MESSAGE, TMPL_INTENT_EDITABLE, GET_SECTION_LABEL, and GET_SECTION_NAME provide structural, validation, and display utilities.
Tables Accessed
The package reads and writes contract template structures (OKC_TEMPLATE_USAGES and related draft clause tables), Quoting tables (ASO_QUOTE_HEADERS_ALL, ASO_QUOTE_ACCESSES), and Order Management tables (OE_ORDER_HEADERS_ALL, OE_BLANKET_HEADERS_ALL, OE_TRANSACTION_TYPES_ALL) to resolve source document context. It references Oracle resource and role tables (JTF_RS_RESOURCE_EXTNS, JTF_RS_ROLES_B, JTF_RS_GROUP_MEMBERS, JTF_RS_ROLE_RELATIONS, JTF_RS_GRP_RELATIONS) for party and permission resolution, and standard FND tables (FND_USER, FND_ORACLE_USERID, FND_FLEX_VALUE_SETS, FND_FLEX_VALIDATION_TABLES) for user identity and value-set validation.
Usage Notes
Because OKC_TERMS_UTIL_PVT is classified as a private API, Oracle does not publish it as an extension point; it is invoked internally by public Contracts APIs, by the Contracts and Quoting forms, and by concurrent programs performing template merge, version resolution, or document deletion. Customers searching for get_latest_art_version_id will find related logic in the article-version helpers documented here, but this routine is called through supported public APIs rather than directly. Custom code should never call this package directly, as its signatures and behavior may change across releases and are not covered by Oracle's public API compatibility commitment.
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_UTIL_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_UTIL_PVT, status:VALID,
-
SYNONYM: APPS.OKC_TERMS_UDV_WITH_PROCEDURE_T
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_UDV_WITH_PROCEDURE_T, status:VALID,
-
SYNONYM: APPS.OKC_REVIEW_UPLD_TERMS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_REVIEW_UPLD_TERMS, status:VALID,
-
PACKAGE: APPS.OKC_PON_INT_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_PON_INT_GRP, status:VALID,
-
SYNONYM: APPS.OKC_QA_ERRORS_T
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_QA_ERRORS_T, status:VALID,
-
SYNONYM: APPS.OKC_TERMS_UDV_WITH_PROCEDURE_T
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_UDV_WITH_PROCEDURE_T, status:VALID,
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES, status:VALID,
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES_H, status:VALID,
-
PACKAGE: APPS.OKC_PON_INT_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_PON_INT_GRP, status:VALID,
-
SYNONYM: APPS.OKC_TERMS_TEMPLATES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TERMS_TEMPLATES, status:VALID,
-
SYNONYM: APPS.OKC_TMPL_DRAFT_CLAUSES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_TMPL_DRAFT_CLAUSES, status:VALID,
-
SYNONYM: APPS.OKC_REVIEW_UPLD_TERMS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_REVIEW_UPLD_TERMS, status:VALID,
-
PACKAGE: APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_XPRT_TMPL_RULE_ASSNS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_TMPL_DRAFT_CLAUSES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TMPL_DRAFT_CLAUSES, status:VALID,
-
SYNONYM: APPS.OKC_MLP_TEMPLATE_USAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_MLP_TEMPLATE_USAGES, status:VALID,
-
PACKAGE: APPS.OKC_OM_INT_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_OM_INT_GRP, status:VALID,
-
PACKAGE: APPS.OKC_XPRT_REP_INT_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_XPRT_REP_INT_PVT, status:VALID,
-
SYNONYM: APPS.OKC_TEMPLATE_USAGES_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_TEMPLATE_USAGES_H, status:VALID,
-
SYNONYM: APPS.OKC_ALLOWED_TMPL_USAGES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_ALLOWED_TMPL_USAGES, status:VALID,
-
PACKAGE: APPS.OKC_XPRT_REP_INT_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_XPRT_REP_INT_PVT, status:VALID,
-
PACKAGE: APPS.OKC_ASO_INT_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_ASO_INT_GRP, status:VALID,
-
PACKAGE: APPS.OKC_K_ARTICLES_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_K_ARTICLES_PVT, status:VALID,
-
PACKAGE: APPS.OKC_PO_INT_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_PO_INT_GRP, status:VALID,
-
PACKAGE: APPS.OKC_OM_INT_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_OM_INT_GRP, status:VALID,
-
SYNONYM: APPS.OKC_CONTRACT_DOCS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CONTRACT_DOCS, status:VALID,
-
PACKAGE BODY: APPS.OKC_REP_STATUS_UPDATE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_REP_STATUS_UPDATE_PVT, status:VALID,
-
SYNONYM: APPS.ASO_QUOTE_ACCESSES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:ASO_QUOTE_ACCESSES, status:VALID,
-
PACKAGE: APPS.OKC_ALLOWED_TMPL_USAGES_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_ALLOWED_TMPL_USAGES_GRP, status:VALID,
-
PACKAGE: APPS.OKC_XPRT_TMPL_RULE_ASSNS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_XPRT_TMPL_RULE_ASSNS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_QA_ERRORS_T
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_QA_ERRORS_T, status:VALID,
-
PACKAGE: APPS.OKC_ALLOWED_TMPL_USAGES_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_ALLOWED_TMPL_USAGES_GRP, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_SECTIONS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_SECTIONS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_SECTIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_SECTIONS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_TEMPLATE_USAGES_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TEMPLATE_USAGES_GRP, status:VALID,
-
PACKAGE: APPS.OKC_PO_INT_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_PO_INT_GRP, status:VALID,
-
PACKAGE BODY: APPS.OKC_TERMS_SECTIONS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_TERMS_SECTIONS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_ALLOWED_TMPL_USAGES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_ALLOWED_TMPL_USAGES, status:VALID,
-
PACKAGE: APPS.OKC_REVIEW_UPLD_TERMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_REVIEW_UPLD_TERMS_PVT, status:VALID,
-
PACKAGE: APPS.OKC_ASO_INT_GRP
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_ASO_INT_GRP, status:VALID,
-
PACKAGE: APPS.OKC_REVIEW_UPLD_TERMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_REVIEW_UPLD_TERMS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_CONTRACT_DOCS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CONTRACT_DOCS, status:VALID,
-
PACKAGE: APPS.OKC_TERMS_UTIL_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TERMS_UTIL_GRP, status:VALID,
-
PACKAGE: APPS.OKC_K_ARTICLES_GRP
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_K_ARTICLES_GRP, status:VALID,
-
PACKAGE: APPS.OKC_TEMPLATE_USAGES_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TEMPLATE_USAGES_PVT, status:VALID,
-
PACKAGE: APPS.OKC_K_ARTICLES_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_K_ARTICLES_PVT, status:VALID,