cancel
Showing results for 
Search instead for 
Did you mean: 

How to define Half day public holiday

Former Member
0 Kudos

Hi Team,

We want to define half day public holiday(PH) on 24th dec and 31st dec. In this case we tried defining public holiday by putting 2 in holiday class and assigning it to holiday calendar and then generated WSR. Still 24th and 31st is not getting considered as PH.

In our case 24th dec will be half day PH), 25th dec & 26th dec is full day PH, 31st is half day.

We got one case where in user applied leave from 22.12.2014 to 31.12.2014 and total number of absence days is shown as 6, whereas it should be 5 days.

Please suggest how to define half day public holiday.

Please give your input as this is urgent issue to be looked into.

Thanks

PP.

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member182306
Active Contributor
0 Kudos

please go through below thread

http://scn.sap.com/communications

vianshu
Active Contributor
0 Kudos

Hi Parag,

Are your public holidays specific to religion?

Can you please share screenshot of your public holiday configuration for 24-Dec and 31-Dec?

Regards,

Vivek

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag

Using Holiday Class 2 is the correct way of configuring half day public holiday.

If the user has booked leave from 22.12.2014 to 31.12.2014 and considering you have Sat-Sun as OFF days, the absence days is correctly counted as 6

22.12.2014 - 1day

23.12.2014 - 1 day (total 2 days)

24.12.2014 - 0.5 day (total 2.5 days)

26.12.2014 - 1 day (total 3.5 days)

29.12.2014 - 1 day (total 4.5 days)

30.12.2014 - 1 day (total 5.5 days)

31.12.2014 - 0.5 day (total 6 days)

Is your roster something different? How are you calculating the 5 days?

Former Member
0 Kudos

Leave and PH are like this

22.12.141 day
23.12.141 day
24.12.140.5 day
25.12.14PH
26.12.14PH
27.12.14off
28.12.14off
29.12.141 day
30.12.141 day
31.12.14

0.5 day

 

Please check and help me.

vianshu
Active Contributor
0 Kudos

Hi Parag,

I see that the day type for 24-Dec and 31-Dec is blank and hence, it is counting that day.

Can you please share your selection rule for day type for the WSR ? You will find the selection rule in Table V_T508A.

Then go to Day type in configuration and send me the screenshot of the selection rule for day types.

I think the issue may be there.

Thanks and regards,

Vivek Barnwal

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag

Here is the solution for the scenario.

Below is an example of how your day with Holiday Class 2 is looking like currently.

What you need to do to have half day working hours deducted for this day is to configure the counting rule for Holiday class 2. You will have to create a counting rule with 2 sequential numbers. One would be the counting rule for any other normal day and the other would be for Holiday Class 2. For the one with HClass 2 you would have to give quota multiplier as 50%.

Once you do this, only half day absence would be deducted from the quota.

Hope this helps

Former Member
0 Kudos

Hi Shruti,

Where should i assign this counting rule, i mean to my absence type or PH?

If it is to absence type then how can i do that, as my leave type is only one "15 years Jublie".

Does it mean that i will have to create two different leave type? Im not very clear as what to do and how to assign 2 counting rule to one leave type.

Please help.

Thanks

PP

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag

If you check my screenshot again, the counting rule is the same, you just have to create 2 sequential numbers for it.

This counting rule would then be assigned to the absence you are booking. This rule would ensure that all your other regaular absences are booked in the normal way considering full day off. Only incase of Holiday Class 2 where you want to give half day public holiday it would deducted half day. Try this out in the system and then let me know if you need further understanding.

Former Member
0 Kudos

Hi Shruti,

I created 2 counting rule as you said (screen shot attached). My question which one to select while assignign it public holiday(plz check screen shot). I m confused in that. please help

Former Member
0 Kudos

Dear Parag,

Apart from what Shruti said, you can create a DWS variant(4 hrs) for half day leaves and generate the work schedule (pt01). This will take care of Overtime (after 4 hrs), Swipe data check (if exists) etc

Thanks,

Anantha

ShrutiJoshi
Active Contributor
0 Kudos

Select the first. The system would automatically navigate through all sequence numbers for that counting rule

