Search Results generate_xmldocument
Overview
OKL_XMLGEN_PVT is a private PL/SQL package body in the Oracle E-Business Suite Oracle Lease and Finance Management (OKL) module, owned by the APPS schema. Its central purpose is to construct an XML document that represents the outbound messaging payload associated with a lease transaction, then hand that payload to the Oracle E-Commerce Gateway (ECX) infrastructure for delivery to an external trading partner. The package therefore sits at the junction between Oracle Lease Management internal transaction data and the EDI/XML transport layer provided by ECX.
The package is classified as a private (PVT) API, meaning it is an internal implementation detail of the lease application and is not published for customer extension. Its behavior is driven entirely by a single input parameter, the document identifier, which is used to resolve both the trading partner header information and the transaction-level detail required to assemble the outbound message.
Key Procedures and Functions
- GENERATE_XMLDOCUMENT — The sole documented function in this package. It accepts a document identifier and returns a CLOB containing the generated XML document. Internally it opens two cursors: the first resolves trading partner header data (header id, party site id, and party type) by joining ECX_TP_HEADERS to HZ_PARTIES, and the second resolves transaction detail data (external subtype, mapping code, and object type) by joining the ECX detail view, ECX_MAPPINGS, ECX_OBJECTS, and OKL_STREAM_INTERFACES, keyed on the transaction number. After fetching these values, the function produces debug log entries through OKL_DEBUG_PUB and invokes ECX_OUTBOUND.PROCESS_OUTBOUND_DOCUMENTS to submit the assembled document, specifying the W3C message standard.
The function is instrumented with a module-level debug flag constant, OKL_DEBUG_PUB.CHECK_LOG_ENABLED, and gates all FND_LOG.LEVEL_PROCEDURE messages behind boolean flags controlling procedure, error, and exception logging. This instrumentation allows the function to be traced in a production environment without code modification.
Tables Accessed
- ECX_TP_HEADERS — Supplies trading partner header information, including the partner's party identifier and site, used to determine the outbound destination.
- HZ_PARTIES — Joined to ECX_TP_HEADERS to resolve party names and confirm the trade partner identity.
- ECX_MAPPINGS — Provides the mapping code that links the lease transaction subtype to the corresponding ECX mapping definition.
- ECX_OBJECTS — Provides object type metadata required to identify the target object within the ECX mapping framework.
- OKL_STREAM_INTERFACES — Supplies the lease deal type and transaction number that connect the lease transaction to its ECX transaction subtype.
All access is read-only against these tables; the function does not perform DML on the underlying lease or ECX configuration tables.
Usage Notes
Because OKL_XMLGEN_PVT is a private package, it is not intended for direct invocation from customer forms or concurrent programs. It is referenced by one other package in the ETRM schema, which acts as the public entry point and orchestrates the call to GENERATE_XMLDOCUMENT. Typical invocation occurs during the lease transaction outbound processing flow, when a lease contract requires transmission to an external partner through the Oracle E-Commerce Gateway. The package should be treated as an internal implementation component; any customization or extension of XML generation behavior should be performed through supported ECX mapping configuration rather than by modifying this package body.
-
PACKAGE BODY: APPS.OKL_XMLGEN_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_XMLGEN_PVT
12.2.2
-
PACKAGE: APPS.OKL_XMLGEN_PVT
12.2.2
-
PACKAGE: APPS.OKL_XMLGEN_PVT
12.1.1
-
APPS.OKL_XMLGEN_PVT dependencies on OKL_XMLGEN_PVT
12.2.2
-
APPS.OKL_XMLGEN_PVT dependencies on OKL_XMLGEN_PVT
12.1.1
-
APPS.OKL_XMLGEN_PVT dependencies on FND_LOG
12.1.1
-
APPS.OKL_XMLGEN_PVT dependencies on FND_LOG
12.2.2
-
APPS.OKL_XMLGEN_PVT dependencies on OKL_DEBUG_PUB
12.2.2
-
APPS.OKL_XMLGEN_PVT dependencies on OKL_DEBUG_PUB
12.1.1