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 with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

For more information, please refer to this announcement explaining best practices for getting answers to questions.

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!