Skip to Content
author's profile photo Former Member
Former Member

Schedule process chain 5th work day ofevery month (excluding if its Friday)

Hi Gurus,

Our Business wants to schedule process chain on 5th working day every month (excluding if its Friday).

We can schedule process chain on 5th working day every month usinf Factory calander, but how to exclude if its friday.

Regards,

NIx

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2011 at 11:18 AM

    Hi,

    Create a decision step in the process chain with a formula.

    if DATE_WEEKDAY1(WORKINGDAY_MONTH(CURRENT DATE,Factory calendar id,selected correct option)) NE 5 , execute the chain.

    Thanks,

    Suzitha

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 01:18 PM

    Hi..

    You want to schedule a Process chain on 5th of every month (excluding if its Friday)....

    Open the Chain in Planning mode ( RSPC or RSPC1) >> Right click on the Start Process >> Display variant >> Change Selections >> Click on Date/Time tab >> there click on Periodic Values Tab

    There Click on Other Period >> there in the Day(S) field enter 5.....

    Then Check and Save >> Again Check and Save .........

    Then in the Scheduled start field give the date when the Chain is going to run for the first time.............and Enter the time in the Time field....

    Then the Process chain will run on 5th of every Month...

    And if you don't want to execute the chain on 5th if it is a Friday...then create one Factory Calendar using the tcode : SCAL where declare Friday as a holiday.....

    Then beside Periodic values there is one tab called Restrictions --> Click there --> Give the Calendar id and choose the option Do not execute jobs on Sundays or Holid...........check and save..

    Also check the following Blog :

    /people/debjani.das/blog/2009/04/05/scheduling-process-chain

    Regards,

    Debjani.....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 21, 2011 at 06:29 AM

    Hi Debjani,

    The solution you have provided is usefull, but if i declare a new factory calander with Friday, Sat and Sun as holiday and if the 5th workday is on Friday it will treat the comming Monday as the 5th work day.

    I want that if the 5th workday is Friday then the process chain should not run for that

    month.

    Regards,

    Nix

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi....

      This is really a very good question.

      But one catch is there....5 doesn't mean 5th working day........5th may be working or holiday.......you will manipulate it by using the Factory Calendar......now if this 5th day is Friday and as per the calendar Friday is holiday.......then on that day the process chain will not run......

      Next monday is not 5th day of the month.............so the process chain will again run in the next month on day 5th provided it is again not a Friday....

      Regards,

      Debjani.......

  • author's profile photo Former Member
    Former Member
    Posted on Apr 20, 2011 at 12:27 PM

    Hi ,

    In the scheduling option of the Start Variant click on Tab ">>"

    select

    Factory Calendar - Choose the appropriate one from the options

    Workday - Mention as 5th Working Day

    Workday relative to : Select Begining of Month (which means 5th Working Day from the Begining of Month )

    Regards

    Garima

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Apr 25, 2011 at 09:32 AM

    Hi,

    I have made a decsion step with the formula

    if DATE_WEEKDAY1(Current Date)<>5

    AND

    WORKINGDAY_MONTH(CURRENT DATE,Factory calendar id,") = 5

    @Suzitha thanx for the help.

    Regards,

    Nix

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.