Deadlines based on factory calendar - is The Book wrong?

Alon Raskin araskin at 3i-consulting.com
Mon Oct 2 18:15:58 EDT 2006


Paul,

You may want to check out Function Module BKK_ADD_WORKINGDAY (if you
have it in your system).


Alon Raskin

 

-----Original Message-----
From: sap-wug-bounces at mit.edu [mailto:sap-wug-bounces at mit.edu] On Behalf
Of Paul.Bakker at osr.treasury.qld.gov.au
Sent: 02 October 2006 18:09
To: SAP Workflow Users' Group
Subject: RE: Deadlines based on factory calendar - is The Book wrong?

WUG Experts,

Thank you very much for all your valuable comments on the factory
calendar
/ deadline problem.

I am going to go ahead and code the solution that was suggested :
increment
one WORKING day at a time, until the deadline offset is reached. I will
share the code with you once it's bedded down.

At first I didn't grasp the distinction that Kjetil made between short
and
long deadlines, but now I get it. A deadline specified in DAYs should be
interpreted as working days, whereas a deadline specified in MONTHS or
YEARS would not be.

thanks again - this group is great!
Paul



|---------+---------------------------->
|         |           "Kjetil Kilhavn" |
|         |           <KJETILK at statoil.|
|         |           com>             |
|         |           Sent by:         |
|         |           sap-wug-bounces at m|
|         |           it.edu           |
|         |                            |
|         |                            |
|         |           28/09/2006 18:30 |
|         |           Please respond to|
|         |           "SAP Workflow    |
|         |           Users' Group"    |
|         |                            |
|---------+---------------------------->
 
>-----------------------------------------------------------------------
---------------------------------------------------|
  |
|
  |       To:       "SAP Workflow Users' Group" <sap-wug at mit.edu>
|
  |       cc:
|
  |       Subject:  RE: Deadlines based on factory calendar - is The
Book wrong?                                             |
 
>-----------------------------------------------------------------------
---------------------------------------------------|




Hmmmm... I looked a little more at the code in the presentation
(embedded text file), and it looks like it is exactly the same solution
as the appendix in the book.

However, there is one thing that makes me wonder about your requirement.
You say that not only should the deadline be a working day, but only
working days should be taken into account. It may make some sense for
very short deadlines, e.g. a two-day deadline, but should a 15-day
deadline be a three-week deadline? In the worst case (I don't know what
options the standard function modules give you) you will have to loop
over every date in the range and check if it is a working day or not.
--
Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP


> -----Original Message-----
> From: Kjetil Kilhavn
> Sent: 28. september 2006 10:14
> To: 'SAP Workflow Users' Group'
> Subject: RE: Deadlines based on factory calendar - is The Book wrong?
>
> I think this has been discussed several times before (have
> you searched the archives?) in this group, but I can't recall
> if anyone has had quite the same requirements as you.
>
> I have attached a PDF file (can't remember where I got it,
> whether it was in this group or perhaps on ASUG's site) with
> another implementation, and a PowerPoint file with an
> implementation that seems to be exactly what you want.
>
> If you find none of these match your needs than please create
> the ultimate solution and share it with the rest of us.
> --
> Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP
>
>
> > -----Original Message-----
> > From: sap-wug-bounces at mit.edu
> > [mailto:sap-wug-bounces at mit.edu] On Behalf Of
> > Paul.Bakker at osr.treasury.qld.gov.au
> > Sent: 28. september 2006 09:13
> > To: sap-wug at mit.edu
> > Subject: Deadlines based on factory calendar - is The Book wrong?
> >
> > Hello all,
> >
> > We have a requirement to calculate the deadline for a
> > workitem (eg Latest
> > Start) based on the Factory Calendar.
> >
> > For example, if the workitem was created on a Thursday and
> > the 'Latest Start' deadline is +3 days, then it should be
> > triggered on the following Tuesday (not Sunday). In other
> > words, it should only take working days into account.
> >
> > Surprisingly, SAP standard does not cater for this scenario.
> > I therefore implemented the solution suggested in the The
> > Book, in Appendix A9. It shows you how to create a custom
> > deadline object based on the factory calendar, and use the
> > expression ZDEADLINE.DATE as the reference date in the step.
> >
> > Surprisingly (again), this solution DOES NOT work. Deadlines
> > are triggered without taking weekends into account.
> >
> > When I had a closer look at it, I noticed that the Factory
> > Calendar is only being used to determine the Workitem
> > _Creation Date_; it is not being used to calculate the Latest
> > Start Date. The book even seems to concede this:
> >
> >       "Note that the reference date gives the date based on
> > the factory calendar, but any offset will simply be added to
> > the reference date as normal".
> >
> > If this really is the case, then what is the point of
> > implementing this solution?
> >
> > Has anyone gotten it to work? I'm sure it must be me... sigh.
> >
> > cheers
> > Paul
> >
> >
> > **************************************************************
> > **************************************************************
> > **************************
> >
> > Only an individual or entity who is intended to be a
> > recipient of this e-mail may access or use the information
> > contained in this e-mail or any of its attachments.  Opinions
> > contained in this e-mail or any of its attachments do not
> > necessarily reflect the opinions of Queensland Treasury.
> >
> > The contents of this e-mail and any attachments are
> > confidential and may be legally privileged and the subject of
> > copyright.  If you have received this e-mail in error, please
> > notify Queensland Treasury immediately and erase all copies
> > of the e-mail and the attachments.  Queensland Treasury uses
> > virus scanning software.  However, it is not liable for
> > viruses present in this e-mail or in any attachment.
> >
> > **************************************************************
> > **************************************************************
> > **************************
> >
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
> >


-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of
the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and
delete
this message.
Thank you.

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug



_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug




More information about the SAP-WUG mailing list