Search Results lock_loc_type
Overview
JTF_LOC_TYPES_PVT is a private (PVT-classified) PL/SQL API package owned by the APPS schema in Oracle E-Business Suite, shipped as part of the Oracle Application Object Library / Foundation (JTF) technology stack. Its source header (jtfvlots.pls 120.2) dates to 2005, meaning the package is a long-standing, stable component carried forward unchanged into EBS 12.1.1 and 12.2.2. The package encapsulates the business logic required to maintain location type definitions — the reference data that categorizes the kinds of locations (for example, addresses, warehouses, customer sites, or internal facilities) used throughout CRM, order management, and trading community (JTF/HZ) modules.
The "_PVT" suffix indicates that this is a private API: it is not intended as a formally supported public integration point. It exists to be called by the public wrapper APIs in the same product family, which in turn are invoked by the Oracle Forms user interface, concurrent programs, and other EBS application modules. Authorization is declared as AUTHID CURRENT_USER, so all unqualified object references resolve under the privileges of the calling session rather than the package owner.
Key Procedures and Functions
The ETRM metadata documents five procedures within the package:
- UPDATE_LOC_TYPE — The principal maintenance routine. It updates a single location type record in both the base table (JTF_LOC_TYPES_B) and the translation table (JTF_LOC_TYPES_TL), accepting a loc_type_rec_type record that supplies the location type identifier, code, name, description, and the standard WHO audit columns (creation and last-update stamps, object version number). It follows the Oracle Application Object Library API conventions: an API version parameter, an initialization flag (p_init_msg_list), a commit flag (p_commit), a validation level (p_validation_level), and the standard x_return_status / x_msg_count / x_msg_data output message trio.
- LOCK_LOC_TYPE — Acquires a row-level lock on a location type record in JTF_LOC_TYPES_B and JTF_LOC_TYPES_TL. This supports the Oracle Forms "lock before update" pattern, ensuring that a record cannot be modified concurrently by another user before the form commits a change.
- CHECK_ITEMS — A validation helper that performs the general item-level checks applied to a location type record prior to persistence.
- CHECK_LOC_TYPE_REQ_ITEMS — Validates that all required (mandatory) attributes of a location type record have been supplied before an insert or update is permitted.
- CHECK_LOC_TYPE_UK_ITEMS — Enforces uniqueness constraints on the location type data, validating uniqueness-key items (such as the location type code) so that duplicate definitions cannot be created.
The CHECK_* procedures are internal validators invoked by the update logic; the corresponding ETRM documentation lists no parameter signatures for them, so their interfaces should not be assumed.
Tables Accessed
- JTF_LOC_TYPES_B — The base (non-translated) table holding the core location type definition, including the location type code, identifier, and audit columns.
- JTF_LOC_TYPES_TL — The translation table storing the language-specific name and description for each location type, enabling the multilingual display of location type reference data.
The package reads and writes both tables together so that base and translated attributes remain synchronized whenever a location type record is locked or updated.
Usage Notes
Because JTF_LOC_TYPES_PVT is a private API, it is normally invoked indirectly. The package is referenced by one other package in the EBS code base, which acts as the public entry point; Oracle Forms-based setup screens and any concurrent programs that maintain location type reference data call through that wrapper rather than the private package directly. The combination of LOCK_LOC_TYPE followed by UPDATE_LOC_TYPE mirrors the standard Forms transaction cycle: lock the queried row, apply user changes, validate, then update.
In the context of a "lock_loc_type" search, the most relevant entry point is the LOCK_LOC_TYPE procedure, which is the routine responsible for serializing concurrent edits to location type definitions. Custom code should generally avoid calling this private package directly, since private APIs carry no guarantee of a stable interface across patches or upgrades; developers requiring programmatic maintenance of location types should use the supported public API that wraps it, or the corresponding Oracle Forms interface. Any direct invocation must still conform to the OAF/FND message-handling conventions (checking x_return_status and draining the message stack via FND_MSG_PUB) to participate correctly in the calling transaction.
-
PACKAGE: APPS.JTF_LOC_TYPES_PVT
12.2.2
-
PACKAGE: APPS.JTF_LOC_TYPES_PVT
12.1.1
-
PACKAGE BODY: APPS.JTF_LOC_TYPES_PVT
12.2.2
-
PACKAGE BODY: APPS.JTF_LOC_TYPES_PVT
12.1.1
-
APPS.JTF_LOC_TYPES_PVT dependencies on FND_API
12.2.2
-
APPS.JTF_LOC_TYPES_PVT dependencies on FND_API
12.1.1
-
APPS.JTF_LOC_TYPES_PVT dependencies on FND_API
12.2.2
-
APPS.JTF_LOC_TYPES_PVT dependencies on FND_API
12.1.1