Search Results ota_event_swi




Overview

APPS.OTA_EVENT_SWI is a server-side PL/SQL package within the Oracle E-Business Suite Training and Events (OTA / OTA_EVENT_SWI) product family. Its name and procedure inventory identify it as a Software Interface (SWI) layer package — a programmatic bridge that exposes controlled data-manipulation operations on training and event records to callers outside the core OTA schema. In EBS 12.1.1 and 12.2.2, the package resides in the APPS schema and is registered with a status of VALID in the ETRM object directory, with API classification OTHER. The package is responsible for creating, modifying, and removing event definitions, for synchronizing enrollment-related state, and for validating session-level scheduling conflicts before an event is committed. Because it manipulates business entities directly rather than merely querying them, it functions as the transaction gateway through which event data must flow to preserve data integrity across the OTA data model.

Key Procedures and Functions

The ETRM metadata documents six callable units:

  • CREATE_EVENT — Establishes a new event record in the OTA events table, applying the package's validation logic before insertion.
  • UPDATE_EVENT — Modifies attributes of an existing event; this is the primary maintenance entry point for event changes.
  • UPD2_UPDATE_EVENT — A secondary or supplementary update routine, indicating a variant update path (for example, an alternate set of modifiable attributes or an alternate invocation context) retained alongside the primary update procedure.
  • DELETE_EVENT — Removes an event record and manages the associated cleanup, preventing orphaned event data.
  • UPDATE_ENROLLMENT — Maintains enrollment information tied to an event, ensuring delegate or learner assignments remain consistent with the parent event.
  • CHECK_SESSION_OVERLAP — A validation routine that detects whether a proposed event or session clashes with existing scheduled sessions, supporting conflict-free scheduling.

Parameter lists are not published in the available metadata and should be confirmed against the packaged specification in the EBS instance before use.

Tables Accessed

The package references the following tables through APPS synonyms:

  • OTA_EVENTS — The core event entity. All create, update, and delete operations ultimately write to this table.
  • HR_ALL_ORGANIZATION_UNITS — Provides organizational context, used to resolve or validate the business group, organization, or owning unit associated with an event.
  • DUAL — Employed for single-row evaluations, common in validation and lookup logic such as the session overlap check.

Additional application programming interfaces are leveraged indirectly: the package's dependency listing shows references to HR_API and SYS.STANDARD. HR_API involvement is consistent with the package's use of HR security and organization structures when processing OTA business objects.

Usage Notes

OTA_EVENT_SWI is typically invoked from OTA forms and from custom PL/SQL code that needs to maintain event and enrollment data without bypassing application validation. Because the package returns standard Oracle EBS API outcomes, callers are expected to check the return status and message before committing. Its dependency on HR_API means HR business group and security context should be initialized (for example, via FND_GLOBAL.APPS_INITIALIZE) before execution. CHECK_SESSION_OVERLAP should be invoked prior to CREATE_EVENT or UPDATE_EVENT when scheduling conflicts are a risk. Direct DML against OTA_EVENTS is discouraged; routing changes through this package preserves the validation, organizational defaulting, and overlap checking described in the ETRM metadata. The package is referenced by zero other packages, so it is intended for external invocation rather than as an internal building block.