Retreive Sunday to Saturday Week records

Hi Friends,
I am using Oracle 10.1 version. I have a requirement to retrieve records for week spanning sunday to saturday from the sales table.
I have to execute this query on sunday, if the production job fails for some reason, i need to execute the job on a monday / tuesday.
Is it possible to retrieve the records for the last week?
Example
Sunday Saturday Sunday
04/25/2010 05/01/2010 05/02/2010
if the jobs fails on sunday, i need to execute the job on 05/03, then the query should retrieve only 04/25 till the date reaches 05/08/2010. Since it completes the week span.
i researched the forum and i found the below query to retrieve the records spanning week time.
WHERE     some_date     >= TRUNC (SYSDATE + 1, 'IW') - 15
AND     some_date     < TRUNC (SYSDATE + 1, 'IW') - 8
How should i be able to modify this query to retrieve the record for a week span time.

Hi,
The formula you found is a good way to get the Sunday-to-Saturday week that was 2 weeks ago. If you want last week, then just add 7 days to the expressions to which you are comparing some_date:
WHERE   some_date >= TRUNC (SYSDATE + 1, 'IW') - 8
AND      some_date <  TRUNC (SYSDATE + 1, 'IW') - 1When run any time from Sunday, May 2 through Saturday, May 8, the condition above looks for some_date between Sunday, April 25 and Saturday, May 1, inclusive.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data if the query is run on a couple of different dates. (For example: "If I run this one Saturday, May 8, then the output should be ..., but if I run it on Sunday, May 9, then I want ...".)

