Hi
I have three Grades: Gr 1 Gr 2 and Gr 3.
Using the below codes, I thought system will populate values for all the three Grades. However, system calculated only for Grade 1 and did not calculate for other Grades. Looks like it is not looping. Any idea?
*LOOKUP HCM_RATE
*DIM R_ENTITY="GLOBAL"
*DIM SALARY_RATE:HCM_SALARY_TYPE = "SALARY"
*DIM BONUS_RATE:HCM_SALARY_TYPE = "BONUS"
*DIM HOUR_PAY_RATE:HCM_SALARY_TYPE = "HOURLY_PAY"
*DIM BENEFITS_RATE:HCM_SALARY_TYPE = "BENEFITS"
*DIM ONCOSTS_RATE:HCM_SALARY_TYPE = "OTHER_ONCOSTS"
*ENDLOOKUP
*WHEN HCM_ACCOUNT
//Employed Staff
*IS HEADCOUNTS
*WHEN HCM_GRADE
*REC(EXPRESSION=%VALUE%*LOOKUP(SALARY_RATE), HCM_ACCOUNT="SALARY")
*REC(EXPRESSION=%VALUE%*LOOKUP(BONUS_RATE), HCM_ACCOUNT="BONUS")
*REC(EXPRESSION=%VALUE%*LOOKUP(SALARY_RATE)*.09, HCM_ACCOUNT="Superannuation")
*REC(EXPRESSION=%VALUE%*LOOKUP(BENEFITS_RATE), HCM_ACCOUNT="BENEFITS")
*REC(EXPRESSION=%VALUE%*LOOKUP(SALARY_RATE)*.0025, HCM_ACCOUNT="COMPENSATION")
*REC(EXPRESSION=%VALUE%*LOOKUP(SALARY_RATE)*.05, HCM_ACCOUNT="PAYROLL_TAX")
*REC(EXPRESSION=%VALUE%*LOOKUP(SALARY_RATE)*.039, HCM_ACCOUNT="LEAVE_PROV")
*REC(EXPRESSION=%VALUE%*LOOKUP(ONCOSTS_RATE), HCM_ACCOUNT="OTHER_ONCOSTS")
/
*ENDWHEN
*ENDWHEN
*COMMIT
Regards
SAP BOSS