Former Member
0 Kudos

Hi Shruti,

I did that, but what happening is it is showing payroll days as 5 and still absence days are coming as 6.

Plz check screen shot.

Plz suggest me.

Thanks

PP

vianshu
Active Contributor
0 Kudos

Hi Parag,

I had earlier asked you to check your Day Type Selection Rule.

The day type for 24-Dec and 31-Dec is appearing as blank. It should appear as 1.

Can you send me screenshot of your day type selection rule?

Thanks and regards,

Vivek

vianshu
Active Contributor
0 Kudos

Hi Parag,

I had earlier asked you to check your Day Type Selection Rule.

The day type for 24-Dec and 31-Dec is appearing as blank. It should appear as 1.

Can you send me screenshot of your day type selection rule?

Thanks and regards,

Vivek

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag,

You must be having rounding rule for absences set in your system so it is showing 6 days of absence. What is more important is that the leave booked should deduct the quota appropriately i.e. for 5 days in your case. Did you check if that is happening correctly since your payroll days are now showing as 5?

Former Member
0 Kudos
vianshu
Active Contributor
0 Kudos

Thank you Parag. So your day type selection rule is 01.

Can you please give me screenshot of table T553A where 01 is defined? We may have to tinker this rule and then generate the WSR.

Thanks and regards,

Vivek

Former Member
0 Kudos
vianshu
Active Contributor
0 Kudos

Hi Parag,

Please change the rule 01 as shown below:

Currently, in your configuration, you are assigning day type as blank for public holiday with public holiday class 2.

Once you do the configuration as shown in the screenshot above, it will assign day type 1 for public holiday with public holiday class 2.

Please make this change and then test.

I hope this will resolve your issue.

Thanks and regards,

Vivek

vianshu
Active Contributor
0 Kudos

Kindly do re-generate your WSR for the period after making this change in rule 01.

Regards,

Vivek Barnwal

Former Member
0 Kudos

Hi Vivek,

I did changes suggested by you and regenerated WSR. Still absence days are coming as 6, whereas it should come 5.

Plz suggest.

Thanks

PP

Former Member
0 Kudos

Hi Vivek,

After doing changes suggested by you, i observed below thing in my WSR.

Plz correct where im going wrong.

Thanks

PP

vianshu
Active Contributor
0 Kudos

Have you kept the same counting rule configuration as suggested by Shruti?

Creating a counting rule with sequence no. for public holiday class 2.

Regards,

Vivek Barnwal

vianshu
Active Contributor
0 Kudos

Hi Parag,

What you see is correct. Public Holiday Class 2 says that the date is a half day public holiday. Day Type 1 means that the employee is eligible for half day public holiday.

Hence, this is fine.

I wish to understand if you have made your counting rules as suggested by Shruti.

Please advise.

Thanks and regards,

Vivek Barnwal

Former Member
0 Kudos

Hi,

Yes, i have created same counting rule as suggested by Shruti.

What else can be wrong here.

Thanks

PP

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag,

Isnt your quota getting deducted by 5 days when you book that leave? Did u check that? If yes then the issue as such is resolved.

However, if you want to see the absence days also as 5 only then you check if there is any rounding rule for absence defined in the system because of which the absence days are getting counted as round figure instead of half day.

Check Time Management --> Time Data Recording and Administration --> Absences --> Absence Catalog --> Absence Counting --> Rules for Absence Counting (New) --> Define Rules for Rounding Counted Absences

Under this node you can define a rounding rule to count the absence as 0.5 and assign this rounding rule in your counting rule. Try it out.

Former Member
0 Kudos

Hi Shruti & Vivek,

I did all changes as suggested by you. Now what is happening that system is calculating 4 days of absence from 22.012.2014 to 31.12.2014, instead of 5.

Below are my rounding rule config, IT2001 screen shot and absence type creation.

Please check and suggest.

Thanks

PP

ShrutiJoshi
Active Contributor
0 Kudos

Restore your rule for day types (01) as it was earlier and regenrate your WSR. So the day would again show as HClass=2 and Day Type=Blank. Currently since the day type is showing as 1, it is taking it as full off. It should hopefully resolve now as I had configured the same scenario in my system and it worked. All the Best

