Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Incisistent colors in Team Calender ESS/MSS

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

Former Member
replied

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

Leave Request Team Calendar and Small White Box

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question