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
- CREATE_STRM_GEN_TEMPLATE — Establishes a new stream generation template header and its associated template line records.
- UPDATE_STRM_GEN_TEMPLATE — Modifies the attributes of an existing template header and its dependent lines.
- CREATE_VERSION_DUPLICATE — Produces a new version of an existing template by duplicating its current definition.
- VALIDATE_TEMPLATE — Performs mandatory validation on a template before it may be used or activated.
- VALIDATE_FOR_WARNINGS — Returns non-fatal validation warnings that do not block activation.
- ACTIVATE_TEMPLATE — Transitions a validated template to active status so it can drive stream generation.
- UPDATE_PRI_DEP_OF_SGT — Maintains the primary and dependent stream relationships associated with the template.
- UPDATE_DEP_STRMS — Updates the dependent stream definitions attached to the template.
- DELETE_DEP_TMPT_LNS — Removes dependent template line records.
- DELETE_PRI_TMPT_LNS — Removes primary template line records.
- DELETE_TMPT_PRC_PARAMS — Deletes template process parameter records.
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.
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.2.2 DBA Data 12.2.2
-
12.2.2 DBA Data 12.2.2
-
12.1.1 DBA Data 12.1.1
-
12.1.1 DBA Data 12.1.1