Skip to Content
author's profile photo Former Member
Former Member

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.


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.



Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on May 30, 2011 at 03:36 PM


    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.


    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-LEGENDID = C_COLOR_STANDARD

    Leave Request Team Calendar and Small White Box

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 30, 2011 at 07:15 AM


    check these:

    /thread/562894 [original link is broken]

    MSS Team Calendar - Different colors for leave types

    Enhancement spot PT_ABS_REQ - BADi not being called

    ESS Portal change colours for weekends and public holidays

    hope any of these can resolve your issue 😕

    regards, Lukas

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.