Deadlines and SAP Calendar
Vincze Árpád
Arpad.Vincze at itelligence.hu
Mon Dec 17 05:30:16 EST 2001
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?
=B7 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.=20
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.=20
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 .=20
My questions are the following:
=B7 This principal solution is the real solution or I am on wrong way?!
=B7 If it is the solution it seams to be a bit complicated and uses a
lot of resource.
=B7 The "optimal solution" would be, to execute your function or=20
OO method at the work item creation time which modifies the
deadlines,=20
like the standard latest end and etc...
So I ask you to write how this problem is solved by you?
Regards
Arpad
Vincze =C1rp=E1d
itelligence Hungary Kft.
H-1138 Budapest, V=E1ci =FAt 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 =3D '+'.
> ENDIF.
>
> CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
> EXPORTING
> CORRECT_OPTION =3D CORRECTION
> DATE =3D DATE_FROM
> FACTORY_CALENDAR_ID =3D FACTORYCALENDARID
> IMPORTING
>* DATE =3D
> FACTORYDATE =3D FACTORYDATE
>* WORKINGDAY_INDICATOR =3D
> EXCEPTIONS
> CALENDAR_BUFFER_NOT_LOADABLE =3D 1
> CORRECT_OPTION_INVALID =3D 2
> DATE_AFTER_RANGE =3D 3
> DATE_BEFORE_RANGE =3D 4
> DATE_INVALID =3D 5
> FACTORY_CALENDAR_NOT_FOUND =3D 6
> OTHERS =3D 7.
>
> IF NOT OFFSET IS INITIAL.
> FACTORYDATE =3D FACTORYDATE + OFFSET.
> ENDIF.
>
>* Convert the factory date into a normal calendar date
> CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
> EXPORTING
> FACTORYDATE =3D FACTORYDATE
> FACTORY_CALENDAR_ID =3D FACTORYCALENDARID
> IMPORTING
> DATE =3D DEADLINE
> EXCEPTIONS
> CALENDAR_BUFFER_NOT_LOADABLE =3D 1
> FACTORYDATE_AFTER_RANGE =3D 2
> FACTORYDATE_BEFORE_RANGE =3D 3
> FACTORYDATE_INVALID =3D 4
> FACTORY_CALENDAR_ID_MISSING =3D 5
> FACTORY_CALENDAR_NOT_FOUND =3D 6
> OTHERS =3D 7.
>
> if sy-sysid =3D 'BBD'.
> DEADLINE =3D 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/
More information about the SAP-WUG
mailing list