For more information, please refer to this announcement explaining best practices for getting answers to questions.
Determine Weekend Days which are not Public Holidays
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.