Search Results fnd_flex_xml_publisher_apis
Overview
The APPS.FND_FLEX_XML_PUBLISHER_APIS package body is a server-side PL/SQL utility within the Oracle E-Business Suite 12.1.1 and 12.2.2 codebase. Its primary business function is to expose the metadata and query-building primitives required to render and report against Key Flex Fields (KFFs) through Oracle XML Publisher (BI Publisher). Rather than duplicating flexfield structure knowledge inside each report, the package centralizes the logic that interrogates the Flexfield definition tables and emits the metadata, SELECT clauses, WHERE predicates, and ORDER BY fragments that XML Publisher data templates and concurrent programs consume.
The package is classified as an "OTHER" API and resides in the APPS schema with VALID status. It does not implement a business transaction flow; instead it acts as a reusable services layer over the Oracle Flexfields infrastructure, bridging the generic KFF engine and the reporting layer. The documented package carries no outgoing references to calling objects at the dependency level, meaning it is a leaf utility invoked by reporting and metadata-generation consumers rather than a component of a larger dependency chain.
Key Procedures and Functions
The ETRM documentation lists ten public procedures and functions. Their documented purposes are as follows:
- SET_DEBUG_MODE — Enables or disables the internal debug flag used to trace package execution during troubleshooting.
- GET_DEBUG — Returns the current value of the debug flag set by
SET_DEBUG_MODE. - KFF_FLEXFIELD_METADATA — Returns metadata describing a Key Flexfield as a whole, such as its identifying application and flexfield code, for consumption by the reporting layer.
- KFF_STRUCTURE_METADATA — Returns metadata describing a specific flexfield structure (the ID flex structure) associated with a KFF.
- KFF_SEGMENT_METADATA — Returns metadata describing an individual segment belonging to a flexfield structure.
- KFF_SEGMENTS_METADATA — Returns metadata describing the complete set of segments for a structure, supporting bulk retrieval rather than per-segment calls.
- KFF_SELECT — Constructs the SELECT clause fragment required to retrieve flexfield combination data in an XML Publisher query.
- KFF_WHERE — Constructs the WHERE clause fragment used to restrict flexfield combination data according to segment criteria.
- KFF_ORDER_BY — Constructs the ORDER BY clause fragment used to sequence flexfield segment output.
- PROCESS_KFF_COMBINATION_1 — Processes a KFF combination record, handling the concatenated or formatted representation of segment values for output.
Collectively these procedures allow a report definition to be generated dynamically from flexfield metadata instead of being hard-coded, which is essential because KFF structures and segment configurations vary by implementation and can change without code modification.
Tables Accessed
The package reads from the core Oracle Flexfields and Application Object Library definition tables through APPS synonyms. FND_ID_FLEXS, FND_ID_FLEX_STRUCTURES, and FND_ID_FLEX_SEGMENTS supply the flexfield, structure, and segment definitions, while FND_ID_FLEX_SEGMENTS_TL provides the translated segment prompt and description text. FND_FLEX_VALUE_SETS supplies the value set information attached to each segment, and FND_SEGMENT_ATTRIBUTE_TYPES together with FND_SEGMENT_ATTRIBUTE_VALUES provide the descriptive flexfield-style attributes and their assigned values. FND_APPLICATION identifies the owning application, and FND_TABLES and FND_COLUMNS provide the underlying table and column metadata used to construct SQL fragments. PLITBLM is referenced as the standard PL/SQL table type used for passing collections of metadata or SQL fragments. The package also depends on the code-based utilities FND_FLEX_KEYVAL, FND_FLEX_SERVER, FND_FLEX_SERVER1, FND_DATE, FND_NUMBER, FND_PLSQL_CACHE, and FND_GLOBAL for value validation, server-side flexfield logic, date and number formatting, caching, and session context respectively.
Usage Notes
This package is typically invoked from XML Publisher data templates, concurrent program report logic, and custom PL/SQL that needs to build flexfield-aware SQL at runtime. It is also reachable from Oracle Forms through the flexfield server mechanism and from other packages in the APPS schema. Because it depends on FND_GLOBAL for session context and on the flexfield definition tables for metadata, correct behavior requires that the calling session be initialized with an application and responsibility, and that the relevant flexfield structures be compiled and frozen. Developers extending reports should treat the metadata and clause-builder procedures as the supported interface and treat the internal helper dependencies as private implementation. The package is documented as referenced by twenty-six other database objects, confirming its role as a shared reporting utility rather than an application-specific component.
-
PACKAGE BODY: APPS.FND_FLEX_XML_PUBLISHER_APIS
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:FND_FLEX_XML_PUBLISHER_APIS, status:VALID,
-
PACKAGE BODY: APPS.FND_FLEX_XML_PUBLISHER_APIS
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:FND_FLEX_XML_PUBLISHER_APIS, status:VALID,
-
PACKAGE: APPS.FND_FLEX_XML_PUBLISHER_APIS
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_XML_PUBLISHER_APIS, status:VALID,
-
PACKAGE: APPS.FND_FLEX_XML_PUBLISHER_APIS
12.2.2
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_XML_PUBLISHER_APIS, status:VALID,
-
SYNONYM: APPS.FND_ID_FLEXS
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_ID_FLEXS, status:VALID,
-
SYNONYM: APPS.FND_ID_FLEXS
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_ID_FLEXS, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOECCL_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOECCL_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_TP_BALANCE_RPT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_TP_BALANCE_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXIODIS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXIODIS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEORS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEORS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEORR_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEORR_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOESOS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOESOS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_TP_BALANCE_RPT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_TP_BALANCE_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXCRDIS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXCRDIS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_JELINES_RPT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_JELINES_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOESOS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOESOS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEIOD_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEIOD_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.JA_JP_TP_BAL_CTRL_RPT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:JA_JP_TP_BAL_CTRL_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEOCR_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEOCR_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEORS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEORS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEUBK_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEUBK_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOECCL_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOECCL_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXCRDIS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXCRDIS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOHOHS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOHOHS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOHOHS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOHOHS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_ACCT_ANALYSIS_RPT_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_ACCT_ANALYSIS_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_ACCT_ANALYSIS_RPT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_ACCT_ANALYSIS_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEORR_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEORR_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.INV_INVTRDST_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:INV_INVTRDST_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.BOM_BOMRWUIT_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:BOM_BOMRWUIT_XMLP_PKG, status:VALID,
-
SYNONYM: APPS.FND_ID_FLEX_SEGMENTS_TL
12.2.2
owner:APPS, object_type:SYNONYM, object_name:FND_ID_FLEX_SEGMENTS_TL, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEITR_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEITR_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEUBK_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEUBK_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXIODIS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXIODIS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEIOD_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEIOD_XMLP_PKG, status:VALID,
-
PACKAGE: APPS.FND_FLEX_SERVER
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_FLEX_SERVER, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXPRPRD_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXPRPRD_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEOCS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEOCS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXPRPRD_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXPRPRD_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.BOM_BOMRBOMC_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:BOM_BOMRBOMC_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEOCS_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEOCS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEITR_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEITR_XMLP_PKG, status:VALID,
-
PACKAGE: APPS.FND_PLSQL_CACHE
12.1.1
owner:APPS, object_type:PACKAGE, object_name:FND_PLSQL_CACHE, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEORD_XMLP_PKG
12.1.1
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEORD_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_JELINES_RPT_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_JELINES_RPT_PKG, status:VALID,
-
PACKAGE BODY: APPS.BOM_BOMRBOMS_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:BOM_BOMRBOMS_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.XLA_TB_REPORT_PVT
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:XLA_TB_REPORT_PVT, status:VALID,
-
SYNONYM: APPS.FND_ID_FLEX_SEGMENTS_TL
12.1.1
owner:APPS, object_type:SYNONYM, object_name:FND_ID_FLEX_SEGMENTS_TL, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEACK_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEACK_XMLP_PKG, status:VALID,
-
PACKAGE BODY: APPS.ONT_OEXOEOCR_XMLP_PKG
12.2.2
owner:APPS, object_type:PACKAGE BODY, object_name:ONT_OEXOEOCR_XMLP_PKG, status:VALID,