Search Results ota_bjs_shd




Overview

OTA_BJS_SHD is a PL/SQL package body owned by the APPS schema in Oracle E-Business Suite. It belongs to the Oracle Time and Labor (OTA) module and operates within the booking justifications functional area, as indicated by its relationship to the OTA_BKNG_JUSTIFICATIONS_B table. The suffix "SHD" conventionally denotes a shadow or shadowing package used to support validation, constraint enforcement, and argument conversion for the underlying booking justification entity. In release 12.1.1 and 12.2.2 the object is documented with a status of VALID and is classified under the API classification "OTHER," indicating that it is not a full public business API but rather an internal utility and validation layer that supports the booking justifications data model.

Key Procedures and Functions

The ETRM metadata documents four procedures or functions within this package body:

  • CONSTRAINT_ERROR — Handles constraint violations surfaced when booking justification records are validated or written. It provides a controlled mechanism for translating low-level Oracle constraint failures into user-facing or loggable error conditions, drawing on FND_MESSAGE for message text.
  • API_UPDATING — Supports the update path for booking justification data. It coordinates the validation and persistence logic invoked when an existing justification record is modified through the application.
  • LCK — Implements locking behavior for booking justification records, ensuring that concurrent sessions cannot modify the same justification row simultaneously. This prevents lost updates and enforces data integrity during multi-user access.
  • CONVERT_ARGS — Performs argument conversion and normalization before values are passed to the underlying table operations. This routine harmonizes datatypes and formats so that incoming parameters conform to the expectations of OTA_BKNG_JUSTIFICATIONS_B.

Parameter lists are not documented in the available metadata and are deliberately not reproduced here.

Tables Accessed

The package references two documented objects through APPS synonyms:

  • OTA_BKNG_JUSTIFICATIONS_B — The base table storing booking justification records for Oracle Time and Labor. The package performs its core validation, locking, and update operations against this table.
  • ALL_CONSTRAINTS — The data dictionary view used to introspect constraint definitions. This access supports the CONSTRAINT_ERROR procedure in mapping constraint names to meaningful messages and in verifying constraint state before data manipulation.

The dependency list also shows references to FND_MESSAGE, HR_API, HR_UTILITY, and the STANDARD package, reflecting message retrieval, HR security integration, and standard PL/SQL runtime support.

Usage Notes

OTA_BJS_SHD is an internal shadow package rather than a directly invoked public API. It is typically called from Oracle Time and Labor forms, concurrent programs, or other OTA packages that manage booking justifications, and it is referenced by four other database objects. Because it is not referenced by any external or public database object outside this closure, customization efforts should avoid direct calls to its procedures. Instead, developers should use the supported booking justification APIs, allowing this package to enforce locking, constraint handling, and argument conversion internally. The package is valid in both 12.1.1 and 12.2.2, and its behavior should be treated as version-consistent unless patched by Oracle.