You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Using Loop in Fast Formula to add up DBI values for accrual formula

edited Jul 26, 2018 6:52PM in Workforce Management 3 comments

Content

We're using a fast formula to pull the hours an employee worked from an element. The element stores the hours in an array, I built this loop to add the hours in the array to the TOTAL_REG variable so we can use it to calculate the accrual.

 

 

I = 1

change_contexts(DATE_EARNED= l_effective_date)

 

WHILE (YH_REGULAR_TIME_ENTRY_HOURS_ENTRY_VALUE.EXISTS(I))Loop

 

(REG_HOURS = ( YH_REGULAR_TIME_ENTRY_HOURS_ENTRY_VALUE [I])

 

TOTAL_REG = TOTAL_REG + REG_HOURS

I = I+1

)

 

 

The code compiles just fine but when I run the accrual the system throws this error, '

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!