Deadlines and SAP Calendar

J. Felipe Uribe Duque FelipeUribe at netscape.net
Wed Jan 9 14:47:29 EST 2002


Hi everybody,
 
We have made a very simple solution to solve the problem about using the SAP calendar for deadlines .
 
The solution is not using this calendar, the user in the front office is in charge to put the date in which the workitem has as a deadline, It means that the user has to calculate the date to put in to the variable according the calendar, and this date will be used by the workitem as a deadline.
 
Thank you all for your help, but some times We have to take the most simple solution and don4t take the hard way.
 
Regards.
 
Felipe Uribe
 
 
Vincze Arpad <Arpad.Vincze at itelligence.hu> wrote:
 
>Hi all,
>
>I apology myself, but for me the deadline control by factory calendar is an
>old problem, which is not solved yet in our productive system.
>
>I understand that one can compute the real deadline date which takes into
>account the given country factory calendar.
>In my interpretation this is the simpler part of problem.
>
>My question is how the modified deadline is realized?
>
>7     My principal solution is the following:
>
>I use the "normal" SAP deadline mechanism, which starts an escalation
>workflow at case of the missed deadline.
>The standard SAP deadline does not take into account the factory calendar so
>the sub escalation workflow will be started
> even on weekend or a national day.
>Here (in the sub escalation workflow) we can compute the new country
>dependent deadline date.
>After the new deadline date determination there is a check: Is this date is
>reached?
>If the deadline is not reached there is a wait workflow loop.
>This wait loop can be controlled by another work item having one-day
>deadline.
>At the case of missed deadline a message or work item or an  e-mail can be
>sent .
>
>
>My questions are the following:
>7     This principal solution is the real solution or I am on wrong way?!
>7     If it is the solution it seams to be a bit complicated and uses a
>lot of resource.
>7     The "optimal solution" would be, to execute your function or
>            OO method at the work item creation time which modifies the
>deadlines,
>             like the standard latest end and etc...
>
>
>So I ask you to write how this problem is solved by you?
>
>Regards
>
>                                        Arpad
>
>
>Vincze Arpad
>itelligence Hungary Kft.
>H-1138 Budapest, Vaci zt 141
>Tel.:   (+36 1) 452 3822
>Fax:    (+36 1) 452 3839
>arpad.vincze at itelligence.hu
>
>
>
>
>-----Original Message-----
>From: J. Felipe Uribe Duque [mailto:FelipeUribe at netscape.net]
>Sent: Thursday, December 13, 2001 11:49 PM
>To: SAP-WUG at MITVMA.MIT.EDU
>Subject: Re: Deadlines and SAP Calendar
>
>
>Hi Alon,
>
>I appreciate your help, I'll implement this method.
>
>I'll let you know how it works in our factory.
>
>Thanks a lot.
>
>Felipe Uribe.
>
>
>"Raskin, Alon (Soliance)" <ARaskin at cps-satx.com> wrote:
>
>>There is an object called FACTORYCAL. You could always sub-type it and
>>implement the method below. Both would work. I guess its just semantics.
>>(which in OO programming is important).
>>
>>Regards,
>>
>>
>>Alon Raskin
>>Workflow Advisor - Soliance
>>(xtn. 3183)
>>
>>-----Original Message-----
>>From: McKenney, Bill [mailto:Bill.McKenney at anheuser-busch.com]
>>Sent: December 13 2001 4:19
>>To: SAP-WUG at MITVMA.MIT.EDU
>>Subject: Re: Deadlines and SAP Calendar
>>
>>Hi Felipe,
>>I wrote a method in the business object and coded it as follows:
>ZOFFSET
>>is
>>set to 3 days in the container, just so we could change the number of
>>business
>>days by simply changing the container value.
>>
>>
>>
>>BEGIN_METHOD ZCALCDEADLINE CHANGING CONTAINER.
>>
>> DATA: FACTORYCALENDARID LIKE SCAL-FCALID,
>>       DATE_FROM LIKE SCAL-DATE,
>>       FACTORYDATE LIKE SCAL-FACDATE,
>>       CORRECTION LIKE SCAL-INDICATOR,
>>       DEADLINE LIKE SCAL-DATE,
>>       OFFSET TYPE I.
>>
>> SWC_GET_ELEMENT CONTAINER 'ZFactoryCalendarID' FACTORYCALENDARID.
>> SWC_GET_ELEMENT CONTAINER 'ZDate_from' DATE_FROM.
>> SWC_GET_ELEMENT CONTAINER 'Zcorrection' CORRECTION.
>> SWC_GET_ELEMENT CONTAINER 'ZOffset' OFFSET.
>>
>> IF CORRECTION IS INITIAL.
>>   CORRECTION = '+'.
>> ENDIF.
>>
>> CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
>>       EXPORTING
>>          CORRECT_OPTION        = CORRECTION
>>          DATE                  = DATE_FROM
>>          FACTORY_CALENDAR_ID   = FACTORYCALENDARID
>>       IMPORTING
>>*         DATE           =
>>          FACTORYDATE           = FACTORYDATE
>>*         WORKINGDAY_INDICATOR  =
>>       EXCEPTIONS
>>          CALENDAR_BUFFER_NOT_LOADABLE = 1
>>          CORRECT_OPTION_INVALID       = 2
>>          DATE_AFTER_RANGE             = 3
>>          DATE_BEFORE_RANGE            = 4
>>          DATE_INVALID                 = 5
>>          FACTORY_CALENDAR_NOT_FOUND   = 6
>>          OTHERS                       = 7.
>>
>> IF NOT OFFSET IS INITIAL.
>>   FACTORYDATE = FACTORYDATE + OFFSET.
>> ENDIF.
>>
>>*  Convert the factory date into a normal calendar date
>> CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
>>       EXPORTING
>>          FACTORYDATE          = FACTORYDATE
>>          FACTORY_CALENDAR_ID  = FACTORYCALENDARID
>>       IMPORTING
>>          DATE                 = DEADLINE
>>       EXCEPTIONS
>>          CALENDAR_BUFFER_NOT_LOADABLE = 1
>>          FACTORYDATE_AFTER_RANGE      = 2
>>          FACTORYDATE_BEFORE_RANGE     = 3
>>          FACTORYDATE_INVALID          = 4
>>          FACTORY_CALENDAR_ID_MISSING  = 5
>>          FACTORY_CALENDAR_NOT_FOUND   = 6
>>          OTHERS                       = 7.
>>
>> if sy-sysid = 'BBD'.
>>   DEADLINE = DATE_FROM.
>> endif.
>>
>>* Set the deadline parameter to date calculated
>> SWC_SET_ELEMENT CONTAINER 'ZDeadline' DEADLINE.
>>
>>END_METHOD.
>>
>>
>>The container elements were:
>>
>>ZOFFSET         3
>>ZCORRECTION             +
>>ZDATE_FROM              &REQREQ.CREATEDATE&
>>ZFACTORYCALENDARID              US
>>
>>
>>
>>This resulted in a deadline date of 3 workdays.
>>
>>Hopes this helps.
>>
>>Bill McKenney
>>B2B Team
>>PPR - 1CC-10 [mailto:bill.mckenney at anheuser-busch.com]
>>> * (314)589-7917         * (314)589-7787
>>>
>>
>>
>>-----Original Message-----
>>From: J. Felipe Uribe Duque [mailto:FelipeUribe at netscape.net]
>>Sent: Thursday, December 13, 2001 3:19 PM
>>To: SAP-WUG at MITVMA.MIT.EDU
>>Subject: Deadlines and SAP Calendar
>>
>>
>>Hi everyone,
>>
>>Web  re creating a Workflow in which Ib  m using deadlines to control the
>>time
>>per each user. Te question is regarding to the SAP calendar, does this
>>deadlines
>>the way to control the time using the calendar defined in SAP, i.e. If I
>set
>>in
>>the task the b  Latest endb   tab with 4 days and the workflow is started
>on
>>Friday, how could I set it up to donb  t  include Saturday and Sunday as
>>working
>>days?.
>>
>>Tanks a lot for any suggestions
>>
>>Felipe Uribe
>>
>>
>>
>>
>>
>>--
>>
>>
>>
>>
>>__________________________________________________________________
>>Your favorite stores, helpful shopping tools and great gift ideas.
>>Experience
>>the convenience of buying online with Shop at Netscape!
>>http://shopnow.netscape.com/
>>
>>Get your own FREE, personal Netscape Mail account today at
>>http://webmail.netscape.com/
>>
>--
>
>
>
>
>__________________________________________________________________
>Your favorite stores, helpful shopping tools and great gift ideas.
>Experience the convenience of buying online with Shop at Netscape!
>http://shopnow.netscape.com/
>
>Get your own FREE, personal Netscape Mail account today at
>http://webmail.netscape.com/
>
--
 
 
 
 
__________________________________________________________________
Your favorite stores, helpful shopping tools and great gift ideas. Experience the convenience of buying online with Shop at Netscape! http://shopnow.netscape.com/
 
Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/
 


More information about the SAP-WUG mailing list