Search Results get_object_instance_name
Overview
JTF_OBJECTS_PVT is a private PL/SQL package in the APPS schema that belongs to the Oracle E-Business Suite CRM Foundation (JTF) module. Its role is to resolve the human-readable instance name of a business object given the object's code and its internal identifier. The package is declared with AUTHID CURRENT_USER, indicating that its SQL statements execute under the privileges of the calling session rather than the package owner, a common convention in EBS utility packages that must respect the caller's security context.
The package supports the JTF object-model infrastructure, in which business entities such as leads, opportunities, notes, tasks, and other CRM records are generalized as "objects" with a code (from JTF_OBJECTS) and a unique instance identifier. Resolving an object instance name is a frequent requirement for display purposes, cross-referencing, and integration logic, since stored data typically holds only codes and IDs. The header comment (version 115.2, dated 2002) indicates the code has been stable since the early 11i era and remains unchanged through 12.1.1 and 12.2.2.
Key Procedures and Functions
GET_OBJECT_INSTANCE_NAME — This is the sole documented routine in the package. It is a function that returns a VARCHAR2 value. Based on the object's definition in JTF_OBJECTS, it determines and returns the name of the specified object instance. It accepts two required IN parameters: an object code (p_ObjectCode) and an object ID (p_ObjectID). Because the function accepts the object code and identifier and returns a name, it acts as a lookup utility that abstracts the caller from the underlying object-type mapping logic. The header comment explicitly notes that this function is used in the JTF_OBJECT_MAPPINGS_V view, meaning its result feeds a public view that other EBS components query.
Tables Accessed
- JTF_OBJECTS_B — The base table holding the definitions of the various business objects known to the framework. It supplies the metadata necessary to determine how an instance name is derived for a given object code.
- ALL_TAB_COLUMNS — The data dictionary view used to introspect the column structure of underlying object tables, consistent with a dynamic resolution mechanism that locates the name-bearing column for the object type.
- USER_SYNONYMS — Used to resolve the actual table or synonym behind an object definition, allowing the package to operate generically across object types regardless of their physical table names.
All of these are accessed through APPS synonyms. The combined usage of JTF_OBJECTS_B with dictionary views and synonym resolution indicates a data-driven algorithm that adapts to whatever object definitions are registered in the instance.
Usage Notes
The package is a private (PVT) API, not intended for direct invocation by end users or customer extensions; Oracle sanctions public APIs for that purpose. Its documented consumer is the JTF_OBJECT_MAPPINGS_V view, which exposes resolved object instance names to other applications and reports. The metadata further records that the package is referenced by two other packages within APPS, indicating internal reuse in CRM Foundation processing.
Typical invocation patterns include view evaluation, internal package calls during object-mapping operations, and any CRM feature that must display an object name from a code and ID pair. Because the function uses dictionary introspection and synonym resolution, callers should expect moderately heavier execution cost than a simple table lookup, and it is best invoked for display or mapping purposes rather than inside high-volume loops. No concurrent program or form is directly documented as a caller, but the view dependency means any UI or report querying JTF_OBJECT_MAPPINGS_V will indirectly execute the function.