Results for “process_ext_recs”

18 results




AI-generated from documented ETRM metadata — verify critical details on the linked pages.

Overview

APPS.BEN_EXT_FMT is a PL/SQL package belonging to the Oracle E-Business Suite Advanced Benefits (BEN) module. Its primary business function is to support the extraction of benefits data from Oracle EBS into external files or downstream systems by applying formatting, decoding, and calculation rules to source values drawn from the BEN extraction framework. The package acts as the formatting engine for the Benefits Extract process, taking raw values captured in extraction result records and transforming them according to user-defined formatting masks, decode rules, formulas, and inclusion/exclusion conditions before the data is written out.

The package is declared AUTHID CURRENT_USER, meaning it executes with the privileges of the invoking user, which is consistent with extraction processes that must respect the calling session's security context. The package header, sourced from benxfrmt.pkh, dates to early releases and the object remains documented in ETRM for both 12.1.1 and 12.2.2.

Key Procedures and Functions

  • PROCESS_EXT_RECS — The principal driver procedure of the package. It processes extracted result records for a given extraction result, file, data type, extraction type, and record type, honoring an effective date, business group, low-level code, person, and change event context. It orchestrates the application of formatting and decode logic across the extracted record set.
  • GET_ERROR_MSG — Returns a formatted error message given an error number, error name, and optional substitution tokens, leveraging the FND message infrastructure to produce user-facing text.
  • APPLY_FORMAT_MASK — An overloaded function that applies a formatting mask to a value, with variants accepting a DATE, NUMBER, or VARCHAR2 input, returning the formatted VARCHAR2 result. This supports consistent presentation of dates, amounts, and text in the extract output.
  • APPLY_FORMAT_FUNCTION — Applies a formatting function (rather than a literal mask) to a VARCHAR2 value, returning the transformed VARCHAR2. This is the object of interest when users search for "apply_format_function."
  • APPLY_DECODE — Applies a configured decode rule to a value based on the extraction data element, returning the decoded value and honoring a supplied default and optional short name. It reads decode definitions to translate coded values into display values.
  • SPRS_OR_INCL — Evaluates whether a record should be suppressed or included, based on the record-in-file and data-element-in-record identifiers plus a change event code.
  • CALCULATE_CALC_VALUE — Computes a calculated value from a first and second numeric input according to a calculation indicator.
  • GET_ELEMENT_VALUE — Retrieves the value of a given extraction data element for use in downstream formatting or calculation.

Tables Accessed

The package references a range of BEN extraction configuration and result tables via APPS synonyms. BEN_EXT_DATA_ELMT and BEN_EXT_DATA_ELMT_DECD define extraction data elements and their decode rules; BEN_EXT_DATA_ELMT_IN_RCD and BEN_EXT_RCD_IN_FILE link data elements to records and files; BEN_EXT_RSLT_DTL stores the extracted result detail values that are formatted. BEN_EXT_FLD, BEN_EXT_INCL_CHG, and BEN_EXT_WHERE_CLAUSE drive field definitions, inclusion/change-event rules, and record selection predicates. FF_FORMULAS_F supplies Oracle Fast Formula definitions used to compute values. FND_NEW_MESSAGES and FND_USER support error messaging and user context. HR_LOCATIONS_ALL, PER_ALL_ASSIGNMENTS_F, and DUAL supply assignment and location data used in calculations and value lookups, while PLITBLM provides PL/SQL table utilities.

Usage Notes

BEN_EXT_FMT is invoked by the Benefits Extract concurrent program and by related BEN extraction processing packages — it is referenced by approximately 30 other packages in the ETRM repository. It is not typically called directly from a form; rather, it operates as an internal formatting service within the extraction pipeline. Custom extract configurations can rely on the formatting mask, decode, and format function logic exposed here, so any customization that changes the expected output format should account for these routines. Because the package is AUTHID CURRENT_USER, callers must ensure the invoking user has the necessary privileges on the underlying BEN, HR, and FND objects.