Results for “okl_strm_gen_template_pub”

34 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

The APPS.OKL_STRM_GEN_TEMPLATE_PUB package body is the public API layer of the Oracle ETRM (Enterprise Taxation and Regime Management, delivered within the Oracle Lease and Finance Management / OKL product family) stream generation template module. Its principal business function is to expose the creation, maintenance, validation, and activation of Stream Generation Templates to external callers such as Oracle Forms, concurrent programs, and other PL/SQL packages. A Stream Generation Template defines the rule set that governs how recurring streams (billing, payment, and accounting schedules) are generated for a lease or financial contract, and this package provides the single supported entry point for manipulating the underlying template definitions in a controlled, API-compliant manner.

The package is classified as a PUB API. In ETRM conventions the public wrapper validates the API version, initialises the message stack, and then delegates all business logic to the corresponding private package OKL_STRM_GEN_TEMPLATE_PVT. The public body contains no transactional logic of its own; it performs activity start-up through OKL_API.START_ACTIVITY, inspects the returned status, and raises G_EXCEPTION_ERROR or G_EXCEPTION_UNEXPECTED_ERROR accordingly. This explains why a search for g_exception_unexpected_error resolves to this object: the exception is raised at line 40 of the body when START_ACTIVITY returns G_RET_STS_UNEXP_ERROR.

Key Procedures and Functions

Tables Accessed

The package writes to and reads from two base tables through APPS synonyms. OKL_ST_GEN_TEMPLATES stores the template header, holding the identifying and controlling attributes of each stream generation template. OKL_ST_GEN_TMPT_LNS stores the template line detail, including the primary and dependent stream line definitions and their related parameters. Header operations such as create, update, version duplication, and activation act on the first table, while line-level maintenance, parameter deletion, and primary/dependent line manipulation act on the second.

Usage Notes

As a public API, this package is invoked from ETRM setup and template maintenance forms, from concurrent programs that create or activate templates in bulk, and from custom extensions that must remain upgrade-safe. Callers should supply a valid API version, honour the initialisation flag, and check x_return_status, x_msg_count, and x_msg_data after each call. Because the public body delegates directly to OKL_STRM_GEN_TEMPLATE_PVT, no direct DML against the underlying tables should be attempted; the referenced private package, which is referenced by two other packages, holds the authoritative business rules.