Search Results write_log_file
Overview
APPS.PER_CAGR_UTILITY_PKG is a shared utility package body within the Oracle E-Business Suite Compensation and Benefits (Advanced Benefits) module, specifically supporting the Collective Agreement (CAGR) processing framework. The package consolidates a wide range of helper routines used throughout the Collective Agreement eligibility engine, including unit-of-measure to data type conversion, dynamic SQL validation, eligibility source resolution, request identifier management, navigation node handling, plan and option name resolution, sequence generation, and extensive logging facilities. Its principal role is to centralise reusable logic that would otherwise be duplicated across the various Collective Agreement processing packages, thereby ensuring consistent behaviour and reducing maintenance overhead. The package operates against core Human Resources, Payroll, and Benefits tables exposed through APPS synonyms, and it is referenced by at least eleven other packages in the E-Business Suite, confirming its position as a foundational utility module within the Collective Agreement feature set.
Key Procedures and Functions
The package exposes twenty-one documented callable units. Several routines are devoted to data conversion and validation:
- CONVERT_UOM_TO_DATA_TYPE — maps a unit-of-measure code from the entitlement items definition to an internal column data type (character, numeric, or date).
- CHK_SQL_STATEMENT — validates a dynamically constructed SQL statement before execution.
- GET_COLUMN_TYPE — retrieves the column type for a given entitlement item definition.
A second group resolves metadata and configuration values:
- GET_ELIG_SOURCE — determines the eligibility source associated with a Collective Agreement configuration.
- MULTIPLE_ENTRIES_ALLOWED — indicates whether multiple entries are permitted for a given configuration context.
- PLAN_NAME and OPTION_NAME — return descriptive names for plans and options respectively.
- GET_NAME_FROM_VALUE_SET and GET_SQL_FROM_VSET_ID — resolve descriptive names and SQL fragments from a value set identifier.
- GET_COLLECTIVE_AGREEMENT_ID — retrieves the Collective Agreement identifier.
- POPULATE_CURRENT_ASG — populates the current assignment context for processing.
A third group manages sequencing and request tracking:
- GET_NEXT_ORDER_NUMBER — supplies the next sequence value for ordered processing.
- GET_CAGR_REQUEST_ID — returns the current Collective Agreement request identifier.
- CREATE_CAGR_REQUEST — creates a new request record.
- SET_MODE_FROM_NODE_NAME — derives the operating mode from a navigation node name.
The final group, directly relevant to the search term write_log_file, provides diagnostic logging and error handling:
- PUT_LOG — stages a log message in the package's in-memory PL/SQL tables (g_log_text_table and g_log_priority_table).
- WRITE_LOG_FILE — flushes the staged log entries to the output file.
- CREATE_FORMATTED_LOG_FILE — produces a formatted log file from accumulated entries.
- REMOVE_LOG_ENTRIES — clears staged log entries, typically after a successful flush.
- LOG_AND_RAISE_ERROR — logs a message and then raises the corresponding application error.
Tables Accessed
The package reads and writes a range of HRMS and Benefits tables through APPS synonyms. Benefit configuration tables include BEN_OIPL_F, BEN_ELIGY_PRFL_F, BEN_OPT_F, BEN_OPT_F_S, BEN_PGM_F, BEN_PL_F, and BEN_PL_F_S, which collectively define program, plan, option, and eligibility profile metadata used for name resolution and eligibility determination. PER_CAGR_ENTITLEMENT_ITEMS supplies entitlement item definitions, including unit-of-measure and column type data central to the conversion routine. PER_CAGR_API_PARAMETERS holds API parameter configuration. HR_NAVIGATION_NODES and HR_NAVIGATION_NODE_USAGES support node-name-to-mode resolution. PAY_ELEMENT_TYPES_F, PAY_INPUT_VALUES_F, and FF_FORMULAS_F provide payroll element and formula metadata. PER_ALL_ASSIGNMENTS_F supplies assignment context for the POPULATE_CURRENT_ASG routine.
Usage Notes
PER_CAGR_UTILITY_PKG is not intended for direct end-user invocation. It is called programmatically by the higher-level Collective Agreement processing packages and by Benefits forms that surface Collective Agreement configuration. The logging routines, including WRITE_LOG_FILE, are typically invoked with debug mode enabled to produce diagnostic output during eligibility and entitlement processing, most often from concurrent program executions or from custom code performing Collective Agreement batch calculations. Because the package operates on APPS-owned synonyms, callers must execute with the appropriate application context initialised. Declaring dependencies on this package from custom code is supported, but the internal log tables and global counter variables (g_log_counter, g_log_text_table, and g_log_priority_table) are session-scoped, so logging state persists only for the duration of the database session.
-
PACKAGE BODY: APPS.PER_CAGR_UTILITY_PKG
12.1.1
-
PACKAGE BODY: APPS.PER_CAGR_UTILITY_PKG
12.2.2
-
PACKAGE: APPS.PER_CAGR_UTILITY_PKG
12.2.2
-
PACKAGE: APPS.PER_CAGR_UTILITY_PKG
12.1.1
-
PACKAGE: APPS.AK_ON_OBJECTS_PVT
12.1.1
-
PACKAGE BODY: APPS.IGF_SP_CREATE_BASE_REC
12.1.1
-
PACKAGE: APPS.AK_ON_OBJECTS_PVT
12.2.2
-
APPS.PER_CAGR_UTILITY_PKG dependencies on FND_FILE
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_ON_OBJECTS_PUB
12.1.1
-
APPS.PER_CAGR_UTILITY_PKG dependencies on FND_FILE
12.2.2
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_ON_OBJECTS_PUB
12.2.2
-
APPS.IGF_SP_CREATE_BASE_REC dependencies on IGS_PE_PRSID_GRP_MEM
12.1.1
-
APPS.PER_CAGR_UTILITY_PKG dependencies on FND_MESSAGE
12.2.2
-
APPS.IGF_SP_CREATE_BASE_REC dependencies on IGF_AP_FA_BASE_REC_PKG
12.1.1
-
APPS.PER_CAGR_UTILITY_PKG dependencies on FND_MESSAGE
12.1.1
-
APPS.IGF_SP_CREATE_BASE_REC dependencies on IGS_FI_CRDAPI_UTIL
12.1.1
-
APPS.PER_CAGR_UTILITY_PKG dependencies on PER_CAGR_LOG
12.2.2
-
APPS.PER_CAGR_UTILITY_PKG dependencies on PER_CAGR_LOG
12.1.1
-
APPS.IGF_SP_CREATE_BASE_REC dependencies on IGF_AP_FA_BASE_REC
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_LOADER_TEMP
12.1.1
-
PACKAGE BODY: APPS.AK_ON_OBJECTS_PVT
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_LOADER_TEMP
12.2.2
-
PACKAGE BODY: APPS.AK_ON_OBJECTS_PVT
12.2.2
-
APPS.PER_CAGR_UTILITY_PKG dependencies on HR_UTILITY
12.2.2
-
APPS.PER_CAGR_UTILITY_PKG dependencies on HR_UTILITY
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_ON_OBJECTS_PUB
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on AK_ON_OBJECTS_PUB
12.2.2
-
APPS.AK_ON_OBJECTS_PVT dependencies on FND_MSG_PUB
12.2.2
-
APPS.AK_ON_OBJECTS_PVT dependencies on FND_MSG_PUB
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on FND_API
12.1.1
-
APPS.AK_ON_OBJECTS_PVT dependencies on FND_API
12.2.2