AppWorx, Dollar Universe and Sysload Community

 View Only
  • 1.  How to: make a $U Task run at a different launch time on a specific day in the month

    Posted Sep 22, 2020 01:15 PM
    Hi $U Community,

    I'm wondering whether we have tips to fulfill that business request :

    The context : our $U Task (billing - invoices printing) runs daily at 07:30 CET. However, on a specific day of each month, this Task must run before midnight CET (it's a question of date -> that day, the printed date on the invoices must be the current day, not Day +1).

    This specific day in the month is defined that way : <last working day of the month> -[5 working days]
    e.g.:
    Sept 2020: 24/09/20
    Oct. 2020: 23/10/20
    Nov. 2020: 24/11/20
    Dec. 2020: 24/12/20
    Jan. 2021: 22/01/21


    To summarize:

    1/  we would need 2 different launch times:
    • 07:30 Daily [except on <specific day>]
    • 23:30 Monthly on <specific day>
    2/  Does $U allow us to set that kind of calculation ?
    <specific day>  =  <last working day of the month> - [5 working days]

    3/  we would need 2 different Rules or Calendar or combination of both ? :
    • Monthly on <specific day>
    • Daily [except on <specific day>]

    4/  this Task has to be deployed on several MUs

    Thanks for your help ;

    Agnès


    ------------------------------
    SAP Service Delivery Manager - Scheduling management
    Publicis Groupe
    [WebsiteUrl]
    [City] - France
    ------------------------------


  • 2.  RE: How to: make a $U Task run at a different launch time on a specific day in the month
    Best Answer

    Broadcom Employee
    Posted Sep 23, 2020 05:28 AM
    Hi,

    Using one Task, it could be done using Exception, but this needs to be done manually. The best way, in your case, is using two Tasks : 

    Task 1: Scheduled using a Rule "every day at 7:30" with the Processing Date on the current day (this is the default) and an Exclusion Rule "5 working days before the last working day of the month"-> this will schedule every day at 7:30 except the -5 working day
    Task 2 (on the same Session/Uproc/MU but with a different Task Name) : Scheduled using the Rule "5 working days before the last working day of the month" at 7:30 with an Offset Processing Date to - 1 Day -> this will schedule the -5 Working day at 7:30 with a Processing Date on the day before (See Functional Data in the Task).

    The processing date is a variable you can use in your Uproc to have a "production day" different than the schedule day. 

    The deployment has to be done using these two Tasks on the MU you need. 

    Using the first proposition regarding Exception, you can have only the Task 1, and add an Exception (using Run at) manually on the days before the -5 working day before midnight. 

    Just a question, when you write "our $U Task (billing - invoices printing) runs daily at 07:30 CET", daily means every day or every working day? Because this could change the way to do that. 


    Regards,


  • 3.  RE: How to: make a $U Task run at a different launch time on a specific day in the month

    Posted Apr 20, 2021 06:39 AM
    Many Thanks Frederic,

    I'll test the 2nd solution you provided

    To answer your question, "when you write "our $U Task (billing - invoices printing) runs daily at 07:30 CET", daily means every day or every working day? Because this could change the way to do that. "  --> Yes currently the job is running daily from Monday to Sunday

    ------------------------------
    SAP Service Delivery Manager - Scheduling management
    Publicis Groupe
    [WebsiteUrl]
    [City] - France
    ------------------------------



  • 4.  RE: How to: make a $U Task run at a different launch time on a specific day in the month

    Posted Nov 04, 2020 05:38 PM
    Edited by Eric Delawoevre Nov 05, 2020 07:26 AM
    Thank Frederic to this.
    Just add one thing

    Particularly on closure/financial/billing Monthly dates. Yes indeed you can say <last working day of the month> -[5 working days]
    But this is a decision that can not be changed because you set it directly to the Rule (and the rule is hardly included into your task). The only way to change this is updating your tasks by adding exception+specific run.
    To avoid this, and very elegant, and also parlicularly because you deliver a MU-less task to multiple, is to use a Financial calendar
    1. be sure to set a dedicated MU type , example C like closure : MUs could be C_MU1 C_MU2 C_MU3 ...
    2. create a calendar of MU type C. and set whatever days in the month the date of your monthly billing 
    3. create a rule based on this Financial calendar feature (dropdown list)
    4. deploy the calendar on the "C" MUs designed nodes if also remote
    5. deploy the task to all the "C" MU you want
    No need to change the tasks, but only the "C" calendar, at any time. The result will be in realtime and without modifying the objects (task)

    Now for the 7:30 (dayly) or 23:30 (billing), it a bit more complicated, as it can be done by many ways
    But I prefer this one:
    1. A global task with one  dummy uproc : it as to be running only on the Billing month day. The Uproc is memorized an so log an event. The task must be executed before 7:30
    2. All the daily interrested session task has to be launched at 7:30. 
    • header check the absence of the dummy Uproc
    • the time window of the task is 16h (23:30-7:30). And "execute at end of window" is checked
    The day of Billing the dummy event is there, The Billing will wait the end the time window, so 23:30
    The other days, no dummy event (Absent is fetched), The Billing immediatly execute, so at 7:30
    This method is particularly interresting because If you have multiple Financial billing day tasks, all the tasks are simple with one condition: this dummy event
    Regards Eric




  • 5.  RE: How to: make a $U Task run at a different launch time on a specific day in the month

    Posted Apr 20, 2021 06:53 AM
    Many Thanks Eric,

    Very interesting.
    My only concern would be: if for any reason, the dummy uproc has not run on time (unavailable resource at the time when it's supposed to be launched, for instance) then the 16 hours could be an issue for the dependent Task

    I'l test this solution as well

    Regards,
    Agnès

    ------------------------------
    SAP Service Delivery Manager - Scheduling management
    Publicis Groupe
    [WebsiteUrl]
    [City] - France
    ------------------------------