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

how to count only approved absences in the fast formula

Received Response
170
Views
2
Comments

Summary:


Content (required):

Hi Experts,

I have a requirement to write validation formula based on the number of absences taken. But the system is considering 'Denied' absences also in the count which is making the validation fail.

I have used below IF condition to exclude 'DENIED' and "WITHDRAWN' absences from the count.

if((ANC_ABS_TYP_NAME = 'Unpaid Leave') and ((ANC_ABS_ENTRS_ABSENCE_STATUS_CD <> 'ORA_WITHDRAWN') or (ANC_ABS_ENTRS_APPROVAL_STATUS_CD <> 'DENIED')))then

(

ln_duration = ln_duration + ANC_ABS_ENTRS_DURATION

)


Am I doing any mistake in the formula here? How do I exclude DENIED absences from the count?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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