Let's Reconnect, thank you for making 2022 our best year yet.

Look Back
Determine Weekend Days which are not Public Holidays — Cloud Customer Connect
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

Determine Weekend Days which are not Public Holidays

Received Response
35
Views
6
Comments

Summary:

Determine Weekend Days which are not Public Holidays 

Content (required):

We are having a requirement to check the weekends and public holidays based on the employee work schedule in our absence duration fast formula.


We are using the GET_PAY_VAILABILITY function for the same as below:


L_Availability_Days = GET_PAY_AVAILABILITY ('ASSIGN', /*lc_asg_resource_typ,*/

  L_Period_Start_Date,

  L_Period_End_Date,

'Y', /*lc_use_sch_asg_y*/

'Y', /*lc_use_sch_inh_y*/

'Y', /*lc_include_noshift_y*/

'Y', /*lc_include_calevents_y*/

'D')  /*lc_calc_units_d*/


The above code will return 0 for a day if this day is either weekend or public holiday. But we need it to return 0 only in case of Public Holidays, in other words we need the function to return 1 for the weekend days which are not public holidays.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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