Search Results okc_operation_lines_s1
Overview
OKC_OLE_PVT is a private PL/SQL package body in the APPS schema that encapsulates the transaction-level (row handler) logic for Oracle Contracts operation line entities. The "OLE" component in the name refers to Operation Lines used within the Oracle Contracts (OKC) module, which are the line-level records attached to contract operations and operation instances. The "_PVT" suffix indicates that this is a private API package; it is intended for internal consumption by the OKC framework rather than direct invocation by external applications or customer extensions. The package is classified as VALID in the EBS 12.1.1 and 12.2.2 environments and works in close coordination with the public OKC_API package, which delegates row-level DML, locking, validation, and versioning activities to this private layer. By isolating low-level persistence logic here, Oracle preserves a stable public contract API while allowing internal implementation changes without impacting integrators. The package depends on several supporting components, including FND_API for the standard EBS API error and message framework, FND_GLOBAL and FND_PROFILE for session context and profile option values, OKC_DEBUG for diagnostic logging, OKC_UTIL for common helper routines, and APP_EXCEPTIONS for error propagation. The documented metadata shows no other database object references OKC_OLE_PVT directly, confirming its role as a leaf-level implementation package within the OKC dependency hierarchy.
Key Procedures and Functions
The documented program units within this package body provide the standard private-API surface used to manage operation line records. Although the metadata excerpt lists thirteen total program units while naming a subset, the named units cover the core row-handling and utility behavior.
- INSERT_ROW — Creates a new operation line record, populating the primary key and default attributes required for downstream processing.
- LOCK_ROW — Acquires a row-level lock on an existing operation line to serialize concurrent modification attempts.
- UPDATE_ROW — Applies modifications to an existing operation line, typically following a successful lock and validation cycle.
- DELETE_ROW — Removes an operation line record from persistent storage as part of a contract operation lifecycle event.
- VALIDATE_ROW — Performs business-rule and referential integrity checks on an operation line prior to committing DML.
- API_COPY — Duplicates operation line data, supporting scenarios such as contract copy, version copy, or template instantiation.
- CHANGE_VERSION — Manages version transitions for operation line records, ensuring that historical and current versions remain consistent with the OKC versioning model.
- QC — Serves as the quality-check routine that enforces consistency and completeness of an operation line before it is accepted by the API layer.
Each routine follows the FND_API convention of returning a standard API status and reporting errors through the global error message stack managed by FND_MSG_PUB and related components referenced indirectly via FND_API.
Tables Accessed
The package operates primarily against the OKC operation line base table and its supporting structures, all accessed through APPS synonyms.
- OKC_OPERATION_LINES — The primary table storing operation line records; the INSERT_ROW, UPDATE_ROW, DELETE_ROW, and LOCK_ROW routines act directly on this table.
- OKC_OPERATION_LINES_S1 — A sequence used to generate primary keys for new operation line records inserted by INSERT_ROW.
- OKC_OPERATION_LINES_V — A validation or verification view leveraged during the VALIDATE_ROW and QC checks.
- OKC_OPERATION_INSTANCES — Stores operation instance header data; the package consults this table to establish the parent context for operation lines.
- OKC_K_HEADERS_B and OKC_K_LINES_B — Contract header and line base tables; accessed to validate the contract context into which operation lines are being placed.
- DUAL — Used for single-row PL/SQL evaluations and constant lookups.
- PLITBLM — The standard EBS PL/SQL index-by table of VARCHAR2 used for message text handling within the FND_API framework.
Usage Notes
OKC_OLE_PVT is not intended for direct invocation by external developers. In practice, it is called from the public OKC_API package, from Oracle Forms-based Contract Management windows, and from concurrent programs that process contract operations and operation instances. The metadata confirms that the package is not referenced by any other database object but is itself responsible for invoking OKC_API, OKC_K_HEADERS_B, OKC_K_LINES_B, and OKC_OPERATION_INSTANCES, establishing it as a mid-layer component within the OKC call stack. Despite the documented note that no database object references it, ETRM metadata also records that OKC_OLE_PVT is referenced by eleven other packages, indicating that internal OKC and possibly integration packages call its procedures at runtime. Custom developers who need to manipulate operation lines should use the supported public OKC_API procedures rather than calling OKC_OLE_PVT directly, because the private API does not guarantee interface stability across patch or upgrade boundaries. When troubleshooting contract operation line defects in 12.1.1 or 12.2.2, DBAs and developers can trace execution through OKC_OLE_PVT to inspect the exact DML and validation path being exercised, and OKC_DEBUG calls within the package can be enabled through profile options to capture diagnostic output.
-
SEQUENCE: OKC.OKC_OPERATION_LINES_S1
12.2.2
owner:OKC, object_type:SEQUENCE, object_name:OKC_OPERATION_LINES_S1, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_LINES_S1
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_LINES_S1, status:VALID,
-
SEQUENCE: OKC.OKC_OPERATION_LINES_S1
12.1.1
owner:OKC, object_type:SEQUENCE, object_name:OKC_OPERATION_LINES_S1, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_LINES_S1
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_LINES_S1, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
PACKAGE BODY: APPS.OKC_OLE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_OLE_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKC_OLE_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKC_OLE_PVT, status:VALID,
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1
-
12.2.2 DBA Data
12.2.2
-
APPS.OKC_OLE_PVT dependencies on OKC_OPERATION_LINES_S1
12.2.2
-
APPS.OKC_OLE_PVT dependencies on OKC_OPERATION_LINES_S1
12.1.1
-
APPS.OKC_OLE_PVT SQL Statements
12.1.1
-
APPS.OKC_OLE_PVT SQL Statements
12.2.2
-
APPS.OKC_OLE_PVT dependencies on DUAL
12.2.2
-
APPS.OKC_OLE_PVT dependencies on DUAL
12.1.1
-
APPS.OKC_OLE_PVT dependencies on OKC_OPERATION_LINES
12.2.2
-
APPS.OKC_OLE_PVT dependencies on OKC_OPERATION_LINES
12.1.1
-
PACKAGE BODY: APPS.OKC_OLE_PVT
12.1.1
-
PACKAGE BODY: APPS.OKC_OLE_PVT
12.2.2
-
12.2.2 DBA Data
12.2.2
-
12.1.1 DBA Data
12.1.1