Search Results get_parent_value
Overview
APPS.FA_RX_FLEX_PKG is a PL/SQL package body within the Oracle E-Business Suite (EBS) environment, operating in the context of Release 12.1.1 and 12.2.2. The package is designed to provide runtime introspection and value resolution services for Oracle Assets (FA) key flexfields. Its principal role is to dynamically interrogate the structure of a key flexfield at runtime, identify the qualifying segments and their associated value sets, and then resolve the underlying stored value or its descriptive form.
Because Oracle Assets relies heavily on configurable key flexfields—such as the Asset Key flexfield and the Asset Category flexfield—applications and reports must frequently determine which segments are enabled, what columns map to those segments, and what the human-readable description is for a given code combination. Rather than hard-coding segment positions or column names, FA_RX_FLEX_PKG abstracts this logic, allowing callers to request values by qualifier or segment number without prior knowledge of the flexfield configuration. The package is referenced by 39 other packages, indicating it is a foundational utility reused across the Assets module and possibly adjacent modules.
Key Procedures and Functions
- FLEX_SQL — Constructs or returns the SQL fragment used to resolve flexfield segment values. This procedure centralizes the logic that translates segment metadata into a queryable form, so callers do not need to replicate the join logic across FND_ID_FLEX_SEGMENTS, FND_SEGMENT_ATTRIBUTE_VALUES, and FND_SEGMENT_ATTRIBUTE_TYPES.
- GET_VALUE — Retrieves the stored value of a flexfield segment (or the code combination) for a given flexfield context. It is the primary resolution routine invoked when a caller needs the underlying value rather than a formatted description.
- GET_DESCRIPTION — Returns the descriptive, human-readable representation of a flexfield segment value, typically the concatenated description maintained in the flex value set. This is the routine most commonly associated with lookups such as "get_parent_value," where hierarchical or parent-child flex value relationships must be resolved and presented.
The package also declares a global associative array type (seg_array) indexed by binary integer, used to accumulate segment identifiers and values during iterative resolution. A central cursor, cflex, drives most procedures by returning the segment number, application column name, and flex value set id for segments matching a supplied qualifier or segment number. This cursor explicitly handles the "ALL" qualifier case and the single-segment case through a UNION ALL, ensuring both full-flexfield and targeted lookups are supported.
Tables Accessed
The package reads from a documented set of flexfield definition and value tables, accessed through APPS synonyms:
- FND_ID_FLEX_SEGMENTS — Provides segment numbers, application column names, and flex value set identifiers for enabled segments.
- FND_SEGMENT_ATTRIBUTE_VALUES and FND_SEGMENT_ATTRIBUTE_TYPES — Used to qualify segments based on attribute settings such as display, parent, or other flexfield behaviors.
- FND_ID_FLEX_STRUCTURES and FND_ID_FLEXS — Supply structure-level and flexfield-level metadata.
- FND_FLEX_VALUES and FND_FLEX_VALUE_SETS — Resolve the actual value, description, and parent-child hierarchy for a given segment value.
- DBMS_OUTPUT, DBMS_SQL, and PLITBLM — Support dynamic SQL execution, debugging output, and PL/SQL table utilities used during resolution.
Usage Notes
FA_RX_FLEX_PKG is typically invoked from Oracle Assets forms, concurrent programs, and custom PL/SQL code that must resolve flexfield values without hard-coded segment knowledge. It is not an end-user API in the traditional sense; rather, it is a server-side utility. Callers should pass an application id, flexfield code, flexfield structure number, and either a qualifier such as "ALL" or a specific segment number. Because it is referenced by 39 packages, changes to its behavior can have broad impact, and any customizations should respect the existing cursor logic and segment ordering. When searching for "get_parent_value," the relevant entry point is GET_DESCRIPTION combined with GET_VALUE, which together resolve a segment value to its description, including parent flex value handling where the value set is hierarchical.
-
PACKAGE BODY: APPS.FA_RX_FLEX_PKG
12.1.1
-
PACKAGE BODY: APPS.FA_RX_FLEX_PKG
12.2.2
-
PACKAGE: APPS.BIS_PMF_PORTLET_UTIL
12.1.1
-
PACKAGE: APPS.BSC_SEC_UTILITY
12.1.1
-
PACKAGE: APPS.PQH_WKS_BUDGET
12.1.1
-
PACKAGE: APPS.PQH_WKS_BUDGET
12.2.2
-
PACKAGE BODY: APPS.BIS_PMF_PORTLET_UTIL
12.1.1
-
PACKAGE BODY: APPS.PQH_WKS_BUDGET
12.1.1
-
PACKAGE BODY: APPS.PQH_WKS_BUDGET
12.2.2
-
APPS.FA_RX_FLEX_PKG dependencies on DBMS_OUTPUT
12.2.2
-
APPS.FA_RX_FLEX_PKG dependencies on DBMS_OUTPUT
12.1.1
-
APPS.FA_RX_FLEX_PKG dependencies on FA_CACHE_PKG
12.2.2
-
APPS.FA_RX_FLEX_PKG dependencies on FA_CACHE_PKG
12.1.1
-
APPS.PQH_WKS_BUDGET dependencies on HR_GENERAL
12.1.1
-
APPS.PQH_WKS_BUDGET dependencies on HR_GENERAL
12.2.2
-
PACKAGE BODY: APPS.BSC_SEC_UTILITY
12.1.1
-
APPS.PQH_WKS_BUDGET dependencies on PQH_WORKSHEET_DETAILS
12.2.2
-
APPS.PQH_WKS_BUDGET dependencies on HR_UTILITY
12.2.2
-
APPS.PQH_WKS_BUDGET dependencies on HR_UTILITY
12.1.1
-
APPS.PQH_WKS_BUDGET dependencies on PQH_WORKSHEET_DETAILS
12.1.1