Search Results ff_functions




Overview

The FF_FUNCTIONS table is a core metadata repository within the Oracle E-Business Suite (EBS) FastFormula engine. It serves as the central catalog for all user-defined and seeded formula functions available to developers. FastFormula is a declarative language used extensively across HR, Payroll, and other modules to define complex business rules for calculations, validations, and data transformations without requiring extensive programming. The FF_FUNCTIONS table defines the signature and metadata for each function, enabling the FastFormula parser and execution engine to validate syntax, check data types, and process calls correctly. Its integrity is critical for the compilation and execution of all formulas within the system.

Key Information Stored

While the provided metadata does not list specific columns, based on its role as a function definition table, it typically stores essential attributes for each function. The primary identifier is the FUNCTION_ID, which is the table's primary key. Other critical columns usually include the FUNCTION_NAME, which is the unique identifier used within formula text, and a DESCRIPTION for documentation. The table also stores metadata about the function's return DATA_TYPE and may include flags indicating whether the function is user-defined or a system-seeded function, and its status (e.g., enabled). This structure allows the FastFormula engine to perform lookups and validation during formula parsing.

Common Use Cases and Queries

This table is primarily accessed for technical analysis, troubleshooting, and impact assessment during upgrades or customizations. A common use case is to audit all available functions, particularly after adding custom functions via the FastFormula Function wizard. Database administrators or developers may query it to understand function dependencies or to verify a function's existence before referencing it in a new formula. A typical query would retrieve a list of all functions: SELECT function_id, function_name, description FROM hr.ff_functions ORDER BY function_name;. Another practical scenario involves joining with parameter tables to understand a function's full signature for documentation purposes or to diagnose formula compilation errors related to incorrect argument usage.

Related Objects

The FF_FUNCTIONS table has defined foreign key relationships with two other critical FastFormula metadata tables, as documented in the provided ETRM data.

  • FF_FUNCTION_CONTEXT_USAGES: This table links functions to the specific database contexts (e.g., legislative or user contexts) in which they are valid. It joins to FF_FUNCTIONS via the FF_FUNCTION_CONTEXT_USAGES.FUNCTION_ID column.
  • FF_FUNCTION_PARAMETERS: This table stores the definition of all parameters (arguments) for each function, including their sequence, name, and data type. It joins to FF_FUNCTIONS via the FF_FUNCTION_PARAMETERS.FUNCTION_ID column. Querying these tables together provides a complete technical specification for any FastFormula function.