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

Looping to get the absence type count

12
Views
2
Comments
edited Oct 20, 2022 12:35PM in Workforce Management 2 comments

Summary: Below logic to check the specific absence type accurance for + 365 days and - 365 days


Content (required):


Version (include the version you are using, if applicable):


Code Snippet (add any code snippets that support your topic, if applicable):

l_absence_type_id = get_context(ABSENCE_TYPE_ID,0) /* get the ABSENCE_TYPE_ID of the user leave */

l_start_date = add_days(IV_START_DATE,-365)

l_end_date = add_days(IV_END_DATE, 365) /* you can get the IV_START_DATE and IV_END_DATE as FF input*/

change_contexts(START_DATE= l_start_date, END_DATE=l_end_date)

  (

     

l_index = ANC_PER_ABS_ENTRS_ABSENCE_ENTRY_ID_ARR.first(-1)

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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