Results for “copy_tc”

8 results




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

Overview

OKC_TERMS_COPY_PVT is a private PL/SQL package body in the Oracle E-Business Suite Contracts (OKC) module that supports the copying of contract terms, articles, and templates. It belongs to the ETRM (Enterprise Contract and Transaction Management) family of objects and is classified as a PVT API, meaning it is intended for internal consumption by other packages rather than direct invocation by external callers. The package encapsulates the business logic required to duplicate structured contract terms — including articles, article versions, article variables, and template usages — from a source contract or template into a target context.

The package is typically called by public APIs within the OKC schema, most notably those that drive the "Copy" and "Apply Template" actions on contracts in Oracle Contracts and the related authoring products. It also plays a role in handling archived document copies, ensuring that adopted articles and their variable values are preserved when terms are copied across contracts.

Key Procedures and Functions

The package exposes six documented procedures and functions:

  • COPY_TC — the primary entry point that performs the copy of terms/contract content from a source into a destination. It orchestrates the duplication of articles and related structures.
  • COPY_ARCHIVED_DOC — handles the copying of an archived document, preserving its stored representation when terms are duplicated.
  • GET_VARIABLE_VALUE_ID — retrieves the identifier associated with a specific article variable value, used to map variables during the copy process.
  • GET_VARIABLE_VALUE — returns the value of a contract or article variable, supporting variable resolution and inheritance across copied terms.
  • GET_ORIG_VAR_VAL — obtains the original (source) variable value, ensuring copied articles retain their inherited values.
  • GET_ORIG_VAR_VAL_XML — the XML-oriented variant that returns the original variable value in XML form, supporting structured and template-driven term definitions.

Tables Accessed

The package reads and writes several core ETRM contracts tables. Article definition and version data are stored in OKC_ARTICLES_ALL, OKC_ARTICLE_VERSIONS, and OKC_ARTICLE_ADOPTIONS. The link between a contract and its articles is maintained in OKC_K_ARTICLES_B, OKC_K_ARTICLES_BH, and OKC_K_ARTICLES_B_S. Variable-level data is held in OKC_ARTICLE_VARIABLES, OKC_K_ART_VARIABLES, OKC_K_ART_VARIABLES_H, and OKC_K_ART_VAR_EXT_B. Template and usage control tables include OKC_ALLOWED_TMPL_USAGES, OKC_ALLOWED_TMPL_USAGES_S, OKC_BUS_DOC_TYPES_B, OKC_BUS_VARIABLES_B, and OKC_TEMPLATE_USAGES. Configuration data is sourced from CZ_CONFIG_HDRS. These tables are accessed through APPS synonyms.

Usage Notes

OKC_TERMS_COPY_PVT is not intended for direct invocation. It is referenced by three other packages, which provide the public interface for term copying. In Oracle EBS 12.1.1 and 12.2.2, it is invoked indirectly through contract authoring forms and concurrent programs whenever a user copies a contract, applies a template, or duplicates structured terms. Customizations that require term duplication should call the approved public OKC APIs rather than this private package. Because the source header references an older file version (120.4), behavior is consistent across 12.1.1 and 12.2.2, though any specific patch-level differences should be verified against the deployed OKC schema.