Search Results oks_renew_util_pub




Overview

The APPS.OKS_RENEW_UTIL_PUB package body is a public utility API within the Oracle E-Business Suite Service (OKS) module, specifically supporting the Service Contracts renewal process. Its principal business function is to expose a controlled, publicly callable interface for retrieving renewal configuration data, evaluating renewal eligibility and status, and supplying defaults that drive the contract renewal workflow. As a PUB-classified API, it forms the supported entry point for external callers, delegating the substantive transactional and validation logic to the accompanying private package OKS_RENEW_UTIL_PVT.

The package is documented in ETRM 12.2.2 with a status of VALID and lives in the APPS schema. It depends upon the standard EBS infrastructure packages FND_API, FND_LOG, and FND_MSG_PUB for the API error-handling and message-stack conventions, as well as OKC_API and OKC_UTIL for core contracts functionality. These dependencies confirm that the package participates directly in the standard EBS API programming model and the Service Contracts data model.

Key Procedures and Functions

The package body exposes nine documented program units:

  • GET_RENEW_RULES — Retrieves the renewal rules applicable to a contract or contract line, providing the governing configuration for how a renewal should be processed.
  • UPDATE_RENEWAL_STATUS — Performs the status transition on a renewal, allowing the renewal lifecycle to advance to its next defined state.
  • CAN_UPDATE_CONTRACT — Evaluates whether a contract is eligible to be updated in the renewal context, acting as a validation gate before changes are attempted.
  • GET_PAYMENT_TERMS — Returns the payment terms associated with the renewal, enabling correct financial treatment of the renewed agreement.
  • GET_PERIOD_DEFAULTS — Supplies the default period values used in renewal processing, ensuring correct effective and expiration dates.
  • GET_TEMPLATE_SET — Retrieves the template set relevant to the renewal, supporting document generation and clause assembly.
  • GET_TEMPLATE_SET_ID — Returns the identifier of the applicable template set for downstream processing.
  • GET_TEMPLATE_LANG — Returns the template language, ensuring the correct linguistic version of contract documents is applied.
  • EVALUATES — Assesses the renewal conditions, determining eligibility and outcome for the candidate renewal.

No parameter signatures are documented in the available metadata; callers should obtain exact signatures from the live database or ETRM before use.

Tables Accessed

The ETRM metadata for this package body does not enumerate the base tables it references directly, since access is performed through private logic in OKS_RENEW_UTIL_PVT and APPS synonyms. Functionally, the operations above imply interaction with the Service Contracts renewal and contract header structures, including renewal rule, status, payment term, and template configuration data. Because the underlying DML is encapsulated in the private package, the public API should be treated as the supported access path rather than addressing those tables directly.

Usage Notes

OKS_RENEW_UTIL_PUB is typically invoked from Service Contracts renewal forms, concurrent programs, and custom extensions that require renewal rules, status updates, payment terms, period defaults, or template information. It is referenced by nineteen other packages, indicating broad internal reuse across the renewal feature set. All calls should follow EBS API conventions: initialize the FND_API message stack before invocation, inspect the returned status, and process messages via FND_MSG_PUB. Direct updates to underlying renewal tables bypassing this API are not recommended.