Former Member
0 Kudos

Hi Shruti,

I did above changes what you said, but still absence days is coming as 4 now.

Please tell me what wrong i am doing.

Help me

Thanks

PP

ShrutiJoshi
Active Contributor
0 Kudos

Did you revert the rule for day types (remove 1 from the HClass 2 position) and regenerate the WSR? Your rule for day types should look like it was before:

Former Member
0 Kudos


Hi Sruthi

Could you suggest me why you have checked the sat & Sun if so they are counted as absence rit but in the aboveit  requirement  sat and sun are  week off rit

Regards

Girish

ShrutiJoshi
Active Contributor
0 Kudos

Hi Girish

They had their rule for day types set like this initially itself. So I had only asked him to revert to how it was earlier. As Saturday/Sunday are off, this rule would not count them as absences as the "Planned hours = 0" field in the counting rule is unchecked. Since these would have their planned hours as 0, the counting rule would fail and they would not be counted as absences.

Former Member
0 Kudos

Hi Sruthi

Can we define daytypes for weekdays  ??? or only for saturdays only

ShrutiJoshi
Active Contributor
0 Kudos

Hi Girish

The rule for day types is defined for weekdays, Saturdays and Sundays. It works the same for any of the weekdays but different rules can be assigned for Saturday and Sunday.

Former Member
0 Kudos


Sruthi

Pls share some eg if you have on daytypes for eg

1) for 1st and 2nd saturday we create  Dy.week day1111111 ;Dy.Satd: 1 31111 Dy.Sund: 1111111

2)  for  a week day like in the above eg 24th and 31th Dec half day which falls on week day how do we create  Day types  T553A ;T553S table

ShrutiJoshi
Active Contributor
0 Kudos

Hi Girish

1. Below are examples of rules for day types.

2. In this issue, an absence was being booked on a half day and it was required that only half day absence quota should get deducted. So here the day type need not be changed. It can stay as 0. What we can do here is that set the Holiday Class for these days as 2 and then for this in the counting rule set the quota multiplier as 50% so that half day absence is deducted. However, this is the case for absences.

If you want to have any normal working day as half day then you can simply create a different DWS for it or a variant.

Former Member
0 Kudos

Shruti

You mean like if an absence is booked on half day public holiday we need to follow the day type  rule 02??? what does the Rule 01  &  02  mean when do we use them ? ??

Dy week day: 1 1111111 what does this emphasize

vianshu
Active Contributor
0 Kudos

Hi Shruti,

May be you can create a document on this for the benefit of everyone since you have already tested this solution.

In this way, there will always be a ready reconker for this in SCN and it will also resolve Girish's issue and close this thread.

Regards,
Vivek

ShrutiJoshi
Active Contributor
0 Kudos

Good idea Vivek....Will make one for this soon.

Former Member
0 Kudos

Hi Shruti,

I reverted my day type and also checked my rounding rule, but still absence days are coming now as 4 days.

attaching screen shot.

Thanks

PP

ShrutiJoshi
Active Contributor
0 Kudos

Parag

After you changed your rule for day types, did you regenerate your WSR? If not done, please do so.  I think it might still be showing 24th and 31st as Day Type 1 and thats why you are getting 4 days of absence.

Former Member
0 Kudos

Hi

Please share me any document or PPT on PA module

Regards

Kumar

Former Member
0 Kudos

Hi Shruti,

I regenerated WSR and now day type is coming as 2.

Thank

PP

ShrutiJoshi
Active Contributor
0 Kudos

Hi Parag

That sounds weird. How can day type come as 2 if you have saved the rule for day types as per the screenshot in your post above. Did you mean that Holiday class is coming as 2 and Day Type as blank?

Moreover, I had done some research around this and found that the field of Absence days (P2001-ABWTG) gets populated by the system itself and not our config. We have control over the absence hours which are deducted and I believe that was coming fine for your case after setting up the 50% counting rule.

Former Member
0 Kudos


Yes, HC is coming as 2 and day type is blank,

Also in my case absence hours is coming as 34 hrs, where as it should come as 42hrs.

Rgds