Search Results run_gratuity_formula




Overview

PAY_AE_GENERAL is a PL/SQL package owned by APPS in the Oracle E-Business Suite Payroll (PAY) module, classified as OTHER within the ETRM repository. Its header revision (pyaegenr.pkh 120.2) dates to November 2005 and is marked "noship," indicating it is a non-shipped, country-specific utility built to support payroll legislative requirements — in this case the United Arab Emirates, as reflected by the "AE" (United Arab Emirates) prefix in the package name. The package serves as a general-purpose helper library for UAE payroll processing, exposing functions that resolve local nationality rules, sector classification, message text, table-band lookups, assignment validation, and gratuity computation. It does not represent a business API in the conventional sense but rather an internal support toolkit consumed by UAE payroll formula functions and related PAY packages. The documented metadata lists 24 procedures and functions, and the package is referenced by one other package within the ETRM inventory.

Key Procedures and Functions

The documented functions fall into several functional clusters:

The user search term "get_contract" corresponds directly to the documented GET_CONTRACT function, which is central to UAE gratuity and contract-related payroll calculations.

Tables Accessed

The package references HR and PAY tables through APPS synonyms. PER_ALL_ASSIGNMENTS_F provides assignment records for nationality matching and multiple-assignment checks. HR_ALL_ORGANIZATION_UNITS, HR_ORGANIZATION_INFORMATION, and HR_SOFT_CODING_KEYFLEX supply organizational and key flexfield context for sector and parameter resolution. PAY_ASSIGNMENT_ACTIONS and PAY_PAYROLL_ACTIONS support assignment and payroll action validation. PAY_ELEMENT_TYPES_F, PAY_RUN_RESULTS, and PAY_PRE_PAYMENTS are used for balance and run-result aggregation behind the sum functions. The user-table infrastructure — PAY_USER_TABLES, PAY_USER_COLUMNS, PAY_USER_COLUMN_INSTANCES_F, and PAY_USER_ROWS_F — backs GET_TABLE_BANDS. FF_DATABASE_ITEMS and FF_USER_ENTITIES link the package to Fast Formula definitions, particularly for gratuity formulas.

Usage Notes

PAY_AE_GENERAL is typically invoked from UAE payroll Fast Formulas, which call these helper functions to resolve nationality rules, sector classification, and gratuity calculations during payroll runs. It may also be called by concurrent programs and custom PL/SQL extensions performing UAE-specific payroll validation or reporting. As a "noship" object, it is not part of the standard shipped product and should be treated as a supporting internal package; direct custom calls are possible but carry upgrade risk since the package is not formally published. The 500-word scope here is grounded strictly in the documented ETRM metadata.