0% found this document useful (0 votes)
263 views2 pages

Use GET VALUE SET in Calculated Ratings Fast Formula

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
263 views2 pages

Use GET VALUE SET in Calculated Ratings Fast Formula

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Use GET_VALUE_SET in calculated ratings fast

formula

Steps to create the value set, for example, to get the hire date for a worker assignment
(Navigation: FSM > Manage Value Set)

1.
2.

3. Use the above value set in the calculated ratings Fast formula

DEFAULT FOR HRA_EVAL_FC_ASSIGNMENT_ID IS 0


L_RETURN_VALUE=0
/*get the current date*/
L_SYS=GLOBAL_PAY_INTERFACE_EXTRACTION_DATE
L_SYS_DATE=to_date(L_SYS,'YYYY/MM/DD')
/*get value set*/
L_PARAM='|=ASSIGNMENT_ID='||TO_CHAR(HRA_EVAL_FC_ASSIGNMENT_ID)
L_VS=GET_VALUE_SET('SSS_VS1',L_PARAM)
L_VS_DATE=TO_DATE(L_VS,'DD/MM/YYYY')
HIRE_MONTH=MONTHS_BETWEEN(L_SYS_DATE,L_VS_DATE)
L_RETURN_VALUE=1
IF HIRE_MONTH <= 120 THEN
(
L_RETURN_VALUE = 4
)
ELSE IF HIRE_MONTH > 120 THEN
(
L_RETURN_VALUE = 5
)
RETURN L_RETURN_VALUE

You might also like