cancel
Showing results for 
Search instead for 
Did you mean: 

Incisistent colors in Team Calender ESS/MSS

Former Member
0 Kudos

Dear all,

I have an issue with colors in the team calender.

In SET_CALENDER_COLOR I have indicated that a partial absence is shown in yellow (legend-legendid = 'TWO').

In SET_CALENDAR_LEGEND_COLORS I did the same (legend-legendid = 'TWO').

In TEAM_CALE_ENRICHMENT I did this (again assigned color 'TWO):

IF lw_timeoverview-regularhours > lw_timeoverview-absencehours and

lw_timeoverview-absencehours <> 0.

FREE lw_calendar_wa.

lw_calendar_wa-row_id = lw_timeoverview-employeenumber.

lw_calendar_wa-begda = lw_timeoverview-validitydate.

lw_calendar_wa-endda = lw_timeoverview-validitydate.

lw_calendar_wa-legendid = 'TWO'.

lw_request_wa-tooltip = text-003.

APPEND lw_request_wa TO lw_calendar_wa-request.

APPEND lw_calendar_wa TO ch_calendar_tab.

FREE lw_calendar_wa-request.

FREE lw_calendar_wa.

ENDIF.

The problem is, that in Personal Calender and the Legend the color is yellow, but in Team Calender it's green.

In fact, almost all colors I use in Team Calender result in no-color (but little squares in the centre of the cell).

Hope someone can point me in the right direction.

Thanks!

Marco

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

IF_EX_PT_ABS_REQ~SET_CALENDAR_COLOR#

Adjust Colors of Calendar and Team Calendar, I think you are aware

of this!

In the method IF_EX_PT_ABS_REQ~SET_CALENDAR_COLOR you specify what

color do you want.This will be with respect to the Legend.

And in the method IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS you

specify what color the legend specifies. This is set with respect to

RED,GREEN,BLUE. Combining this three basic colors the

rest of the color can be produced.

There are 16 colors. Please go through the class CL_PT_REQ_CONST.

For Eg: You want to display the Annual leave in the color with respect

to the legend C_COLOR_STANDARD. Then in the method

IF_EX_PT_ABS_REQ~SET_CALENDAR_LEGEND_COLORS you specify in the internal

table ch_legend_tab the exact color of

ch_legend_tab-COLORRED = C_COLOR_STANDARD_R.

ch_legend_tab-COLORBLUE = C_COLOR_STANDARD_G

ch_legend_tab-COLORGREEN = C_COLOR_STANDARD_B

ch_legend_tab-LEGENDID = C_COLOR_STANDARD

0 Kudos

Hi Siddharth,

we are facing the same issue in Quality server , can please explain me the process to rectify this issue.

Regards,

Appala Raju.

Answers (1)

Answers (1)

Lukas_Weigelt
Active Contributor
0 Kudos

Hi,

check these:

/thread/562894 [original link is broken]

hope any of these can resolve your issue

regards, Lukas