Search Results generate_vendor_refund
Overview
The APPS.OKL_VENDOR_REFUND_PUB package body is the public wrapper for vendor refund processing within the Oracle Lease and Finance Management (OKL) module of Oracle E-Business Suite. Its documented purpose is to expose a callable interface that generates a vendor refund against a lease contract. The package forms part of the OKL "PUB" (public) API layer, meaning it is intended for external invocation from concurrent programs, forms, or custom code rather than being called internally by other OKL packages. As reflected by the ETRM classification, OKL_VENDOR_REFUND_PUB is a public API and is not referenced by any other package, confirming its role as an entry point. The substantive business logic is not implemented in this body; instead, the public procedure delegates to the private package OKL_VENDOR_REFUND_PVT, which performs the actual refund creation and validation. This public/private split is a standard Oracle Applications design pattern that stabilizes the externally visible signature while allowing internal implementation changes. The source header indicates the file is OKLPRFDB.pls version 115.6, dated 2003/04/25, and carries the noship designation, indicating it is a non-shipped source artifact.
Key Procedures and Functions
The package exposes a single documented procedure:
- GENERATE_VENDOR_REFUND — The sole public entry point. It accepts an error buffer and return code (the standard concurrent program OUT parameters) together with a contract number identifying the lease contract for which the vendor refund is to be created. The procedure establishes a savepoint named
GENERATE_VENDOR_REFUND, then callsOKL_VENDOR_REFUND_PVT.GENERATE_VENDOR_REFUND, passing through the error buffer, return code, and contract number parameters. An exception handler catchesWHEN OTHERS, rolls back to the savepoint, and writes the SQL error message to the concurrent program output file viaFND_FILE.PUT_LINE(FND_FILE.OUTPUT, ...). The procedure does not re-raise the exception, so callers rely on the returned error buffer and return code for failure detection.
Tables Accessed
The documented metadata lists no tables referenced directly through APPS synonyms by this package. This is consistent with the wrapper design: all data manipulation is performed inside OKL_VENDOR_REFUND_PVT, which would access the underlying OKL contract, vendor, and refund tables. Because the public body contains no DML or queries, no table-level dependencies are attributed to it in the ETRM repository.
Usage Notes
The signature and use of FND_FILE.PUT_LINE and OUT errbuf/retcode parameters indicate that GENERATE_VENDOR_REFUND is designed to be registered as a concurrent program in Oracle EBS. A concurrent program definition would bind the error buffer and return code automatically and pass the lease contract number as a parameter. Typical invocation scenarios include generating a refund to a vendor when a lease contract is terminated, adjusted, or otherwise results in an amount owed back by the vendor. Because the procedure suppresses exceptions and writes errors only to the concurrent output file, custom callers should inspect retcode and errbuf after execution rather than depending on propagated exceptions. The package is available in both EBS 12.1.1 and 12.2.2, and the version header confirms a stable interface across these releases.
-
PACKAGE BODY: APPS.OKL_VENDOR_REFUND_PUB
12.2.2
-
PACKAGE BODY: APPS.OKL_VENDOR_REFUND_PUB
12.1.1
-
PACKAGE: APPS.OKL_VENDOR_REFUND_PUB
12.1.1
-
PACKAGE: APPS.OKL_VENDOR_REFUND_PVT
12.2.2
-
PACKAGE: APPS.OKL_VENDOR_REFUND_PUB
12.2.2
-
PACKAGE BODY: APPS.OKL_VENDOR_REFUND_PVT
12.1.1
-
PACKAGE: APPS.OKL_VENDOR_REFUND_PVT
12.1.1
-
PACKAGE BODY: APPS.OKL_VENDOR_REFUND_PVT
12.2.2
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on OKL_VENDOR_REFUND_PUB
12.1.1
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on OKL_VENDOR_REFUND_PUB
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_VENDOR_REFUND_PVT
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_DEBUG_PUB
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_DEBUG_PUB
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_CONTRACT_INFO
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_VENDOR_REFUND_PVT
12.1.1
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on FND_FILE
12.2.2
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on FND_FILE
12.1.1
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on OKL_VENDOR_REFUND_PVT
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKL_CONTRACT_INFO
12.2.2
-
APPS.OKL_VENDOR_REFUND_PUB dependencies on OKL_VENDOR_REFUND_PVT
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_MSG_PUB
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_MSG_PUB
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKC_K_HEADERS_B
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_FILE
12.2.2
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_FILE
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on OKC_K_HEADERS_B
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_API
12.1.1
-
APPS.OKL_VENDOR_REFUND_PVT dependencies on FND_API
12.2.2