Search Results fa_rx_flex_pkg
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
owner:APPS, object_type:PACKAGE BODY, object_name:FA_RX_FLEX_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_RX_FLEX_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FA_RX_FLEX_PKG, status:VALID,
-
SYNONYM: APPS.FND_SEGMENT_ATTRIBUTE_TYPES
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_SEGMENT_ATTRIBUTE_TYPES, status:VALID,
-
PACKAGE: APPS.FA_RX_FLEX_PKG
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FA_RX_FLEX_PKG, status:VALID,
-
SYNONYM: APPS.FND_SEGMENT_ATTRIBUTE_TYPES
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_SEGMENT_ATTRIBUTE_TYPES, status:VALID,
-
PACKAGE: APPS.FA_RX_FLEX_PKG
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FA_RX_FLEX_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_ADDITION_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_ADDITION_PKG, status:VALID,
-
PACKAGE BODY: APPS.PSA_FA_MASS_ADDITIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSA_FA_MASS_ADDITIONS, status:VALID,
-
PACKAGE BODY: APPS.ARRX_OTH
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_OTH, status:VALID,
-
PACKAGE BODY: APPS.PSA_FA_INVOICE_DISTRIBUTIONS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PSA_FA_INVOICE_DISTRIBUTIONS, status:VALID,
-
PACKAGE BODY: APPS.JG_ZZ_JOURNAL_AR_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:JG_ZZ_JOURNAL_AR_PKG, status:VALID,
-
PACKAGE BODY: APPS.ARRX_OTH
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_OTH, status:VALID,
-
PACKAGE BODY: APPS.ARRX_RC
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_RC, status:VALID,
-
PACKAGE BODY: APPS.JG_RX_IR_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:JG_RX_IR_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_DECREASE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_DECREASE_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_SUMMARY_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_SUMMARY_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_ADDITION_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_ADDITION_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_CALC_AGING
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:AR_CALC_AGING, status:VALID,
-
PACKAGE BODY: APPS.ARRX_RC_UNAPP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_RC_UNAPP, status:VALID,
-
PACKAGE BODY: APPS.FA_RX_GROUP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FA_RX_GROUP, status:VALID,
-
PACKAGE BODY: APPS.FARX_DP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FARX_DP, status:VALID,
-
PACKAGE BODY: APPS.FARX_RT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FARX_RT, status:VALID,
-
PACKAGE BODY: APPS.JG_RX_IR_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JG_RX_IR_PKG, status:VALID,
-
PACKAGE BODY: APPS.IGIRX_IAC_PROJ
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:IGIRX_IAC_PROJ, status:VALID,
-
PACKAGE BODY: APPS.IGIRX_IMP_IAC_REP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:IGIRX_IMP_IAC_REP, status:VALID,
-
PACKAGE BODY: APPS.ARRX_TX
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_TX, status:VALID,
-
PACKAGE BODY: APPS.ARRX_ADJ
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_ADJ, status:VALID,
-
PACKAGE BODY: APPS.JG_ZZ_JOURNAL_AP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JG_ZZ_JOURNAL_AP_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_SUMMARY_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_SUMMARY_PKG, status:VALID,
-
PACKAGE BODY: APPS.FA_JAPAN_DEP_TAX_DECREASE_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FA_JAPAN_DEP_TAX_DECREASE_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_CALC_AGING
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_CALC_AGING, status:VALID,
-
PACKAGE BODY: APPS.FARX_RT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FARX_RT, status:VALID,
-
PACKAGE BODY: APPS.JG_ZZ_JOURNAL_AR_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JG_ZZ_JOURNAL_AR_PKG, status:VALID,
-
PACKAGE BODY: APPS.PSA_FA_MASS_ADDITIONS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:PSA_FA_MASS_ADDITIONS, status:VALID,
-
PACKAGE BODY: APPS.JGRX_WT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:JGRX_WT, status:VALID,
-
PACKAGE BODY: APPS.IGI_IAC_RXI_I_WRAP_ASSET_BAL
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:IGI_IAC_RXI_I_WRAP_ASSET_BAL, status:VALID,
-
PACKAGE BODY: APPS.IGI_IAC_RXI_I_WRAP_ASSET_BAL
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:IGI_IAC_RXI_I_WRAP_ASSET_BAL, status:VALID,
-
PACKAGE BODY: APPS.ZX_AR_EXTRACT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ZX_AR_EXTRACT_PKG, status:VALID,
-
PACKAGE BODY: APPS.FARX_DP
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FARX_DP, status:VALID,
-
PACKAGE BODY: APPS.ARRX_RC_UNAPP
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_RC_UNAPP, status:VALID,
-
PACKAGE BODY: APPS.PSA_FA_INVOICE_DISTRIBUTIONS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:PSA_FA_INVOICE_DISTRIBUTIONS, status:VALID,
-
PACKAGE BODY: APPS.ARRX_ADJ
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ARRX_ADJ, status:VALID,
-
PACKAGE BODY: APPS.FA_DEPRN_TAX_REP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FA_DEPRN_TAX_REP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ZX_JG_EXTRACT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ZX_JG_EXTRACT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ZX_AR_EXTRACT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ZX_AR_EXTRACT_PKG, status:VALID,
-
PACKAGE BODY: APPS.AR_CUMULATIVE_BALANCE_REPORT
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:AR_CUMULATIVE_BALANCE_REPORT, status:VALID,
-
PACKAGE BODY: APPS.ZX_AR_ACTG_POPULATE_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ZX_AR_ACTG_POPULATE_PKG, status:VALID,
-
PACKAGE BODY: APPS.ZX_JG_EXTRACT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ZX_JG_EXTRACT_PKG, status:VALID,
-
PACKAGE BODY: APPS.FARX_AD
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FARX_AD, status:VALID,
-
PACKAGE BODY: APPS.IGIRX_IAC_PROJ
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:IGIRX_IAC_PROJ, status:VALID,