How To Use Function GET - PLAN - BALANCE in Payroll Fast Formula
How To Use Function GET - PLAN - BALANCE in Payroll Fast Formula
Oracle Fusion Global Payroll Cloud Service - Version 11.1.11.1.0 and later
Information in this document applies to any platform.
GOAL
SOLUTION
Step 1: Go to Manage Fast Formula page, and Create new formula give
information as blew screen shot:
Step 2: Customer can post below text into formula text. It is mainly for call
‘GET_PLAN_BALANCE’ function. Any other requirement you can add by yourself.
Step 3: Make sure you compile successful.
l_hr_assignment_id = 0
IF ( ENTRY_LEVEL = 'AP') THEN
(
l_hr_assignment_id = TERM_HR_TERM_ID
)
ELSE IF ( ENTRY_LEVEL = 'PA') THEN
(
l_hr_assignment_id = ASG_HR_ASG_ID
l_plan_name ='ABS_BAT_PLAN' /* your accrual plan name, please correct the plan
name*/
call_formula('GET_PLAN_BALANCE',
l_hr_assignment_id > 'hr_assign_id' ,
l_plan_name > 'p_plan_name' ,
l_effective_date > 'p_effective_date' ,
accrual_bal < 'out_accrual_units' default 0)
l_log = PAY_INTERNAL_LOG_WRITE('[ABA_BAT_PROC_ACCRUAL_CALCULATOR] -
Accrual Unit Balance : '|| to_char(accrual_bal))
Step 5: Make sure you compile successful. Then run payroll check whether you
can get correct accrual balance.
/*******************************************************************************
* *
* *
* *
* DESCRIPTION: This formula will return the Accrual Unit from Absence *
* Accrual Balance *
* *
* *
* *
********************************************************************************/
Inputs are
hr_assign_id ,
p_plan_name (text),
p_effective_date (date)
l_accrual_units = 0
l_accrual_units = GET_PLAN_BALANCE(p_plan_name)
out_accrual_units = l_accrual_units
return out_accrual_units