Search Results okc_sections_pvt




Overview

The OKC_SECTIONS_PVT package body in the APPS schema is a core private API within the Oracle E-Business Suite Contracts (OKC) module, delivered as part of the Enterprise Contracts / Contract Terms Management (ETRM) functionality. Its principal business purpose is to encapsulate the creation, maintenance, locking, and validation of contract sections and their associated section content for contract templates and authored contract documents. Sections represent the structured, hierarchical building blocks of a contract document — headings and clauses that organize the legal and commercial language managed through Oracle Contracts.

Because it is classified as a PVT (private) API, OKC_SECTIONS_PVT is not exposed as the primary public integration surface. Instead, it provides the internal procedural logic consumed by higher-level public APIs such as OKC_API and the various Contract Terms (OKC_CVM_PVT, OKC_SCC_PVT, OKC_SCN_PVT) packages listed in its dependency tree. It relies on the FND_API package for standardized API error handling and message retrieval, and on FND_PROFILE for session/profile-derived context.

Key Procedures and Functions

The package exposes twenty-one documented procedures and functions organized around two entities: sections and section content. The documented operations include:

  • CREATE_SECTION — Inserts a new contract section record, establishing the section as part of a contract or template structure.
  • UPDATE_SECTION — Modifies the attributes of an existing section, such as its ordering or descriptive information.
  • DELETE_SECTION — Removes a section from the contract structure.
  • LOCK_SECTION — Acquires a logical lock on a section, preventing concurrent modification by other sessions.
  • VALIDATE_SECTION — Performs business-rule validation on a section before it is committed or used downstream.
  • CREATE_SECTION_CONTENT — Creates the content rows associated with a section, holding the actual text or clause data.
  • UPDATE_SECTION_CONTENT — Modifies existing section content records.
  • DELETE_SECTION_CONTENT — Removes content records linked to a section.
  • LOCK_SECTION_CONTENT — Applies concurrency locking to section content rows.
  • VALIDATE_SECTION_CONTENT — Validates section content against defined rules.
  • ADD_LANGUAGE — Adds a language-specific variant of a section, supporting Oracle's multilingual (MLS) contract authoring model.

Each routine follows the standard FND_API conventions, including p_init_msg_list and x_return_status/x_msg_count/x_msg_data patterns commonly used across ETRM private APIs.

Tables Accessed

The documented table referenced by this package (via APPS synonyms) is OKC_SECTIONS_B, which stores the base table rows for contract sections. The _B suffix indicates that the transactional content is held in an associated _TL (translated) table for language-specific attributes, consistent with the ADD_LANGUAGE procedure. The section content procedures operate against the corresponding content tables in the OKC schema that hold the authored clause text and related attributes.

Usage Notes

OKC_SECTIONS_PVT is normally invoked indirectly rather than directly by end users. It is called from Oracle Contracts forms (such as the contract authoring and template setup UI), from concurrent programs that generate or refresh contract documents, and from higher-level public APIs including OKC_API. Custom integrations should generally prefer the supported public API layer; calling this private package directly risks breakage across patches or upgrades, since private APIs are not guaranteed to be backward compatible. It is not referenced by any other database object in the dependency metadata, confirming its role as a leaf-level implementation package within the OKC stack.