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.

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.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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