Search Results lns_import_loan_pub




Overview

APPS.LNS_IMPORT_LOAN_PUB is a public PL/SQL API package within the Oracle E-Business Suite Lease Management (LNS) module. Its principal business function is to support the bulk import and creation of lease and loan contracts from external data sources into the ETRM lease repository. Rather than requiring users to enter each contract manually through the Lease Management forms, organizations can stage loan and lease data externally and invoke this API to programmatically instantiate loan headers, loan lines, disbursement structures, rate schedules, and amortization schedules. The package encapsulates the validation, defaulting, and insertion logic required to create a coherent lease contract across the many related tables that comprise the LNS data model. Because it is classified as a PUB (public) API and owned by the APPS schema, it is intended for external invocation by custom code, integration layers, or batch programs rather than being restricted to internal package use.

Key Procedures and Functions

The package exposes a single documented public procedure, IMPORT_LOAN. This entry point performs the end-to-end import of a single loan or lease record. Internally it validates the incoming data against the referenced master tables, applies defaults, writes the loan header and its associated lines and schedules, and captures any failures into the error interface table so that the caller can report on rejected records. The procedure relies on the standard error-handling mechanism common to ETRM public APIs, allowing partial success and detailed diagnostics. Because parameter lists are not enumerated in the available metadata, they are intentionally not reproduced here; callers should consult the package specification directly for the exact signature.

Tables Accessed

The package reads and writes a broad set of ETRM and Oracle master tables through APPS synonyms:

Usage Notes

LNS_IMPORT_LOAN_PUB is typically invoked from custom PL/SQL integration scripts, data-conversion routines during implementation, or batch mechanisms that load lease contracts from legacy or third-party systems. It may also be called indirectly by concurrent programs that process staged import data. Because it is a PUB API, it forms part of the supported integration surface for ETRM and should be preferred over direct table inserts, which bypass validation logic. Callers should populate the relevant interface or staging structures, invoke IMPORT_LOAN, then query the error tables (LNS_LOAN_CREATE_ERRORS_GT and LNS_LOAN_API_ERRORS_GT) to detect and resolve rejected records. The package is documented as being referenced by zero other packages, indicating it is a top-level integration entry point rather than an internal dependency, and it is valid in both EBS 12.1.1 and 12.2.2.