Search Results d_attribute
Overview
INV_LOT_SEL_ATTR is an Oracle E-Business Suite PL/SQL package body owned by the APPS schema that governs lot and serial number descriptive flexfield (DFF) behavior within Oracle Inventory. The package serves as the central engine for resolving, validating, and returning attribute values associated with lot numbers and serial numbers, including context code resolution, segment enabledness, default value derivation, and required-field enforcement. It is classified under the ETRM as an "OTHER" API, meaning it is not published as a formal open interface but is widely consumed internally by Inventory forms and by dependent packages.
In the context of Oracle EBS 12.1.1 and 12.2.2, the package bridges the gap between the generic Flexfields infrastructure (FND_FLEX_VALIDATION_TABLES, FND_FLEX_VALUE_SETS) and the Inventory lot/serial tables (MTL_LOT_NUMBERS, MTL_SERIAL_NUMBERS). Its principal role is to determine which flexfield context and which segments apply to a given item, organization, and lot or serial number combination, and then to supply the corresponding attribute values to the calling form or process. The user query for "n_attribute" reflects the package's core purpose: retrieving and interpreting the Nth attribute segment of the lot or serial descriptive flexfield.
Key Procedures and Functions
The documented package exposes sixteen procedures and functions. GET_CONTEXT_CODE resolves the descriptive flexfield context category for a given item and organization, selecting either the lot_attribute_category from MTL_LOT_NUMBERS or the serial_attribute_category from MTL_SERIAL_NUMBERS depending on whether the flex name is "Lot Attributes" or "Serial Attributes." GET_LOT_SERIAL_CONTEXT and GET_DFLEX_CONTEXT provide broader context resolution logic used when the flexfield structure must be determined dynamically.
- IS_ENABLED — determines whether a given descriptive flexfield segment is enabled for the resolved context.
- IS_ENABLED_SEGMENT — evaluates enabledness at the individual segment level, supporting segment-specific display and validation logic.
- IS_DFF_REQUIRED — indicates whether the DFF as a whole is mandatory, driving form-level validation.
- IS_LOT_ATTRIBUTES_REQUIRED — specifically reports whether lot attribute capture is required before a lot record can be saved.
- IS_CONTEXT_DISPLAYED — signals whether the context field itself should be rendered to the user.
- GET_DELIMITER — returns the segment delimiter character used when concatenating flexfield segment values.
- GET_DEFAULT — supplies default values for flexfield segments based on flexfield definition and item context.
- GET_ATTRIBUTE_VALUES, GET_INV_LOT_ATTRIBUTES, and GET_INV_SERIAL_ATTRIBUTES — retrieve the populated attribute values for lot and serial records respectively.
- GET_DFLEX_SEGMENT — returns metadata for an individual flexfield segment, including the nth attribute referenced in the user's search.
- LOCK_LOT_RECORDS — acquires a row-level lock on the relevant lot records to enforce concurrency control during attribute updates.
Tables Accessed
The package reads from MTL_LOT_NUMBERS and MTL_SERIAL_NUMBERS to obtain the stored context category and attribute values, and references MTL_SERIAL_NUMBERS_TEMP for transient serial data during capture. MTL_SYSTEM_ITEMS_B and MTL_ITEM_CATEGORIES supply item-level context used to resolve which flexfield structure applies. FND_FLEX_VALIDATION_TABLES and FND_FLEX_VALUE_SETS provide the flexfield definition metadata, while MTL_FLEX_CONTEXT holds Inventory-specific flexfield context configuration. ALL_TAB_COLUMNS, DBMS_SQL, DUAL, PLITBLM, and USER_SYNONYMS support dynamic SQL construction and metadata inspection within the package.
Usage Notes
INV_LOT_SEL_ATTR is invoked primarily from Oracle Inventory lot and serial entry forms, where it drives context resolution, segment display, defaulting, and required-field validation as the user enters lot or serial attribute data. It is also referenced by twenty-one other packages within the EBS codebase, making it a foundational dependency for lot and serial attribute processing. Custom extensions that capture lot or serial descriptive flexfield values should call these procedures rather than querying MTL_LOT_NUMBERS directly, ensuring consistent handling of context, enabledness, and locking semantics.
-
APPS.EAM_ASSET_ATTR_IMPORT_PVT dependencies on FND_FLEX_DESCVAL
12.1.1
-
APPS.EAM_ASSET_ATTR_IMPORT_PVT dependencies on FND_FLEX_DESCVAL
12.2.2
-
PACKAGE BODY: APPS.INV_LOT_SEL_ATTR
12.1.1
-
PACKAGE BODY: APPS.EAM_ASSET_ATTR_IMPORT_PVT
12.2.2
-
PACKAGE BODY: APPS.EAM_ASSET_ATTR_IMPORT_PVT
12.1.1
-
PACKAGE BODY: APPS.INV_LOT_SEL_ATTR
12.2.2
-
PACKAGE BODY: APPS.INV_LOT_API_PUB
12.1.1
-
PACKAGE BODY: APPS.INV_LOT_API_PUB
12.2.2