Results for “okc_rgp_pvt”
50+ results
AI-generated from documented ETRM metadata — verify critical details on the linked pages.
Overview
OKC_RGP_PVT is a private (PVT) PL/SQL package in the Oracle Contracts (OKC) module of Oracle E-Business Suite, delivered under the APPS schema. Its name derives from the "Rule Group" entity, which underpins the rules engine used throughout Oracle Contracts, Oracle Sales, and Oracle Order Management to evaluate entitlement, pricing, and applicability logic. Rule groups (OKC_RULE_GROUPS_B and OKC_RULE_GROUPS_TL) define the conditions under which contract terms, clauses, and deliverables are applied to a contract header or line.
The package supplies the low-level data access and validation layer for that entity. It is classified as a private package, meaning it is not intended as a public integration API; it is called internally by the OKC_RGP public API and related OKC packages. The header comments ($Header: OKCSRGPS.pls 120.0, dated 25 May 2005) confirm it predates the EBS 12.x releases and is inherited largely unchanged from 11i, which is typical of the OKC rules infrastructure. The same source operates in both 12.1.1 and 12.2.2.
Key Procedures and Functions
The package exposes the standard Oracle Application Object Library (AOOL) private-package pattern, augmented with versioning and copy utilities. The documented procedures and functions include:
- QC — A quality-control/consistency check helper, commonly used internally to assert row-level state before DML.
- INSERT_ROW — Inserts a new rule group row into the base table, defaulting unset attributes from the record type to the OKC_API.G_MISS_* sentinel values.
- UPDATE_ROW — Updates an existing rule group row, generally accompanied by an object_version_number check.
- LOCK_ROW — Acquires a row-level lock (SELECT FOR UPDATE semantics) to serialize concurrent modification.
- DELETE_ROW — Removes a rule group row.
- VALIDATE_ROW — Applies business validation rules to the record prior to commit, including uniqueness and foreign-key consistency checks against OKC_K_HEADERS_B, OKC_K_LINES_B, and OKC_SUBCLASSES_B.
- CHANGE_VERSION and CREATE_VERSION — Manage the rule group versioning model, producing a new version record when a contract is amended or renegotiated.
- RESTORE_VERSION — Restores a prior version of the rule group, supporting rollback of contract rule configuration.
- API_COPY — Copies an existing rule group definition, typically when duplicating a contract or template.
- ADD_LANGUAGE — Populates the translated (TL) table for a rule group in an additional language.
- INSERT_ROW_UPG — A migration/upgrade variant of INSERT_ROW, used during release upgrades to load rule group data older than the current schema.
The rgp_rec_type record defined at the top of the specification acts as the canonical parameter structure for these routines, bound directly to OKC_RULE_GROUPS_B columns.
Tables Accessed
The package reads and writes the rule group base and translation tables (OKC_RULE_GROUPS_B, OKC_RULE_GROUPS_TL) and their history/audit counterparts (OKC_RULE_GROUPS_BH, OKC_RULE_GROUPS_TLH), which store version history for the CREATE_VERSION, CHANGE_VERSION, and RESTORE_VERSION operations. It validates against the contract header and line tables (OKC_K_HEADERS_B, OKC_K_LINES_B), the subclass definition tables (OKC_SUBCLASSES_B, OKC_SUBCLASS_RG_DEFS), and the role definition table OKC_RG_ROLE_DEFS. Reference data is sourced from FND_LANGUAGES and FND_LOOKUP_VALUES, and PLITBLM is used for the standard AOL date/character conversion utilities embedded in all PVT packages.
Usage Notes
OKC_RGP_PVT is not called directly by end users. It is invoked by the OKC_RGP public package, by the Contract Authoring and Terms forms, and by concurrent programs that import or migrate contract templates. The metadata records that the package is referenced by 17 other packages, confirming its role as a shared internal service. Customizations should avoid direct calls to OKC_RGP_PVT; use the public OKC_RGP API instead. Note the search term "genpact onbp" does not correspond to any documented object in this package and is unrelated to its function.