cancel
Showing results for 
Search instead for 
Did you mean: 

Change calendar start time and also show from Sunday-Saturday

Former Member
0 Kudos

HI All,

Is there any way to have the calendar in CRM show from 7am-6pm instead of 8am-6pm? I can't seem to find a way to do this. Also can I change the week calendar to show Sunday-Saturday instead of Monday-Sunday?

thanks,

Tom

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

HI Hongyan,

Thanks for your help. It pointed me in the direction of the chtmlb tag for calendar_daily. It has a parameter of calendar_begin to give the starting time. Just wish the starting day for the week will be as easy.

Thanks,

Tom

hongyan_shao
Active Contributor
0 Kudos

Hi Tom,

Your info helps me a lot also.

Especially for your second question about start day of the week.

There is also an attribute for the chtmlb tag for dateNavigator: firstDayOfWeek.

When tracing this attribute, I found that in current standard system, this is effected by a badi.

Badi definition: CALENDAR_DEFINITION

Current standard implementation class: CL_ISO_CALENDAR_DEFINITION

method IF_CALENDAR_DEFINITION~GET_FIRST_DAY_OF_WEEK

coding is

weekday = if_calendar_definition=>c_monday.

You may try to change it to

if_calendar_definition=>c_sunday

Regarding your comments "Just wish the starting day for the week will be as easy", this requirement has been raised to product management team in 2008. But don't know when it will be realized. 😛

Hongyan

Former Member
0 Kudos

Hi Tom,

SAP Note 1158474 exactly describes the same as told by Hongyan relating to your question of changing the starting day of week.

Regards,

Susanta

Answers (3)

Answers (3)

Former Member
0 Kudos

Where exactly do you make this change?

thank you

nancy

Former Member
0 Kudos

HI Susanta,

Thanks for the note. I just had to implement the enhancement spot from the note and then the calendar changed.

Regards,

Tom

hongyan_shao
Active Contributor
0 Kudos

Hi Tom,

For the time in the calendar day view, I made some analyzing, you may see that it is hard coded in

CL_CHTMLB_CALENDAR_DAY

IF_BSP_ELEMENT~DO_AT_BEGINNING

  • visible period of calendar (e.g. from 08:00 to 17:00 ).

CONVERT DATE me->reference_date TIME me->calendar_begin INTO TIME STAMP gv_calendar_begin TIME ZONE me->tzone.

CONVERT DATE me->reference_date TIME me->calendar_end INTO TIME STAMP gv_calendar_end TIME ZONE me->tzone.

It is hard coded to do it from 8 to 17.

Maybe you can see to it to see if any chance to change this.

Regarding show Sunday-Saturday, let me try to check tomorrow if I don't forget. 😛

Hongyan