Search Results oke_globals




Overview

OKE_GLOBALS is a PL/SQL package owned by the APPS schema within Oracle E-Business Suite, classified under the ETRM repository as an "OTHER" type API rather than a standard public business interface. Its function is to hold and expose shared global state used by the Oracle Contracts (OKE) module. In EBS releases 12.1.1 and 12.2.2, OKE_GLOBALS acts as a lightweight session-level container that centralizes values required across the contracts subsystem, allowing multiple contract-related programs to read consistent global values without repeatedly re-querying the database. Its status is VALID in the APPS schema, confirming that the package is compiled and available in the environment documented by ETRM.

Key Procedures and Functions

ETRM documents two program units within OKE_GLOBALS. Parameter signatures are not published in the metadata, so only their roles are described here:

  • SET_GLOBALS — The initialization routine for the package's global variables. It is called to populate or refresh the in-memory globals that other OKE routines depend on. Because it establishes shared state, it is normally invoked at the start of a processing cycle so that subsequent calls within the same session see consistent values.
  • K_HEADER_ID — A function that returns the contract header identifier held in the package global. It provides callers with the current header ID context, allowing contract subroutines to operate against the correct contract without carrying the identifier through every call explicitly.

No additional documented procedures or overloading are recorded in the ETRM entry for this package.

Tables Accessed

The ETRM metadata for OKE_GLOBALS lists no directly referenced tables through APPS synonyms; the package's only recorded dependency is on the SYS.STANDARD package, which is a normal PL/SQL compilation dependency. This indicates that OKE_GLOBALS is predominantly a state-holding and accessor package rather than a data-manipulation API. Any contract data it observes is typically passed in by callers or derived by the procedures that call SET_GLOBALS, rather than being read or written directly by this package.

Usage Notes

OKE_GLOBALS is referenced by one other package, OKE_KCOPY_PKG, which handles contract copy operations within Oracle Contracts. It is also self-referenced, which is consistent with internal calls such as SET_GLOBALS invoking K_HEADER_ID or similar package-internal logic during initialization.

Typical invocation patterns include contracts forms, concurrent programs, and custom extensions that need the current contract header context. Custom code should follow the standard sequence: call SET_GLOBALS to initialize the globals for the session, then call K_HEADER_ID to retrieve the active header ID when processing contract detail rows. Because the values are stored in package globals, they persist for the duration of a database session; callers must re-invoke SET_GLOBALS whenever the contract context changes, and should not assume the values survive across separate sessions. As an internal support package with no published parameter documentation, it should be treated cautiously in customizations, and integrations should prefer the documented Oracle Contracts public APIs where equivalent functionality exists.