Search Results okl_xmlgen_pvt




Overview

OKL_XMLGEN_PVT is a private PL/SQL package in the Oracle E-Business Suite Applications (APPS) schema that belongs to the Oracle Lease and Finance Management (OKL) product family. Its declared purpose, per the ETRM source header, is to "generate outbound xml document." It is classified as a private (PVT) API, meaning it is intended for internal consumption by Oracle's own Lease Management code rather than as a supported public interface for customer extensions. The package is defined with AUTHID CURRENT_USER, so it executes with the privileges of the calling user, and it exposes a single public function as its external contract. The associated business entity is OKL_ORIGINATION, which places the package within the lease origination and contract-authoring flow, where outbound XML payloads are produced for external integration.

Key Procedures and Functions

The package contains one documented program unit:

  • GENERATE_XMLDOCUMENT — A function that generates the outbound XML document for a given document identifier and returns the result as a CLOB. It is the sole entry point exposed by the package specification; all supporting logic is contained in the package body. The function is marked with the lifecycle status "active" in the repository metadata.

In addition to this function, the specification defines standard constants used across OKL APIs: G_RET_STS_SUCCESS, G_RET_STS_ERROR, and G_RET_STS_UNEXP_ERROR (mapped to OKL_API status values), G_PKG_NAME, G_APP_NAME, G_UNEXPECTED_ERROR, and the G_SQLERRM_TOKEN and G_SQLCODE_TOKEN error-message tokens. These conventions indicate that the package follows the standard OKL_API error-handling and return-status model.

Tables Accessed

The package operates against the following tables, reached through APPS synonyms:

  • ECX_OBJECTS and ECX_MAPPINGS — E-Business Suite eCommerce/XML Gateway definition and mapping metadata. These are used to resolve the XML document structure and the mapping between database columns and XML tags for the outbound message.
  • ECX_TP_HEADERS — XML Gateway trading-partner header configuration, used to obtain the outbound transmission details associated with the document.
  • HZ_PARTIES — The TCA party registry, consulted to retrieve party details (names, identifiers, addresses) that populate the generated XML payload.
  • OKL_STREAM_INTERFACES — The OKL interface table that stores stream-level data for lease origination, which supplies the core business content of the generated document.

The combination of XML Gateway metadata tables with OKL and TCA tables confirms that the package assembles a complete outbound message by combining message-format definitions with lease and party data.

Usage Notes

Because OKL_XMLGEN_PVT is a private API, it is not designed to be called directly from customer forms or custom code. It is referenced by one other package within the OKL application, which supplies the document identifier and consumes the returned CLOB — typically writing it to an outbound interface or transmission queue. The CLOB return type makes the generated document suitable for large payloads, and the caller is responsible for any subsequent transmission or archival. The package is compatible with both EBS 12.1.1 and 12.2.2; the header version string (120.1.12010000.2, dated 2008) indicates the file has been stable across these releases. Developers diagnosing outbound XML errors should trace invocations through the calling wrapper package and inspect the OKL_API status codes returned, since the private package is not directly callable from the standard OKL integration surfaces.