Schedule - 3rd working day of month

How to set up a schedule that will execute on 3rd (or fourth) working day of every month?

Hi
The schedule expression is something like below, but OWB can't express that - you can express execute a weekday every 4/5 weeks for example. Or you can execute on the 3/4 day (no working day specification in OWB) of each month.
I think this is what you really want though... (this is the schedule expression for Oracle database scheduler);
FREQ=MONTHLY; BYDAY=MON,TUE,WED,THU,FRI; BYSETPOS=3
Cheers
David

Similar Messages

  • Get working day of month for specific date

    Hi,
    I need to get the working day of a month for a specific date. For example: Which working day is the 15th of september 2005...
    Is there any function module, I could use?
    Cheers Arne

    HI arne,
    1.  DATE_CHECK_WORKINGDAY
        This is the FM.
    2. Along with that u will have to use some logic.
    3. Just copy paste in new program
       (it will help in the logic)
    <b>It will list out
    all the working days
    between two given dates</b>
    REPORT abc.
    data : num type i.
    parameters : frdate type sy-datum default '20051216'.
    parameters : todate type sy-datum default '20051221'.
    perform getinfo using frdate todate changing num.
    break-point.
    *&      Form  getinfo
          text
    FORM getinfo USING fromdate todate CHANGING numofdays type i.
      DATA :  d TYPE sy-datum.
      d = fromdate - 1.
      DO.
        d = d + 1.
        IF d > todate.
          EXIT.
          endif.
          CALL FUNCTION 'DATE_CHECK_WORKINGDAY'
            EXPORTING
              date                       = d
              factory_calendar_id        = '01'
              message_type               = 'I'
            EXCEPTIONS
              date_after_range           = 1
              date_before_range          = 2
              date_invalid               = 3
              date_no_workingday         = 4
              factory_calendar_not_found = 5
              message_type_invalid       = 6
              OTHERS                     = 7.
        IF sy-subrc = 0.
          numofdays = numofdays + 1.
          write :/ d.
        ENDIF.
        ENDDO.
      ENDFORM.                    "getinfo
    regards,
    amit m.

  • Display data for last working day of month

    Hi
    I am trying to chart values for the last six years but only to plot the value for the last working day of the month, except for the current month where I am taking an average of the month so far. Everything I've tried has so far failed spectacularly. Has anyone resolved a similar problem?

    If I understand your dilemma correctly, you may want to create a cross-tab and then create the chart off of the cross-tab. Is the data in your tables that you want to chart on something like this:
             4/30   5/30   6/30   7/31   8/29       Sept.
    Row 1    20      30      10      25      20    (avg for month) 
    Row 2    5         10      8       15     15    (avg for month)
    etc.
    If so, 1) can you show an example of the data and 2) what kind of chart do you want to create?

  • No. of Worked days in month

    Hi friends,
    I would like to know how i would be able to find the number of paid days for an employee in a particular month.
    Regards,
    Prashant

    for getting public holiday you may refer the above person's reply(Holiday_get) .and for getting the personal leave you must have to maintain the ESS and get the details from HR_GET_LEAVE_DATA.finally sum both and subtract from total days.
    Update:But you must take care one thing if there is public holiday than employee not came its fine but the problem would occurs if employee may be come on public holiday(like in india for hourly wage employees) also than you must need to maintain their presence in infotype 2002 as well.
    but above case only once in while but possibilities are there
    Cheers
    Edited by: Ámit Güjärgoüd on Oct 14, 2008 9:50 AM

  • Work day of a calendar

    Hi all,
    I am searching for a FM which will say 3rd work day of a factory calendar or 4th work day of a factory calendar etc. I could see there are few FMs to say first work day - last work day but not the Nth work day. If we input some date and factory calendar, we should get which work day it is. For example if we give 09/02/2010 and factory calendar name it should return as 2nd workday etc. Any help will be appreciated..
    Thanks in advance.
    Moderator message: date calculation questions = FAQ, please search before posting.
    locked by: Thomas Zloch on Sep 15, 2010 4:39 PM

    hi,
    Please check with this fm DATE_CONVERT_TO_FACTORYDATE.
    Keerthi

  • Calculation of no. of working days (per Factory Cal) between 2 date chars

    This question could be considered to be in continuation of a previous post called "Working days of month with factory calendar"
    I have two date Characteristics: say Date1 and Date2. I need to find the number of working days between them based on the factory calendar.
    (And yes we have already defined the default factory calendar in IMG under 'General Reporting settings' ).
    The previous post proposed the following:
    1) Convert date1 into factorydate (standard functionmodule)
    2) Convert date2 into factorydate (standard functionmodule)
    Perform date1 - date2 to get number of working days.
    I agree that there is a std function module to convert cal date to factory date called: 'DATE_CONVERT_TO_FACTORYDATE'
    But what are the steps for calling the conversion? Should I create a new Formula variable of 'Customer Exit type' give it a name and define the Function module in CMOD? But then how do I attach the formula variable to the date characteristic. Note that my infoobjects are Chars so I cannot do date1- date2 in the query as is possible with keyfigures!
    Please help! (my version is BW 3.0)
    Thanks
    Naresh

    Hi,
    For the above scenario when you need to calculate date 1 - date 2. we can't build a new formulae or calculated KF directly because those are the chars.
    So we need make chars to act as KF through Formulae with replacement path.
    create a formulae variable on those 2 Date chars with Processing type as replaccement then those 2 Dates can be avilable to build a formulae as ur requirement.
    Let me know if you need any more information.
    Thanks,
    Raju

  • Calculate all days in month from schedule line delivery date for 12 mths

    Hi experts,
    I am trying to solve a problem and would appreciate any help! Im on BI7.
    The user will input a date for the schedule line delivery date via a variable.
    From this date I need to go forward 12 months exactly and display a key figure (outstanding value) by months but the first and last months must only use the days in that month i.e not the whole month if not selected by the user.
    I.e if the user types in 13.05.2008
    The display need to show (columns)
    May 08 (13th to end of May 2008)
    June 08   (All)
    July 08    (All)
    August 08    (All)
    Sept 08    (All)
    Oct 08     (All)
    Nov 08     (All)
    Dec 08    (All)
    Jan 09     (All)
    Feb 09    (All)
    Mar 09    (All)
    April 09   (All)
    May 09  (1st to 12)
    So I neen to restrict the key figure (Outstanding Value) by Schedule Line Delivery Date and display as above on a 12 month forecast basis from the day (sch line delivery daye) entered as a variable by the user.
    I also need the first month to only show the dates in the month remaining including the date entered as a variable. The last month must go up to the day before exactly a year in front.
    I have created the 12 months as a structure and can include the key figure and the schedule line delivery date. The schedule line delivery date for each period needs to be restricted. How can I do this to achieve the above?
    Thanks in advance. Will assign good points for a speedy solution.
    Best
    Steve.

    Hi,
        Check "OVLY" and "OVLZ" and If the sceduling is active for he shipping point /sales document type.  Check "OVXD" and see If the Loading time/ Pick/pack time is determined from it. If they are getting determined from shipping point check the shipping point calender in "SCAL" .If it has saturday and sunday as holidays ,then you may have to change them. And check If the customer has goods recieving hours assigned to him (In customer master unloading point). If he has only 5 working days and If he accepts only goods at 8 am in the morining then system would propose like this.Kindly please let me know If you need any more Information on this.
    Regards
    Ram Pedarla

  • Weekly schedule line should pass to last working day of the week in SAg

    HI,
    In a scheduling agreement when we have weekly or monthly schedules the system displays the date in the screen as 12/2010 or 13/2010 for say a weekly schedule.
    However when the data is stored in the table the delivery date is always the first working day of the week. In this case when the week is 13/2010 the data is stored in the table as 22/03/2010.
    Is there any way to change this to the last working day of the week?
    We have some config related to define delivery intervals in IMG--> Sales and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Define Delivery Intervals. Will this help solve my issue? If it solves what is the procedure behind this?
    Request you to provide your inputs.
    Thank You, Lakshmikanth

    Hi,
    Seems the delivery split concept is different from this requirement. Can Delivery intervals concept help us or not? IMG--> Slaes and Distribution --> Sales --> Sales Documents --> Scheduling Agreements with Delivery Schedules --> Control EDI Inbound Processing --> Define Delivery Intervals.
    What is the procedure and assignment details for delivery intervals concept?
    Thanks, Lakshmikanth

  • How to create a recurrent event on the first or last work day of the month

    The lightning calendar allows selection of the first and last day of the month for recurrent events but for business I need to use the first and last WORK day of the month (Monday - Friday) to schedule particular tasks. In the calendar preferences under 'View' I can select the days that make up the work week but this does not transfer to an option in recurrent events. Is there another way to do this or is it just not available?

    Hi there,
    do know for the UlltimateBootCD4Win? This from CD bootable WinXP-BartPEedition with additional tools gives you the ability to make such things like partitioning, backup or formatting your HDD.
    It has many more applications which help you to maintain your system without booting your original OS.
    So I think that this CD will solve your partitioning issues.
    Heres a link: www.ubcd4win.com/
    Just try it and tell me your opinion.
    Nice weekend and greetings from the sunny south ;)

  • To run a program in batch every month on a particular working day

    Hi All,
    I have a requirement to run a program  in batch every month on the 17th working day.
    How can I achieve this?
    Thanks in advance.
    Ankit

    Hi,
    1.Create an event in tcode- SM62.
    2. write a ABAP program include this function module- RSPC_API_CHAIN_SCHEDULE(This function module is periodic)-> give the periods
    or
    go to RSPC-->start variant and give time as you want and schedule it according to your time.
    Then go to SM37 and select your job and go to job menu -->repeat scheduling
    giving time as you want and schedule it as daily
    Regards,
    Marasa.

  • How to schdule my job on 16th working day of the every month?

    hi frnz
    I have a big task in my end, i have created one  package ,i want to execute that every month of 16th working day i want to run my job with schdule,how should i schdule my job using
    SQL AGENT IN SQL SERVER
    Can some one please help me out .......
    Thanks

    To add to Visakh's response, another method is to add the T-SQL script as the first job step to identify non-run days and raise an error when the job is not to be run.  Set this first job step on failure action to "Quit the job reporting success".
    Personally, I would use a full calendar table with an indicator of whether a given date is a working day or not.  I thing you will find such a table useful beyond this scheduling requirement.  For example:
    CREATE TABLE dbo.Calendar(
    CalendarDate date NOT NULL
    CONSTRAINT PK_Calendar PRIMARY KEY CLUSTERED
    ,CalendarYear int NOT NULL
    ,CalendarMonth int NOT NULL
    ,CalendarDay int NOT NULL
    ,BusinessDay bit NOT NULL
    See
    http://weblogs.sqlteam.com/dang/archive/2010/07/19/calendar-table-and-datetime-functions.aspx for an example of a more extensive calendar table along with a script to load US holidays.  The code below shows one method to use it for your scheduling
    requirement:
    DECLARE @RunDay bit = 0;
    WITH this_month_business_days AS (
    SELECT
    CalendarDate
    ,ROW_NUMBER() OVER(ORDER BY CalendarDate) AS BusinessDayNumber
    FROM dbo.Calendar AS c
    WHERE
    CalendarYear = DATEPART(year, GETDATE())
    AND CalendarMonth = DATEPART(month, GETDATE())
    AND BusinessDay = 1)
    SELECT @RunDay = 1
    FROM this_month_business_days
    WHERE
    BusinessDayNumber = 16
    AND CalendarDate = CAST(GETDATE() AS date);
    IF @RunDay = 0
    BEGIN
    RAISERROR ('Today is not a run day', 16, 0)
    END;
    Dan Guzman, SQL Server MVP, http://www.dbdelta.com

  • Sales order schedule date is a (working) day before Scheduled ship date

    In MRP/MPS planning, the forecast consumption is occuring for all sales orders at a date (sales order schedule date) which is always a working day before the Scheduled Ship Date (SSD). What is the logic?
    Time fences are not used.
    E.g. Sales order is scheduled to ship (SSD) on 30th Nov, in forecast set > Forecast items > Consumptiion > Detail, the sales order schedule date is a day before SSD.

    Hi,
    This is a complex issue; best solution is by using APO/GATP.
    If not, then in ERP only, the second best is:
    1) Work with assembly processing in SO, meaning that a production/planned order is automatically created in the customer order during order creation.
    2) Then, after the order is created it is scheduled, and the delivery date proposal is based on that.
    3) Now you can check in the order that there are no capacity overloads, and all capacity required to produce on the proposed date is available. If yes, you're done. If not, it gets a bit complex, since you actualy need to switch to capacity planning, do capacity leveling and dispatch (PP), and the you get a new feasible schedule proposal based on that.
    APO/GATP could do all that automatically!
    Regards,
    Mario

  • Schedule background job for working days

    Hi,
    I would like to schedule a background job, but only runs on working days (from Monday to Friday), I am wondering whether it is possible to run as mentioned or not?
    Kindly advise!
    Thanks!!
    br,
    hy

    hi
        F9 - > click date/time, after the at operation mode tab, there is an arrow mark, click it, in taht mention your factory calendar id (which includes public holidays and specify from which workday it should start, time), then check and come back to the main screen, check periodic job, click the periodic values tab, in that specify it as daily...will solve your requirement
    if helpful, reward
    Sathish. R

  • ICalendar: How do I know what day, in month view, I am working on?

    The calendar in Mavericks is so frustrating compared to SL. How do I know what day, in month view, I am working on? There is no highlight or box or anything. Am I missing something? Also I suppose its not possible to just see 1 month anymore like it use to be instead of seeing 6 weeks. Thanks.  Sure wish Apple would let us keep our Macs the way WE like it with a classic setting everytime they add something that they think is better. Like those awesome grey icons all over the place instead of color.

    The day with the red line on top is today

  • Need working days for a particular month and year

    Hi,
    I need the number of working days for a particular month and year.Saturdays and Sundays are holidays.
    Regards,
    Vignesh

    Try this:
    SQL> var yr NUMBER;
    SQL> exec :yr := 2010;
    PL/SQL procedure successfully completed.
    SQL> with t as (select :yr yr from dual)
      2  SELECT TO_CHAR(dat,'MON-RR'),COUNT(*) FROM
      3  (select TO_DATE('01-JAN-'||yr) + lv dat FROM
      4  (select level - 1 lv,yr from t
      5  connect by level <= TO_DATE('31-DEC-'||yr) - TO_DATE('01-JAN-'||yr) + 1))
      6  WHERE TO_CHAR(Dat,'DY') NOT IN ('SAT','SUN')
      7  GROUP BY TO_CHAR(dat,'MON-RR');
    TO_CHAR(DAT,   COUNT(*)
    APR-10               22
    AUG-10               22
    DEC-10               23
    FEB-10               20
    JAN-10               21
    JUL-10               22
    JUN-10               22
    MAR-10               23
    MAY-10               21
    NOV-10               22
    OCT-10               21
    TO_CHAR(DAT,   COUNT(*)
    SEP-10               22
    12 rows selected.
    SQL> Edited by: AP on Jul 27, 2010 7:54 AM

Maybe you are looking for

  • Error while testing the Webservice created from RFC enabled function module

    Our client has provided the SAP WSDL URL and We tried to generate stub using AXIS 2 tool from this SAP WSDL URL and got u201Cservice and binding tagu201D missing error. It seems that clients SAP wsdl file is having only web service interface informat

  • How to capture the error messages from incorrect session?

    Hi SDNs., i am using BDC Session method to update transaction FB01. So my job runs daily. here i want to capture the error messages and i want to send it to mail.  Can i capture the unprocessed records??? i think FM <b>SO_NEW_DOCUMENT_ATT_SEND_API1</

  • Not getting the speed I'm paying for

    I've been a happy Fios customer for years and I've always upgraded to their latest and greatest the second it became available since Fios has, in the past, always outperformed whatever was promised. However things have changed. I upgraded to the 75/3

  • Where are the Dreamweaver CS5 "assets" folders?

    I've had to clean reinstall Mavericks and am trying to find the assets (mainly snippet blocks of code to frequently reuse in website entries).  I can't seem to find them in my Time Machine backup.  What are the files named and where in what part of t

  • Date Field not initialized with DBDATETIME/DBDATE

    Hi, I have form in oracle 9i(I also attached calender provided as PJC on oracle's site) with one field of date type with the Initial value of $$dbdate$$/$$dbdatetime$$ but at the time of run this field doesnot inialized as it should be with the curre