cancel
Showing results for 
Search instead for 
Did you mean: 

Leave Request Team Calendar and Small White Box

former_member552974
Participant
0 Kudos

Hello Everyone,

I am attempting to adjust the team calendar colors in Leave Request using the method TEAM_CALE_ENRICHMENT of BADI CL_PT_ARQ_REQ. When I set the LegendID field of table CH_CALENDAR_TAB, I am getting a small white box in the Web Dynpro Team Calendar View. Does anyone know how to get the Team Calendar to not show this box and to correctly show the color? I noticed a post from a couple of years ago with this same topic, but no solution was entered.

https://forums.sdn.sap.com/click.jspa?searchID=24695594&messageID=4366488

Also, I was successfuly in adjusting the colors of the calendar (not team calendar) using the method SET_CALENDAR_COLOR.

Any ideas on how to properly change colors in the Team Calendar?

Best Regards,

Scott

Accepted Solutions (1)

Accepted Solutions (1)

siddharthrajora
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

former_member552974
Participant
0 Kudos

Hi Siddarth,

Ahhhh....That's what the three color fields of the CH_LEGEND_TAB in the method SET_CALENDAR_LEGEND_COLORS are for. Once the values of those three fields were properly set, viola...everything appeared as it should.

Thank you.

Scott

bhakti2
Active Participant
0 Kudos

Hi Scott, Siddharth,

I have very same problem and tried same thing in legend colors method

but stil no luck

kindly help

thanks

bhakti

Answers (0)