cancel
Showing results for 
Search instead for 
Did you mean: 

Additonal colors to be added in Team calendar

rajasekhar_reddy3
Active Contributor
0 Kudos

Dear All,

                   

Now in the Team calendar & Employee calendar all the public holidays are coming in yellow color.

But we have requirement with different type of holidays , All the national holidays are maintained with holidays class "1" in SCAL and other festival holidays are maintained with holiday class "3".

Now we want Holiday class "1" to be shown in team calendar as Yellow color and Holiday class 3 as some different color.

We have checked the BADI PT_ABS_REQ

The below method are working based on leave request status and type of leave , but we want to default the team & employee calendar  color based on the holiday class

IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS    Adjust Legend for Calendar and Team Calendar

IF_EX_PT_ABS_REQ~SET_CALENDAR_COLOR    Adjust Colors of Calendar and Team Calendar

Please help

Regards,

Raja Sekhar

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

have you applied note 1675831

METH CL_HRESS_CIN_OUT_CORRECTIONS

     GET_PUBLIC_HOLIDAY?

Badi PT_ABS_REQ can be used to influence the colors as you indicated

BADI HRESS_B_TEAM_CALENDAR_ENH >> for travel legend

like this is possible as you say

According to holiday classes, the logic should be the following:

If no holiday class -> no holiday in the calendar (no colour)

Days with class 1   > yellow in LEA calendar

Days with class 2   > this is partially working day. It cannot ble

flagged as a holliday (no colour)

Days with class 3 to 9   > these are customer spesific. We use them for

other partially working days. Cannot be flagged as holiday either (no

colour).

You should write this code

Answers (0)