cancel
Showing results for 
Search instead for 
Did you mean: 

How can I assign Factory Calendar to a USER?

deepali_agarwal
Participant
0 Kudos
565

Hello,

How can I assign Factory Calendar to a USER in CRM 2007?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Factory calander can be assign to any user based onto the Date Profile.Within the date profile we have elements as Reference objects,Date rule,Date type and duration.The concept is that durations use the Reference Objects to schedule or calculate which date is working or non working.

You need to maintain a Date Type (Reference Object and Date Rule) and thereafter goto Durations and maintain the same Reference Object as used in Date Type.

May be this helps you as Durations in Date Profile use the Reference Objects in order to calculate the date or factory calander ( Working and Non working dates).

deepali_agarwal
Participant
0 Kudos

Thanks Conte,

I've done all config for Date profiles, Reference object, Date rule and date types.

My question is where do I assign Factory Calendar so that my reference object uses that Factory Calendar to make date calculations?

Thanks,

Former Member
0 Kudos

Hi Deepali,

Please have a look at the OSS Note 675647 - Use of factory calendars in Date calculations. This describes the process to assign Factory Calendar.

Regards,

Deepak

deepali_agarwal
Participant
0 Kudos

Thanks Deepak,

I've seen that note. I was just wondering if there is any way without the BADI implementation....

But this is the way we are going forward now so I'll close this thread.

Thanks all,

Former Member
0 Kudos

Hi Deepak ,

I have implemented  OSS Note 675647 - Use of factory calendars in Date calculations.

I have created refernce object ZFACTCAL and assigned inTask  Date type . It is working fine in task date calculation as per factory calendar and holiday calendar .

but it is not working for other Z transaction type ( Service request, complain, lead , opportunity)  where standard refernce object is assigned

Following is my code in Method IF_EX_CRM_TIMEZONE_BADI~GET_TIMEZONE

.

   CASE iv_ref_object.

      WHEN 'ZFACTCAL' OR 'ACTIVITY'

            OR 'CUSTOMER' OR 'SERWI'

            OR 'SHIP_TO' OR 'SYSTEM'

            OR 'USER'.

        ev_calendar = 'IN'.

      WHEN 'ZCRCFACTCAL'.

        ev_calendar = 'Z2'.

      WHEN 'ZCALLFACTCAL'.

        ev_calendar = 'Z1'.

    ENDCASE.

  ENDMETHOD.

Please guide .

Thanks & Regards,

Anup Reche

Former Member
0 Kudos
deepali_agarwal
Participant
0 Kudos

Thanks Shiven,

This shows how to assign calendar to a user via his Business Workplace'. I need to use factory calendar with the USER reference object in date profile. I've assigned it here but the reference object is not considering it. Is there any other place where you assign a calendar to a user?

Thanks.