Search Results oks_pm_programs_pvt
Overview
OKS_PML_PVT is a private PL/SQL package in the APPS schema that supports Oracle E-Business Suite's Service Contracts (OKS) module, specifically the Preventive Maintenance (PM) feature set. Its name derives from "PM Stream Levels Private," and it encapsulates the business logic governing the stream levels assigned to preventive maintenance programs. In EBS, a PM program defines a recurring service schedule applied to a contract line; stream levels represent the successive tiers or occurrences within that schedule (for example, first visit, second visit, and so on). OKS_PML_PVT provides the low-level create, read, update, delete, and versioning operations against the underlying stream-level entities, shielded behind the standard EBS private API (PVT) pattern. It builds on the shared utilities FND_API and OKC_API, ensuring concurrency control, row locking, and consistent error handling across the application. The package is classified as PVT, indicating it is not intended for direct customer invocation but rather is called by public APIs and concurrent processes within the Service Contracts architecture.
Key Procedures and Functions
The package exposes twenty documented procedures and functions, several of which follow Oracle's standard table-handler conventions:
- QC — A quality-control or consistency-check routine used internally to validate stream-level data before or after persistence.
- CHANGE_VERSION — Alters the version context for an entity, supporting the multi-version data model used by Service Contracts.
- API_COPY — Copies stream-level records from a source entity to a target, typically when duplicating a PM program or contract.
- INSERT_ROW — Creates a new stream-level record.
- LOCK_ROW — Acquires a row-level lock to serialize concurrent updates.
- UPDATE_ROW — Modifies an existing stream-level record.
- DELETE_ROW — Removes a stream-level record.
- VALIDATE_ROW — Applies business validation rules to stream-level data prior to commit.
- CREATE_VERSION — Establishes a new version of the stream-level entity, preserving history.
- RESTORE_VERSION — Reinstates a prior version, supporting rollback or version comparison scenarios.
Each procedure is designed to be called within the broader transaction managed by the Service Contracts public APIs, and collectively they implement the persistence and lifecycle management of PM stream levels.
Tables Accessed
Through APPS synonyms, OKS_PML_PVT operates on the following documented tables:
- OKS_PM_STREAM_LEVELS — The primary entity table storing current stream-level definitions for PM programs. It is the principal target of the insert, update, and delete operations.
- OKS_PM_STREAM_LEVELS_H — The historical or versioning shadow table, populated during CREATE_VERSION and RESTORE_VERSION to maintain an auditable record of prior states.
- PLITBLM — A generic PL/SQL index-by table used as an in-memory buffer, typically for passing collections of IDs or rows between the API layers.
The package additionally depends on the OKS_PM_STREAM_LEVELS_V view and the OKC_API and FND_API shared packages, which supply validation, messaging, and error-handling services.
Usage Notes
OKS_PML_PVT is a private package and is not intended for direct invocation from forms, concurrent programs, or customer-written code. It is referenced by other packages in the OKS module, notably OKS_PM_PROGRAMS_PVT and OKS_COVERAGES_PVT, which act as the public-facing APIs that end users and integrators interact with. The typical call path begins at a Service Contracts form or a service-related concurrent program, proceeds through a public API (such as OKS_PM_PROGRAMS_PVT), and then invokes the appropriate OKS_PML_PVT procedures to persist or version stream-level data. Because the package relies on FND_API for error handling and OKC_API for contract-level context, callers must already be operating within a Service Contracts transaction. Direct custom calls to OKS_PML_PVT are discouraged because Oracle may change private interfaces without notice; integrators should always use the supported public APIs. Note that user references to "oks_pm_programs_pvt" most likely indicate OKS_PM_PROGRAMS_PVT, the public package that consumes this private one.
-
SYNONYM: APPS.OKS_PM_ACTIVITIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_ACTIVITIES, status:VALID,
-
SYNONYM: APPS.OKS_PM_ACTIVITIES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_ACTIVITIES, status:VALID,
-
SYNONYM: APPS.OKS_PM_SCHEDULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_SCHEDULES, status:VALID,
-
PACKAGE: APPS.OKS_PML_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_PML_PVT, status:VALID,
-
PACKAGE: APPS.OKS_PMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_PMS_PVT, status:VALID,
-
PACKAGE: APPS.OKS_PMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_PMS_PVT, status:VALID,
-
PACKAGE: APPS.OKS_PML_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_PML_PVT, status:VALID,
-
PACKAGE: APPS.OKS_KLN_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_KLN_PVT, status:VALID,
-
SYNONYM: APPS.OKS_PM_SCHEDULES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_SCHEDULES, status:VALID,
-
PACKAGE BODY: APPS.OKS_PM_PROGRAMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_PM_PROGRAMS_PVT, status:VALID,
-
PACKAGE: APPS.OKS_KLN_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_KLN_PVT, status:VALID,
-
PACKAGE: APPS.OKS_PM_PROGRAMS_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_PM_PROGRAMS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKS_PM_PROGRAMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_PM_PROGRAMS_PVT, status:VALID,
-
PACKAGE: APPS.OKS_PM_PROGRAMS_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_PM_PROGRAMS_PVT, status:VALID,
-
VIEW: APPS.OKX_PM_ACTIVITIES_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PM_ACTIVITIES_V, object_name:OKX_PM_ACTIVITIES_V, status:VALID,
-
SYNONYM: APPS.OKS_PM_SCHEDULES_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_SCHEDULES_H, status:VALID,
-
VIEW: APPS.OKX_PM_ACTIVITIES_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PM_ACTIVITIES_V, object_name:OKX_PM_ACTIVITIES_V, status:VALID,
-
SYNONYM: APPS.OKS_PM_ACTIVITIES_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_ACTIVITIES_H, status:VALID,
-
SYNONYM: APPS.OKS_PM_STREAM_LEVELS_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_STREAM_LEVELS_H, status:VALID,
-
SYNONYM: APPS.OKS_PM_STREAM_LEVELS_H
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_STREAM_LEVELS_H, status:VALID,
-
SYNONYM: APPS.OKS_PM_STREAM_LEVELS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_STREAM_LEVELS, status:VALID,
-
PACKAGE: APPS.OKS_PMA_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_PMA_PVT, status:VALID,
-
SYNONYM: APPS.OKS_PM_SCHEDULES_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_SCHEDULES_H, status:VALID,
-
SYNONYM: APPS.OKS_PM_ACTIVITIES_H
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_ACTIVITIES_H, status:VALID,
-
PACKAGE: APPS.OKS_PMA_PVT
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_PMA_PVT, status:VALID,
-
SYNONYM: APPS.OKS_PM_STREAM_LEVELS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKS_PM_STREAM_LEVELS, status:VALID,
-
PACKAGE BODY: APPS.OKS_IMPORT_POST_INSERT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_IMPORT_POST_INSERT, status:VALID,
-
PACKAGE: APPS.OKS_CONTRACT_LINE_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKS_CONTRACT_LINE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKS_IMPORT_POST_INSERT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_IMPORT_POST_INSERT, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_INSTANCES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_INSTANCES, status:VALID,
-
PACKAGE: APPS.OKS_CONTRACT_LINE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKS_CONTRACT_LINE_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKS_MASS_UPD_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_MASS_UPD_PVT, status:VALID,
-
VIEW: APPS.OKX_PM_PROGRAMS_V
12.1.1
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PM_PROGRAMS_V, object_name:OKX_PM_PROGRAMS_V, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_LINES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_LINES, status:VALID,
-
VIEW: APPS.OKX_PM_PROGRAMS_V
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:OKX.OKX_PM_PROGRAMS_V, object_name:OKX_PM_PROGRAMS_V, status:VALID,
-
PACKAGE: APPS.OKC_CONTRACT_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_CONTRACT_PUB, status:VALID,
-
PACKAGE: APPS.OKC_CONTRACT_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:OKC_CONTRACT_PUB, status:VALID,
-
PACKAGE BODY: APPS.OKS_QA_DATA_INTEGRITY
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_QA_DATA_INTEGRITY, status:VALID,
-
SYNONYM: APPS.OKC_CLASS_OPERATIONS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_CLASS_OPERATIONS, status:VALID,
-
SYNONYM: APPS.OKC_SUBCLASSES_B
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_SUBCLASSES_B, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_LINES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_LINES, status:VALID,
-
SYNONYM: APPS.OKC_OPERATION_INSTANCES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_OPERATION_INSTANCES, status:VALID,
-
PACKAGE BODY: APPS.OKS_ATTR_DEFAULTS_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_ATTR_DEFAULTS_PVT, status:VALID,
-
PACKAGE BODY: APPS.OKS_ATTR_DEFAULTS_PVT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_ATTR_DEFAULTS_PVT, status:VALID,
-
SYNONYM: APPS.OKC_SUBCLASSES_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:OKC_SUBCLASSES_B, status:VALID,
-
PACKAGE BODY: APPS.OKS_QA_DATA_INTEGRITY
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:OKS_QA_DATA_INTEGRITY, status:VALID,
-
SYNONYM: APPS.AHL_MR_HEADERS_B
12.1.1
owner:APPS, object_type:SYNONYM, object_name:AHL_MR_HEADERS_B, status:VALID,
-
SYNONYM: APPS.OKC_CLASS_OPERATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:OKC_CLASS_OPERATIONS, status:VALID,
-
PACKAGE: APPS.OKC_TIME_UTIL_PUB
12.1.1
owner:APPS, object_type:PACKAGE, object_name:OKC_TIME_UTIL_PUB, status:VALID,
-
12.1.1 DBA Data
12.1.1