Search Results pm_schedules




Overview

OKS_PM_PROGRAMS_PVT is the private implementation package for Preventive Maintenance (PM) program processing within Oracle E-Business Suite Service Contracts (OKS). It provides the core scheduling engine that derives, adjusts, renews, and validates maintenance visit schedules generated from a PM program definition. The package operates against the PM program line structure held in OKS_K_LINES_B and its activities and schedules in OKS_PM_ACTIVITIES and OKS_PM_SCHEDULES, producing dated visit records through the OKS_PM_SCHEDULES and OKS_PM_SCHEDULES_H tables. It is declared as an API classification of PVT (private), meaning it is not a public API: external callers are expected to reach it indirectly through its public wrapper package, OKS_PM_PROGRAMS_PUB or its equivalents. The header revision indicates the file has been maintained across releases and is present in both 12.1.1 and 12.2.2 at the APPS schema level.

Key Procedures and Functions

Tables Accessed

The package reads and writes OKS_PM_SCHEDULES and its history twin OKS_PM_SCHEDULES_H for generated visit dates, and OKS_PM_ACTIVITIES / OKS_PM_ACTIVITIES_H for the tasks that populate each schedule. OKS_K_LINES_B and OKS_K_LINES_B (via the OKS_K_LINES_B synonym) hold the PM program line header, while OKC_RULES_B, OKC_CLASS_OPERATIONS, OKC_OPERATION_INSTANCES, OKC_OPERATION_LINES, and OKC_SUBCLASSES_B provide the rule and operation metadata used to derive schedules. OKS_PM_STREAM_LEVELS and its history table supply stream-level configuration. AHL_MR_HEADERS_B participates in maintenance program header resolution, and PLITBLM is used for the PL/SQL index-by table type declared in the schedule APIs.

Usage Notes

Because OKS_PM_PROGRAMS_PVT is a private package, it is not intended for direct invocation by customers. It is called by the Service Contracts PM program concurrent programs, the Service Contracts authoring forms, and by the public OKS_PM_PROGRAMS_PUB package, which wraps it with standard OKC_API message handling. Twelve other packages reference it, indicating its role as the shared scheduling backend. In the context of a search for "pm_schedules," this package is the layer that actually inserts and updates rows in OKS_PM_SCHEDULES; sites tracing unexpected or missing PM schedule dates should confirm the program's effectivity dates and rule definitions before inspecting the schedule rows themselves, since CHECK_PM_EFFECTIVITY and CHECK_PM_SCHEDULE will reject or skip generation for programs outside their effective window. Custom extensions should call OKS_PM_PROGRAMS_PUB rather than this private body in both 12.1.1 and 12.2.2.