Search Results pn_lease_utils
Overview
PN_LEASE_UTILS is a shared utility package in the Oracle Property Manager (PN) module of Oracle E-Business Suite, owned by the APPS schema. It provides a centralized library of validation, lookup, and identifier-resolution routines consumed by the higher-level Property Manager APIs, most notably PN_LEASE_PUB, PN_LEASE_PVT, and PN_INDEX_RENT_PVT. Rather than exposing a business-level API of its own, PN_LEASE_UTILS encapsulates the low-level plumbing that lease creation, lease change, and rent indexing logic rely upon: fetching surrogate keys for customers, companies, locations, and templates; validating cross-field date logic; and managing descriptive flexfield validation and error messaging. Its dependency footprint confirms this supporting role — the package references only SYS.STANDARD directly, while three other packages (PN_INDEX_RENT_PVT, PN_LEASE_PUB, and PN_LEASE_PVT) reference it. In ETRM 12.1.1 and 12.2.2 the object carries a status of VALID, and the ETRM documentation classifies its API type as OTHER, reflecting that it is an internal helper rather than a published interface. The user search term "pn_lease_pub" surfaces this object because PN_LEASE_PUB depends on PN_LEASE_UTILS for much of its validation and lookup work.
Key Procedures and Functions
The documented metadata lists 27 procedures and functions. They fall into three broad categories.
- Identifier and lookup resolvers: GET_USER_ID, GET_LOCATION_ID, GET_MASTERLEASE_ID, GET_TERM_TEMPLATE_ID, GET_ACCOUNT_ID, GET_COMPANY_ID, GET_COMPANY_SITE_ID, GET_TENANCY_CUST_ID, GET_CUSTOMER_ID, GET_INVOICE_GROUPING_RULE, and GET_LOOKUP_CODE. These return surrogate keys or codes for entities referenced during lease processing, sparing calling packages from embedding their own queries against the underlying tables.
- Validation routines: CHECK_LEASE_NAME enforces lease name uniqueness or formatting rules; CROSSVAL_LEASEDATES and VALIDATE_TENANCY_DATES validate date relationships across lease and tenancy fields; VALIDATE_FIN_OBLIG_END_DATE checks the financial obligation end date; VALIDATE_COMPANY_ID verifies the company reference; and VALIDATE_DESC_FLEX performs descriptive flexfield validation.
- Error and message helpers: ADD_NULL_PARAMETER_MSG and ADD_DESC_FLEX_MSG populate the standard message stack used by the calling Property Manager APIs, and GET_CAL_START_DATE retrieves the calendar start date used in date calculations.
Tables Accessed
Through APPS synonyms the package reads from a defined set of reference and transactional tables. Customer and party data are drawn from HZ_CUST_ACCOUNTS, HZ_CUST_ACCT_SITES_ALL, HZ_CUST_SITE_USES_ALL, HZ_PARTIES, HZ_PARTY_SITES, and HZ_LOCATIONS, supporting the customer and site identifier lookups. Internal Property Manager entities are accessed via PN_LEASES_ALL, PN_LEASE_CHANGES_ALL, PN_LOCATIONS_ALL, PN_COMPANIES_ALL, PN_COMPANY_SITES_ALL, and PN_PAY_GROUP_RULES, which back the lease, location, company, and payment grouping rule resolvers. GL_CODE_COMBINATIONS supplies accounting flexfield context for descriptive flexfield and account validation. FND_USER provides the user identifier, and FND_TERRITORIES_TL supports territory-related lookups. The package functions primarily as a reader of these tables; write activity is limited to raising messages through the message stack.
Usage Notes
PN_LEASE_UTILS is an internal utility and is not intended to be called directly from Oracle Forms, concurrent programs, or customer extensions. It is invoked transparently by the public Property Manager lease APIs — PN_LEASE_PUB and PN_LEASE_PVT — and by PN_INDEX_RENT_PVT during rent indexing. Customers implementing integrations or extensions should call PN_LEASE_PUB rather than PN_LEASE_UTILS directly, since the public API encapsulates the sequencing and error handling that the utility routines assume. Because the package is referenced by multiple callers, any modification carries broad impact across lease processing, and the package should be treated as Oracle-supported internal code subject to change between patch levels.
-
PACKAGE: APPS.PN_LEASE_UTILS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PN_LEASE_UTILS, status:VALID,
-
PACKAGE BODY: APPS.PN_LEASE_UTILS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PN_LEASE_UTILS, status:VALID,
-
SYNONYM: APPS.PN_COMPANIES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_COMPANIES_ALL, status:VALID,
-
PACKAGE: APPS.PN_LEASE_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PN_LEASE_PUB, status:VALID,
-
PACKAGE: APPS.PN_LEASE_PVT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:PN_LEASE_PVT, status:VALID,
-
SYNONYM: APPS.PN_TERM_TEMPLATES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_TERM_TEMPLATES_ALL, status:VALID,
-
SYNONYM: APPS.PN_PAY_GROUP_RULES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_PAY_GROUP_RULES, status:VALID,
-
SYNONYM: APPS.PN_COMPANY_SITES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_COMPANY_SITES_ALL, status:VALID,
-
PACKAGE BODY: APPS.PN_INDEX_RENT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PN_INDEX_RENT_PVT, status:VALID,
-
SYNONYM: APPS.PN_TENANCIES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_TENANCIES_ALL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.PN_LEASE_CHANGES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_LEASE_CHANGES_ALL, status:VALID,
-
PACKAGE BODY: APPS.PN_LEASE_PUB
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PN_LEASE_PUB, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
SYNONYM: APPS.PN_LEASES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_LEASES_ALL, status:VALID,
-
PACKAGE BODY: APPS.PN_LEASE_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PN_LEASE_PVT, status:VALID,
-
SYNONYM: APPS.PN_LOCATIONS_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:PN_LOCATIONS_ALL, status:VALID,
-
PACKAGE: APPS.FND_FLEX_DESCVAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_DESCVAL, status:VALID,
-
SYNONYM: APPS.FND_TERRITORIES_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_TERRITORIES_TL, status:VALID,
-
PACKAGE: APPS.PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_PVT dependencies on PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_PUB dependencies on PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_UTILS dependencies on PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_PUB dependencies on PN_LEASE_UTILS
12.2.2
-
APPS.PN_INDEX_RENT_PVT dependencies on PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_PVT dependencies on PN_LEASE_UTILS
12.2.2
-
PACKAGE: APPS.FND_FLEX_EXT
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_EXT, status:VALID,
-
SYNONYM: APPS.GL_CODE_COMBINATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:GL_CODE_COMBINATIONS, status:VALID,
-
VIEW: APPS.FND_LOOKUP_VALUES_VL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUP_VALUES_VL, object_name:FND_LOOKUP_VALUES_VL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCT_SITES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCT_SITES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_CUST_SITE_USES_ALL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_SITE_USES_ALL, status:VALID,
-
VIEW: APPS.PO_VENDOR_SITES_ALL
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDOR_SITES_ALL, object_name:PO_VENDOR_SITES_ALL, status:VALID,
-
SYNONYM: APPS.HZ_LOCATIONS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_LOCATIONS, status:VALID,
-
SYNONYM: APPS.HZ_PARTY_SITES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTY_SITES, status:VALID,
-
PACKAGE BODY: APPS.PN_LEASE_UTILS
12.2.2
-
APPS.PN_LEASE_UTILS dependencies on PN_LEASES_ALL
12.2.2
-
APPS.PN_LEASE_UTILS dependencies on FND_PROFILE
12.2.2
-
VIEW: APPS.PO_VENDORS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLAP.PO_VENDORS, object_name:PO_VENDORS, status:VALID,
-
SYNONYM: APPS.HZ_CUST_ACCOUNTS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_CUST_ACCOUNTS, status:VALID,
-
VIEW: APPS.FND_LOOKUPS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:FND.FND_LOOKUPS, object_name:FND_LOOKUPS, status:VALID,
-
VIEW: APPS.GL_SETS_OF_BOOKS
12.2.2
owner:APPS, object_type:VIEW, fnd_design_data:SQLGL.GL_SETS_OF_BOOKS, object_name:GL_SETS_OF_BOOKS, status:VALID,
-
SYNONYM: APPS.FND_USER
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_USER, status:VALID,
-
SYNONYM: APPS.HZ_PARTIES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:HZ_PARTIES, status:VALID,
-
eTRM - SQLAP Tables and Views
12.2.2
description: Set Distribution Table. ,
-
PACKAGE: APPS.FND_PROFILE
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_PROFILE, status:VALID,
-
PACKAGE: APPS.FND_MSG_PUB
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_MSG_PUB, status:VALID,
-
SYNONYM: PUBLIC.DUAL
12.2.2
owner:PUBLIC, object_type:SYNONYM, object_name:DUAL, status:VALID,
-
PACKAGE: APPS.FND_GLOBAL
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_GLOBAL, status:VALID,
-
12.2.2 DBA Data
12.2.2
-
12.2.2 DBA Data
12.2.2