Similar Messages

  • Getting the data between Sunday and Saturday of last week.(DAYS NOT DATES)

    I have a stored procedure (that has no parameters right now) and does some extraction of data from different tables. One of the table has a column called 'DeliveryDate'.
    Based on the requirements, I have to create an SSRS 2008 R2 Report out of that stored procedure, so that users can see the data of last week from Sunday(Start DAY) to Saturday(End DAY). Even if it is Wednesday today, they should be able to see the data
    from Last Sunday to this Saturday. I don't want to get data of Monday, tuesday or wednesday. Also, these values shouldn't be STATIC. Meaning, if one user wanted to see deliveries on 04-15-2011, then he shoud see the values of the previous week (and NOT
    CURRENT week)
    1. Do I need to create parameters in my stored proc. Are they needed at all ?
    2. Should I use DateAdd, Datediff functions (If someone can explain, how will they be calculated!)

    to get last week sunday and saturday use below. I prefer to use parameters.
    set @startdate = DATEADD(wk,
    DATEDIFF(wk,
    0,
    getdate()),
    -2) --for
    sunday
    set @enddate = DATEADD(wk,
    -1,
    DATEADD(wk,
    DATEDIFF(wk,
    0,getdate()),
    -1))-- for saturday
    also
    refer the following link
    http://blog.sqlauthority.com/2008/08/29/sql-server-few-useful-datetime-functions-to-find-specific-dates/
    ESHANI. Please click "Mark As Answer" if a post solves your problem or "Vote As Helpful" if a post has been useful to you
    If I run the query on 5/4/2014, will it give me 4/27/2014 for Sunday and 5/3/2014 for Saturday? Meaning if I run it on a Sunday, it will give me the previous Sunday and not the current Sunday's date.

  • MDX to get last Sunday and Saturday

    I built a SSRS 2005 report on a SSAS 2005 cube. The report has start date and end date parameters from Time dimension. I need to set the default values to be last Sunday and last Saturday separately. (financial week is from Sunday to Saturday)
    E.g.
    Start date: [Time].[Day].&[20140309]
    End date: [Time].[Day].&[20140315]
    How can I do it dynamically? I mean for this week is above dates, but for next week, it should be 16 March, 22 March. I know how to do it in T-SQL, which will involve some calculation with system date, but MDX?

    I created a data set in the report and it will have SQL query. This data set will generate the Week Start date and End Date. Use them as parameter default values. the parameter value you need to pass to the MDX query is going to be "[Time].[Day].&["
    + CStr(Format(Parameters!fromdate.Value, "yyyyMMdd")) + "]" and "[Time].[Day].&[" + CStr(Format(Parameters!enddate.Value, "yyyyMMdd")) + "]"
    prajwal kumar potula

  • Function Module to convert date to week from Sunday to Saturday

    Hi,
    In BW the convertion date to week always give week from Monday(1) to Sunday(7)
    I'm looking for a function module to convert date to week from Sunday(1) to Saturday(7)
    Thanks
    Sebastien

    Hi,
    I think this SAP standardized. Maybe you need to create custom FM.
    You can copy SAP FM DATE_GET_WEEK. in the FORM FIRSTWEEK, I see below case,
    CASE start_weekday.
        WHEN if_calendar_definition=>c_monday.
          start_weekday_number = 1.
        WHEN if_calendar_definition=>c_tuesday.
          start_weekday_number = 2.
        WHEN if_calendar_definition=>c_wednesday.
          start_weekday_number = 3.
        WHEN if_calendar_definition=>c_thursday.
          start_weekday_number = 4.
        WHEN if_calendar_definition=>c_friday.
          start_weekday_number = 5.
        WHEN if_calendar_definition=>c_saturday.
          start_weekday_number = 6.
        WHEN if_calendar_definition=>c_sunday.
          start_weekday_number = 7.
      ENDCASE.
    Maybe you can play something here.

  • Days of the week Record selection

    Hi All,
       I have 7 days of week boolean parameters for which when the user selects the date range, they can also filter which days of the week to use within that date range.
    Any ideas on how I can implement this in my record selection formula?
    Thank you in advance.

    Hi,
    You can make use of the DatePart formula
    The following formula will return which day of the week for a particular week.
    Eg:
    The field I am evaluting here Command.DocDate
    If I want to return Wednesday sales then I put in the following in record selection.
    DatePart ("w",{Command.DocDate}, crMonday) = 3

  • Customer Exit Variable - Sunday of Last Week

    Hi experts,
    I have written the following code for a customer exit variable. I created a formula variable in BEx called ZV_SUNLASTWEEK. I am then returning the result of this formula variable as a calculated key figure. The expected behaviour is that based on the current date (system date) I will return the date of the sunday of the previous. For example, if I run the report today (19th Jan) I would get the 16.01.2011. However, I get 00/00/0000. Any ideas please?!
    WHEN 'ZV_SUNLASTWEEK'.
    Data: zfdcw TYPE datum.
    CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
      EXPORTING
        date_in         = sy-datum
      IMPORTING
        date_out        = zfdcw
      EXCEPTIONS
        date_invalid    = 1
        others          = 2.
    IF sy-subrc <> 0.
    ENDIF.
    CLEAR l_s_range.
    l_s_range-low  = zfdcw - 1.
    *l_s_range-high = sy-datum.
    l_s_range-sign = 'I'.
    l_s_range-opt  = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDCASE.

    Try using the below code...
    WHEN 'ZV_SUNLASTWEEK'.
    Data: zfdcw TYPE dats,
    l_currentdate type dats,
    l_date type sy-datum.
    l_currentdate = sy-datum.
    CALL FUNCTION 'BWSO_DATE_GET_FIRST_WEEKDAY'
      EXPORTING
        date_in         = l_currentdate
      IMPORTING
        date_out        = zfdcw
      EXCEPTIONS
        date_invalid    = 1
        others          = 2.
    IF sy-subrc  0.
    ENDIF.
    CLEAR l_s_range.
    l_date = zfdcw.
    l_date = l_date - 1.
    l_s_range-low  = l_date.
    l_s_range-sign = 'I'.
    l_s_range-opt  = 'EQ'.
    APPEND l_s_range TO e_t_range.
    ENDCASE.
    rgds, Ghuru

  • How to calculate  number of sundays and saturdays between two Dates

    friends i want to calculate how many Sundays come in two Dates
    i have tried following code which is hard coded i have to impliment method which can give me number of Sundays between two Dates
    please help me
    import java.util.Date;
         import java.text.DateFormat;
         import java.text.SimpleDateFormat;
         import java.util.Calendar ;
         import java.util.GregorianCalendar;
    public class DateDiffCalculator     {
         private static final SimpleDateFormat SDF = new SimpleDateFormat("yyyy-MMM-dd");
    public DateDiffCalculator()     {
         public static Date getDate (String date) throws Exception {
    //log.debug(" "+date);
              return SDF.parse(date);
    public static Date getDate (Date date) throws Exception {
    // log.debug("date is "+date);
              return getDate(SDF.format(date));
    public static long getDiffInDays(Date d1,Date d2)     {
         boolean isdiffGreaterThanYear=false;
         long diffInMilliSeconds=d1.getTime()-d2.getTime();
         return diffInMilliSeconds/(1000*60*60*24);
    public static int getYear(String date)     {
              //String[] day=     {Sun,Mon,Tue,Wed,Thu,Fri,Sat};
              Integer     year=new     Integer(date.substring(0,4));
         return year.intValue();
    public static int getMonth(String date)     {
              //String date.substring(5,7);
              System.out.println(" "+date.substring(5,8));
              String     m= date.substring(5,8);
              int month=0;
              if(m.equalsIgnoreCase("Jan"))     {
              month=1;
              if(m.equalsIgnoreCase("Feb"))     {
              month=2;
              if(m.equalsIgnoreCase("Mar"))     {
              month=3;
              if(m.equalsIgnoreCase("Apr"))     {
              month=4;
              if(m.equalsIgnoreCase("May"))     {
              month=5;
              if(m.equalsIgnoreCase("Jun"))     {
              month=6;
              if(m.equalsIgnoreCase("Jul"))     {
              month=7;
              if(m.equalsIgnoreCase("Aug"))     {
              month=8;
              if(m.equalsIgnoreCase("Sep"))     {
              month=9;
              if(m.equalsIgnoreCase("Oct"))     {
              month=10;
              if(m.equalsIgnoreCase("Nov"))     {
              month=11;
              if(m.equalsIgnoreCase("Dec"))     {
              month=12;
              return month;
         public static int getDay(String date)     {
              Integer     day=new     Integer(date.substring(9,11));
         return day.intValue();
    public static int getNumberofSundays(String d1,String d2) throws Exception     {
              //d1 is leave start date d2 is leave end date
              // get object in Date form
                   Date date1=getDate(d1);
                   Date date2=getDate(d2);
              // now get calender objects from it
              GregorianCalendar c1= new GregorianCalendar(getYear(d1),getMonth(d1),getDay(d1));
              GregorianCalendar c2= new GregorianCalendar(getYear(d2),getMonth(d2),getDay(d2));
              // get period
              long leavePeriod = getDiffInDays(date1,date2);
         return 12; // it should return number of sundays but we type 12 to perform compilation
    public static void main(String[] arg)throws Exception     {
    System.out.println(" "+getNumberofSundays("2005-Oct-07","2006-Mar-01"));
    }

    thanks now i have modified the get Month Code
    as follows
    public static int getMonth(String date)     {
              //String date.substring(5,7);
              System.out.println(" "+date.substring(5,8));
              String     m= date.substring(5,8);
              int month=0;
              if(m.equalsIgnoreCase("Jan"))     {
              month=0;
              if(m.equalsIgnoreCase("Feb"))     {
              month=1;
              if(m.equalsIgnoreCase("Mar"))     {
              month=2;
              if(m.equalsIgnoreCase("Apr"))     {
              month=3;
              if(m.equalsIgnoreCase("May"))     {
              month=4;
              if(m.equalsIgnoreCase("Jun"))     {
              month=5;
              if(m.equalsIgnoreCase("Jul"))     {
              month=6;
              if(m.equalsIgnoreCase("Aug"))     {
              month=7;
              if(m.equalsIgnoreCase("Sep"))     {
              month=8;
              if(m.equalsIgnoreCase("Oct"))     {
              month=9;
              if(m.equalsIgnoreCase("Nov"))     {
              month=10;
              if(m.equalsIgnoreCase("Dec"))     {
              month=11;
              return month;
    but question remains same how to calculate number of Sundays Between 2 Dates

  • Date F4- Calendar to start with Sunday to Saturday instead of Mon to Sunday

    Hi
    Client wants to see the dates from Sunday to Saturn day instead of SAP standard Monday to Sunday. Can you please help us ?
    Regds
    Tiag

    Hi Rajan,
    Check this link:
    http://help.sap.com/saphelp_NW04/helpdata/en/c4/3a6e3d505211d189550000e829fbbd/content.htm
    http://iorboaz.blogspot.com/2005/11/sap-factory-calendar.html
    Regards,
    Chandra Sekhar

  • Change Oracle's start of week to Sunday

    Hi,
    I am using Oracle 10g R10.2.0.3.0.
    I would like to change the beginning of week in Oracle from Monday to Sunday. Given below is my NLS_DATABASE_PARAMETERS:
    NLS_LANGUAGE------------------------AMERICAN
    NLS_TERRITORY-----------------------AMERICA
    NLS_CURRENCY------------------------$
    NLS_ISO_CURRENCY--------------------AMERICA
    NLS_NUMERIC_CHARACTE----------------.,
    NLS_CHARACTERSET--------------------UTF8
    NLS_CALENDAR------------------------GREGORIAN
    NLS_DATE_FORMAT---------------------DD-MON-RR
    NLS_DATE_LANGUAGE-------------------AMERICAN
    NLS_SORT----------------------------BINARY
    NLS_TIME_FORMAT---------------------HH.MI.SSXFF AM
    NLS_TIMESTAMP_FORMAT----------------DD-MON-RR HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT------------------HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT-------------DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_DUAL_CURRENCY-------------------$
    NLS_COMP----------------------------BINARY
    NLS_LENGTH_SEMANTICS----------------BYTE
    NLS_NCHAR_CONV_EXCP-----------------FALSE
    NLS_NCHAR_CHARACTERSET--------------UTF8
    NLS_RDBMS_VERSION-------------------10.2.0.3.0
    Example of the issue I am trying to resolve:
    desc my_table:
    EVENT_TIME     TIMESTAMP(6)
    query:
    SELECT EVENT_TIME, to_char(EVENT_TIME, 'iw') WEEK_NUM
    FROM MY_TABLE
    returns:
    EVENT_TIME               WEEK_NUM
    11-NOV-09 09.52.43.000000000 AM     46
    10-NOV-09 07.58.32.000000000 AM     46
    09-NOV-09 08.49.49.000000000 AM     46
    08-NOV-09 10.20.18.000000000 PM     45
    07-NOV-09 12.20.38.000000000 AM     45
    06-NOV-09 11.55.53.000000000 PM     45
    Since 08-NOV-09 10.20.18.000000000 PM, is a Sunday, I would like to see a new WEEK_NUM associated to it. Start of the week should be Sunday 12:00 AM and end of week, Saturday 11:59 PM.
    Thank you in advance.
    Best,
    Anil.
    Edited by: user10766354 on Nov 11, 2009 10:22 AM

    Hi, Anil,
    ISO weeks always begin on Monday, regardless of NLS settings. You can't change that.
    You can equate Sundays with the following ISO week by adding 1 to all dates
    SELECT EVENT_TIME, to_char(EVENT_TIME + 1, 'iw') WEEK_NUMwhich may be good enough for your purposes.
    What are your purposes? What do you need to do?
    If you need to group Sunday-through-Saturday weeks, then
    TRUNC (event_time, 'd')will use the week depending on NLS_TERRITORY. For America, that means weeks start on Sunday, and the expression above will always be midnight on some Sunday.
    Regardless of NLS settings,
    TRUNC (event_time + 1, 'iw') - 1is the last Sunday on or before event_time.

  • Need to pull records for full work week two weeks back

    I wanted to pull the results from two date fields and calculate the lapsed time. Both dates in the calculation are from the same field, so I used the command feature in Crystal to differentiate the two
    SELECT max("A"."CREATED_DATE") as installerContactCreatedDate,
    TO_NUMBER("A"."OBJECT_KEY")
    FROM "OMS"."AUDITS" "A"
    WHERE "A"."ATTRIBUTE_NAME" = 'installerContact'
    AND "A"."CREATED_DATE" > SYSDATE - 16
    group by "A"."OBJECT_KEY"
    SELECT max("A"."CREATED_DATE") as dateScheduledCreatedDate,
    TO_NUMBER( "A"."OBJECT_KEY")
      FROM "OMS"."AUDITS" "A"
      WHERE "A"."ATTRIBUTE_NAME" = 'dateScheduled'
    AND "A"."CREATED_DATE" > SYSDATE - 16
    group by "A"."OBJECT_KEY"
    Incidently: u201CAND "A"."CREATED_DATE" > SYSDATE u2013 16u201D was used to limit the results from a huge table and u201816u2019 has no real significance other than trying to return the minimal results for the report.
    once I had the above I used this:
    datediff("H",{Command.INSTALLERCONTACTCREATEDDATE},{Command_1.DATESCHEDULEDCREATEDDATE})
    Now to what I need to do; if I provided too much info I am sorry, I just was hoping to give enough.
    I need the results  for a full work week; the catch is I donu2019t need it for the previous week but for two weeks back; i.e. if I ran the report  on Monday the 19th  I want to pull records from the 5th to the 9th
    I know that this formula:
    {Command.INSTALLERCONTACTCREATEDDATE} in
      CurrentDate - DayofWeek(CurrentDate) - 5
    to CurrentDate - DayofWeek(CurrentDate) u2013 1
    will pull the prior full business week (m-f); i.e.  ran on Monday the 19th- pulls records for the 12th to 16th, no good for me.
    Furthermore, if the field is populated late Friday afternoon and field is not populated until the next week I need to capture that on the following weeks report- eventhough the first part was populated the prior week.
    So, report runs Mon. the 19th captures 5th to 9th, but  is populated the 9th and the is not populated til the 12th, 13th, or 14th then that cant show on report for week of 5th to 9th, but on the report for 12th to 16th.
    Iu2019d greatly appreciate any assistance and apologize if I made little to no sense when describing my issue.

    Try:
    SELECT max(case when a.attribute_name = 'InstallerContact'
                        then "A"."CREATED_DATE" else null end) as installerContactCreatedDate,
                 max(case when a.attribute_name = 'dateScheduled'
                        then "A"."CREATED_DATE" else null end) as dateScheduledCreatedDate,
         TO_NUMBER("A"."OBJECT_KEY")
    FROM "OMS"."AUDITS" "A"
    WHERE
    ("A"."ATTRIBUTE_NAME" = 'installerContact'
       AND "A"."CREATED_DATE" > SYSDATE - 45) 
    OR
      ("A"."ATTRIBUTE_NAME" = 'dateScheduled'
       AND "A"."CREATED_DATE" between SYSDATE, - datepart("dw", sysdate) - 13
                                                 and SYSDATE - datepart("dw", sysdate) - 7 )
    group by "A"."OBJECT_KEY"
    having max(case when a.attribute_name = 'dateScheduled'
                        then "A"."CREATED_DATE" else null end) is not null
    (where datepart("DW", <date>) returns the day of week.  It's not clear what DB you are using.)
    This assumes that the installer date is within 32 days or so of the scheduled date.  Increase the 45 (or remove the date condition altogether - but that would be very slow on a big table) if that's not the case.
    sysdate - datepart() returns the prior Saturday,
    subtracting 7 days is the end of your week period (Saturday) two weeks ago,
    subtracting 13 is the Sunday of your week period two weeks ago.
    The case statement within the max() database aggregate functions will be null, and therefore not effect the results, if the attribute name is not the one we are interested in at the moment.
    The having clause will restrict the returned records to those objects scheduled within the week of interest.  (Since the WHERE clause is using an OR, there may be records with installerContact date > 45 days ago, but the dateScheduled is not within our week of interest.  In that case, the max() in the HAVING clause will be null.)
    And it's all done with one database query! 
    HTH,
    Carl

  • In SQL server, how can I pass a date and return on any specific day of the week (e.g. Sunday/Monday/Wednesday, etc.)

    In SQL server, I want to be able to have a function to return the date of any specific day of the week by passing two parameters. E.g.:
    parameter 1: a selected date (e.g. 8/3/2013)
    parameter 2: any specific day of the week (e.g. Wednesday)
    result: should be 7/31/2013 (8/3/2013 is a Sunday in the week 7/28 - 8/3, so the Wednesday should be 7/31/2013)
    then if I want to get Saturday of that week, I can simply change the second parameter to 'Saturday'
    Thanks.

    Wrong forum:
    http://www.microsoft.com

  • Populate week number: week starts from saturday

    Hi All,
    We populated the calendar table where we have populated the week number (1-53) by taking sunday as the week start date.
    But we need to populate the weeknumber(1-53), with week start day as saturday.Please
    Here is the alredy populated data.
    Day WeekNumber Mon date
    Sunday     1     January     1/1/2012
    Monday 1 January 1/2/2012
    saturday 1 January 1/7/2012
    Sunday 2 January 1/8/2012
    we have to populate the weeknumber with saturay as the weekstart date
    Thanks All.

    Hmmm , after re-reading the OP's question I realise I have provided a comprehensive and well-researched answer to a different question. Must be getting over-excited, it being so close to Christmas. Anyway, I'm going to leave this answer up for the time being, until I can find a better home for it.
    The day number is a function of your NLS_TERRITORY setting, a parameter derived from NLS_LANG . For instance when the locale is 'AMERICAN' the first day of the week is SUNDAY but when the locale 'ENGLISH' it's MONDAY. It is possible to mix'n'match language and territory. [url http://docs.oracle.com/cd/B28359_01/server.111/b28298/ch3globenv.htm#i1007222]Find out more.
    So, if you set the NLS_TERRITORY to somewhere in the Islamic world, say Kuwait, you will find that Saturday is day 1 of the week. You can do this at the session level:
    sql> alter session set nls_territory = 'KUWAIT';
    Session altered.
    SQL> select to_char(sysdate+1, 'DAY') as day_name
       2            , to_char(sysdate+1, 'D') as day_no
       3    from dual;
    DAY_NAME  D
    SATURDAY  1Cheers, APC
    Edited by: APC on Dec 21, 2012 11:07 AM

  • Get a saturday and sunday dates

    HI,
    i need a days which are sunday and saturday, when i given a range of period i want to get days which are saturday and sunday within that range.
    if any fm just suggest me.
    Tahnks a lot.

    Hi,
    Please find below an example on how to get the Weekend in shorttext, the dates and the total of weekend for the input date. I used only the FM ''DAY_ATTRIBUTES_GET'' . Please reward if you found useful. Thanks
    REPORT zastest.
    Data Declaration
    TABLES : scal.
    DATA : itab TYPE TABLE OF casdayattr,
           wa_itab LIKE LINE OF itab.
    DATA : l_line TYPE i,
           l_wkend TYPE i.
    Selection Screen
    SELECT-OPTIONS p_date FOR scal-date.
    START-OF-SELECTION.
      CLEAR : l_wkend.
      CALL FUNCTION 'DAY_ATTRIBUTES_GET'
       EXPORTING
      FACTORY_CALENDAR                 = ' '
      HOLIDAY_CALENDAR                 = ' '
         date_from                        = p_date-low
         date_to                          = p_date-high
         language                         = sy-langu
      NON_ISO                          = ' '
    IMPORTING
      YEAR_OF_VALID_FROM               =
      YEAR_OF_VALID_TO                 =
      RETURNCODE                       =
        TABLES
          day_attributes                   = itab
       EXCEPTIONS
      FACTORY_CALENDAR_NOT_FOUND       = 1
      HOLIDAY_CALENDAR_NOT_FOUND       = 2
         date_has_invalid_format          = 3
         date_inconsistency               = 4
         OTHERS                           = 5
      IF sy-subrc <> 0.
        CASE sy-subrc.
          WHEN '3'.
            WRITE : 'Date has Invalid Format'.
          when '4'.
            WRITE : 'Date Inconsistency'.
          WHEN '5'.
            WRITE : 'Other exceptions'.
        ENDCASE.
      ELSE.
        DESCRIBE TABLE itab LINES l_line.
        IF l_line GT 0.
          LOOP AT itab INTO wa_itab.
            WRITE : / wa_itab-day_string.
            CASE wa_itab-weekday.
              WHEN '6'.  l_wkend = l_wkend + 1.
              WHEN '7'.  l_wkend = l_wkend + 1.
              WHEN OTHERS.
            ENDCASE.
          ENDLOOP.
          WRITE : / 'l_wkend - ', l_wkend.
        ENDIF.
      ENDIF.
    END-OF-SELECTION.
    Regards,
    Loo

  • Highlight column in weekly view - Working time

    All,
    I have a requirement, I need to highlight the columns sunday and saturday  to a different color in  the weekly view of record working time iView .Could anybody please tell how can this be accomplished
    John

    Hi Chris
    Thanks for your blog, as always. I had the exact same requirement and disaapointed that ctrl+right click did not had an option and was wondering if I have to do a NWDI customization for this simple change. It was an excellent blog and solved my issue.
    If you rember, I was there at CF!!
    Thanks John, for intiiating the question that made Chris to write the blog..
    Thanks, Raj

  • Time split at the end of working week

    Hello
    We do use the field working week on infotype 7 (using feature WWEEK) and this drives when an employees week starts and ends.
    For example i have an employee set up in such a way the week starts on Sunday (00:00 AM) and Ends on Saturday midnight.
    Currently if this employee works on the night of the last day of the working week here is how he gets paid.
    Saturday 9 pm to Sunday 5 am. Currently he gets paid 8 hrs of Regular time for Saturday. The 8 hours are included in the pay week Sunday thru Saturday.
    In the new requirement this should be 3 hrs on Saturday (9 pm to 12 AM) and 5 hours on Sunday (12 am to 5 am).
    By this way in payroll the 5 hours worked on Sunday will be paid in next week (Next Sunday thru Saturday).
    I know how to split the 8 hrs time record but not sure how to change the date assigned to the record.
    This is as per the new union contract requirements. Is there a custom function or operation that SAP provided so we can change the date assigned to a time pair?
    Thanks in advance.

    Did you got solution? Can you please reply me if you got solution.
    Thanks!

Maybe you are looking for

  • Problem with code-Please Help!!!

    Hey guys i have some problems with the following code: 1. I have to do a stutter and reverse of an array [ 2 4 ] and it should return [ 4 4 2 2 ]. I wrote the code and i get [ 2 2 4 4]. How can this be fixed? public class Part1      public static voi

  • Threads Oversleep for seconds

    Hi, I have a problem that in my application threads tend to oversleep for long periods of time. I set the sleeping time for 1 second, but the thread may wakeup after 13 seconds. I also tried to use quartz scheduling and TimerTask with similar results

  • Maintenance Order Number Ranges.

    Hi Gurus, I am working on the configuration of the Maintenance Orders for my client. I am trying to create 5 different number ranges for the five different order types to be used for five different processes. I have created the number range groups bu

  • Upgrading from 10.4.11 to 10.5 - question

    I just received my 10.5 install dvd & I'm going to do an "archive & install" on my G5 iMac (non-Intel processor) but before I do so I'm trying to make sure that all my 3rd party software (Photoshop, Lightroom, Office) will remain intact ... I've back

  • How to prevent Node deletion

    Hi, Is it possible in DRM to have a validation for not deleting of node having some particular mapping conditions or properties assigned. Can we prevent node deletion with validation rules.