Search Results generate_streams_st




Overview

The APPS.OKL_INVOKE_PRICING_ENGINE_PVT package body is a private API within the Oracle E-Business Suite Lease Management (OKL) module, part of the Enterprise Contracts and Trade Management (ETRM) family of applications. Its principal role is to act as a bridge between the lease transaction layer and the pricing or stream-generation engine used during lease origination and booking. The package receives transaction context supplied through the Sales Information Validation (SIF) record structure and forwards that context to the Enterprise Stream Generator (ESG) transport layer, which performs the actual pricing and stream derivation.

The module identifier registered inside the package, okl.stream.esg.okl_invoke_pricing_engine_pvt.generate_streams_st, confirms that the package is intended to drive the generation of payment or accounting streams for a lease contract. Lease pricing in EBS requires that contractual cash flows be produced, validated, and persisted before accounting events can be raised. This private package encapsulates the invocation step of that flow, isolating callers from the internals of the ESG transport mechanism.

Key Procedures and Functions

Only one procedure is documented in the ETRM metadata for this package:

  • GENERATE_STREAMS_ST — The single documented entry point. Its purpose is to trigger stream generation for a lease transaction based on the supplied transaction type, subtype, and SIF validation record. The procedure accepts API versioning information and a message list initialization flag, and returns the standard EBS API return status, message count, and message data outputs. Internally it evaluates debug logging flags, commits any pending work, writes debug messages when procedure-level logging is enabled, and then delegates the substantive processing to OKL_ESG_TRANSPORT_PVT.process_esg, passing the transaction number from the SIF record.

No other public or private procedures are documented in the supplied metadata. The parameter list for GENERATE_STREAMS_ST is not restated here; only the documented signature elements (API version, initialization flag, return status, message outputs, transaction type, transaction subtype, and the SIF record) are referenced.

Tables Accessed

The ETRM metadata does not list any base tables referenced directly through APPS synonyms by this package. All persistent data access is delegated to OKL_ESG_TRANSPORT_PVT.process_esg, which handles the retrieval of lease header, line, and stream information and the subsequent writing of generated stream records. Consequently, the package itself functions primarily as a control and logging wrapper rather than a direct data manipulator.

Usage Notes

Because this is a private (PVT) package, it is not intended for direct invocation by customer extensions or external integrations. The metadata indicates that it is referenced by four other packages within the OKL schema, which call GENERATE_STREAMS_ST as part of higher-level lease processing flows — typically during lease booking, repricing, or stream regeneration activities initiated from the Lease Management forms or from internal concurrent processing logic.

Custom code should not call this package directly; instead, callers should use the public API layer that wraps it. The mandatory commit executed inside the procedure means it must not be invoked from within a caller-controlled transaction that expects to roll back the entire unit of work. Debug output, when enabled, is controlled through OKL_DEBUG_PUB and the module name registered at the top of the body, allowing DBAs to trace execution per transaction number.