Current day "shift starts from previous day" night 23:00 hours

Hi Experts,
I have a challenging scenario in Positive Time Management which is current day 1st shift time starts from previous day 23:00 hours (eg: previous day 23:00 to 07:00 current day).
As per my knowledge in SAP Time Management, Shift start time is considered as current day, but for my scenario Shift End time has to consider as a current day.
I couldnu2019t brought this shift forward to as 3rd shift because Production Incentives amounts and public holidays are computing based on previous day 23:00 hours.
Points will be awarded for helpful solution.
Regards
Raju

While you create a recod in the IT 2011 as you give
next field you wil be having a field for previous day option if you choose that
p20 for out time
ex: 7:00 am i.e next day but still it will count for the current day
Best Regards

Similar Messages

  • How sm36 a job that will be executed every 2 hours in current day.

    i need define a job with sm36. The job must be executed current day and every 2 hours. i can't realize it. Could you help me? . It mentioned that the job exclude next day's time before the current defination's time.
      pleas help me ,thanks very much!

    Hi,
    In SM36 once u entered job name & job class, then select the TAB - START CONDITION .There u can find relevent tabs according to ur requirement like for successor jobs or u can schedule for hourly also under PERIODIC values.U need to be very careful before u r sheduling periodic jobs.
    Rgds,
    Gadde.

  • How to get elapsed time from start of current day

    Hello,
    I've tried to use the DateDiff function to calculate the elapsed time, starting from 00:00:00:000 (Midnight of current day), but I'm getting hung up on how to inform the function of what date values it should use.  I could parse off the time section
    of the
    GetDate() function, but that doesn't seems a little klunky to me. 
    So, what I'm trying to capture is this (pseudo code): 
    Elapsed Time (int) =    Select DateDiff(seconds, Current Day.Midnight, CurrentDay.CurrentSecond)
    Any help is greatly appreciated.
    Cap

    Hello,
    So something like this? You can change it around, I used variables so you can see and check (and play with) the values.
    DECLARE @CurDay DATE = GETDATE()
    Declare @SecondsToDate INT
    SELECT @SecondsToDate = DATEDIFF(SECOND, @CurDay, GETDATE())
    SELECT @SecondsToDate AS SecondsPastMidnight
    -- do the check
    SELECT DATEADD(SECOND, @SecondsToDate, CAST(@CurDay AS DATETIME))
    Sean Gallardy | Blog | Microsoft Certified Master

  • How to get previous day data if i dont have current day data.

    Hello Gurus,
    I have a stock levels data in ODS. when there is no movements, we are not getting any stocks into ODS. So we have to get previous day data as it is for current day data into another ODS.
    Could you please help me in this regard.
    Thanks in advance,
    Rama

    Rama -    
            0CALDAY can't help us in this scenario .
    Step 1 :
        To do this - You have to add one ZDATE (InfoObject ) to 1st ODS. ZDATE is updated by itself from current date of system  when ever you are loading data to 1st ODS.
    Step 2:
       You have to do full update to 2nd ods.At the selection screen of InfoPackage  (from 1st ODS to 2nd ODS ) you have to write following code for ZDATE.
    pseudo Code:
    1) Select fields "Rec_INSERT","Time stamp","Request Status" and "Request ID"  where ICUBE = ODS1 from table "RSMONICDP"
    2) Populate above selected fields data in INTERNAL TABLE
    3) Sort INTERNAL TABLE by Time stamp .
    4)
         If (Record Count = ' 0 ' for current date in internal table )
         update records from  ODS1 to ODS2 where ZDATE = "yesterday date"
         else
         update records from ODS1 to ODS2 where ZDATE= "today date"
         endif.
    Make sure this is full update not delta update from ODS1 to ODS2
    I am sorry, I m not good in Coding but I am sure if  u use this logic,You can meet your requirement.
    I hope you can understand my logic. Let me know if you have any questions,
    Anesh B .

  • How to return the week number starting from Sunday as the first day

    Hi Friends,
    My application needs to have a report for the weekly totals and must have the Sunday as the first day for the week. For example, January of 2005 should be in the report for having six weeks, Jan 1 is Saturday, this is week 1, Week 2 is from 2 to 8, and the last week , week 6 has 30 and 31. Days need not be displayed, only the week number as follows:
    Week Number Total Sales
    =========== =========
    Week 1 8,525
    Week 2 8,168
    Week 3
    Week 4
    Week 5
    Week 6
    The discoverer hierarchies function for week (eul_date_trunc(item_date, '"W"W')) seems to start the week from the first day of the month regardless of the day. Oracle function TO_CHAR(item_date, 'W') does the same thing, .As the result, the January of 2005 has only 5 weeks.
    Any help or advice for this issue will be greatly appreciated.
    Thank you very much,
    J.K

    Try this
    ---------------------------------------------actual formula---------------
    select ceil(
    ( to_number(to_char(to_date('1-'||to_char(sysdate,'MON-YYYY'),'DD-MON-YYYY'),'D')) -1
    + to_number(to_char(sysdate,'DD'))
    ) / 7
    week_number
    from dual
    e.g try different dates below by replacing 31-Jan-2005
    select ceil(
    ( to_number(to_char(to_date('1-'||to_char(to_date('31-JAN-2005'),'MON-YYYY'),'DD-MON-YYYY'),'D') ) -1
    + to_number(to_char(to_date('31-JAN-2005'),'DD'))
    ) / 7
    week_number
    from dual
    How does it work
    week number is calculated by dividing the current day number by number of days
    so in your case if the week starts at a different day , you just add the offset and divide by 7
    In the first part, i am finding the week day number for the 1st day of the current month and this is used as offset.
    Hope this helps
    -nj
    http://www.infocaptor.com

  • I cal freezes on start up on current day.

    Hi all, can anyone suggest and idiots guide and solution to my i-cal freezing on current day on start up? many thanks (if not is their a good calendar from someone else i can download that will work with my macbook?) cheers all.

    deano198,
    Try refreshing the iCal plist file, and the "Calendar Cache" file. You will find the "com.apple.iCal.plist" file in your Macintosh HD/Users/yourusername/Library/Preferences Folder. Quit iCal, and drag the .plist file to your Desktop.
    Also find the "Calendar Cache" file in the Macintosh HD/Users/yourusername/Library/Calendars Folder. Drag the Calendar Cache file, or any other "Cache" files which may be in the Calendars Folder to the Desktop. Then log out/in or restart and check iCal for normal behavior.
    ;~)

  • Calendar days to start from Monday to Sunday

    Guys,
    On the Calendar functionality, when viewing the appointments by week then is it possible to have the day to start from Monday to Sunday?
    Currently, it starts at Sunday to Saturday.

    At this time the calendar is set for Sunday to Saturday. I would recommend submitting a enhancement request to On Demand customer care.

  • Function module to get holiday class from work schedule for current day

    I need to determine what the public holiday class value is for the current day in a user exit.  Is there an SAP function module that can return me this data?  This would be the information that is displayed when pressing the work schedule button from infotype 0007

    Function module HOLIDAY_CHECK_AND_GET_INFO is closer to what I need.  This function module returns an X if the day is a holiday.  I will create a Z program and instead of returning an X for a holiday I will return the THOL-KLASS (holiday class) value.

  • A day from previous month

    Hi,
    Is there any function module to get a day from previous month? I tried FM 'CCM_GO_BACK_MONTHS', but it is not working correctly.
    If I give the sy-datum input as '03/30/2007', it is giving the previous month date as '02/30/2007'
    Thanks,
    Uma.

    Try.....
    report zrich_0001 .
    data: day_from_previous type sy-datum.
    call function 'RE_ADD_MONTH_TO_DATE'
      exporting
        months        = '-1'
        olddate       = sy-datum
      IMPORTING
        NEWDATE       =  day_from_previous.
    write:/  day_from_previous.
    Please be sure to award points for helpful answers to all your threads today, and mark as solved when answered completely.  Thanks.
    Regards,
    Rich Heilman

  • Of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    i use ipad mini with retina display 16gb i love playing clash of clans but due to shortage of space i want to delete it for some days.If i delete the app and then reinstall it after a month should i start from the beginning or cont. from where i left

    However, I originally had the kindle app on there and when he is reinstalling it comes up with my kindle account. How do we change this?
    OPen teh Kindle app.
    Tap the i at bottom right then Settings > Deregister this device.
    -> http://www.amazon.com/gp/help/customer/display.html?nodeId=200375710&#managedevi ces
    He does not have an actual kindle so I am not sure if he would be able to create one anyways.
    The Kindle app is so you do not have to use a Kindle. Yes, he can have a Kindle account and not own an actual Kindle hardware device.

  • Hello.I have purchased a black 32gb iPhone 4 just two days back.Yesterday while putting my phone on charge,I noticed a deep thin scratch on the antenna in a straight line starting from the charging point to the speakers.Is it a manufacturing fault?

    Hello.I have purchased a black 32gb iPhone 4 just two days back.Yesterday while putting my phone on charge,I noticed a deep thin scratch on the antenna in a straight line starting from the charging point to the speakers.Is it a manufacturing fault?The scratch is quiet strange.It's a thin straight line,which I initially mistook to be a design.Can anyone tell me what it is?

    All warranty issues including manufacturing defects, are determined and handled by the Apple Genius. If your iPhone has any problem, contact Apple and they will solve the issue.
    "deep thin scratch on the antenna in a straight line starting from the charging point to the speakers"..... The only thing between the charging port and the speakers is a small screw on both sides of the port?

  • Restore Data from Previous Day

    I have my SQL Database Web Edition hosted on Azure, some stupid user deleted his data, how can I restore from previous day data? 
    TIA
    SV

    Hi vai,
    According to your description, as Mekh’s post, Microsoft Azure SQL Database service has built-in backups to support self-service Point in Time Restore ,Geo-Restore, Point in Time Restore and Geo-Restore are enabled for Basic, Standard, and
    Premium service tiers.
    In a SQL Azure Web database, you need to create a backup, then it will restore and protect your data from application or users errors.
    There is an article about how to setup a backup and restore strategy for a Windows Azure SQL Database. You can review it.
    http://www.mssqltips.com/sqlservertip/3057/windows-azure-sql-database-backup-and-restore-strategy/
    Regards,
    Sofiya Li
    Sofiya Li
    TechNet Community Support

  • Is there a way to default the monthly calendar display so that the current day always shows on top?

    Is there a way to default the monthly calendar display
    so that the current day always shows on top? ie, I want to always be able to see what's in the future 3-4 weeks, not what's in the past 3-4 weeks. The default monthly display is archaic--only allows you to see through the last day of the month. Suddenly today
    is Oct. 30th, and I have a ton of projects lined up in November, but because I haven't been scrolling down every day, I haven't been aware of them every day. I realize there are other tools in Microsoft to help me stay on task, such as reminders and such,
    but it would be helpful if I could always have the current day display on top of the monthly view so I can quickly scan what's coming up in the next few weeks. 

    Thank you!
    Right, I already have it in Month view. My question is a little more specific--I'd like for the current day to always display at the top. For example, today is Oct. 31st, so the current day is at the bottom of the calendar since it is the last day of the month.
    I can view everything in October that I've already completed. What I can't see are the future weeks because we haven't hit November yet. I'd like for the current day to always display at the top of my calendar so I can always see what's coming in the following
    three - four weeks (whether they're a part of that month or not). I've been to other forums trying to find the answer, and have come across the same exact question from frustrated users--but there seemed to be no solution. So I'm posing the question myself
    in this forum. Do you know if this is possible? What I found from other forums is that Outlook defaults to a physical 'desk' type calendar format--so just as I'd use a paper calendar at my desk, I wouldn't be able to see the following weeks unless I either
    flip the page to that month or I come to the first day of the next month, thereby tearing the the old month off and now only able to see the current month. That format is just so...paper...and archaic! Essentially I want the calendars to loop so it doesn't
    even really matter what month it is--I just always want to see what lies ahead without having to scroll down. With our being in the Technology Age, I'd assume this is a logical expectation, but we may be stuck with the replica version of the paper-desk-calendar
    format until Outlook programmers add this Technology Age feature in newer versions.  
    See, this month kind of messed me up because I have so many projects for November that start tomorrow and next week, but I haven't seen them until this week. I would have been better quipped--at least expecting them--had I been able to see all of those projects
    since last week or the week prior.  
    If there is no solution to this answer, would you know how I can contact Outlook to provide feedback? I'm guessing a newer version is on its way...
    Thanks again in advance!

  • Highlighting Current Day on Javascript Calendar

    Good day everyone,
    I have the script I have worked on from a book.
    However, I am confused as to how I can highlight the current day of the  month, so that any one looking at the calendar knows what the date is.
    I would like to make the current day background color red and the text white.
    I also need the current Month defaulted, say like December so it load with the calendar when the page loads.
    I have been messing with this code all evening, no luck, or I am just not smart.
    Any help will be greatly appreciated
    Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>JavaScripted Dynamic Table</title>
    <script type="text/javascript">
    // function becomes a method for each month object
    function getFirstDay(theYear, theMonth)
    var firstDate = new Date(theYear,theMonth,1);
    return firstDate.getDay();
    // number of days in the month
    function getMonthLen(theYear, theMonth)
    var oneHour = 1000 * 60 * 60;
    var oneDay = oneHour * 24;
    var thisMonth = new Date(theYear, theMonth, 1);
    var nextMonth = new Date(theYear, theMonth + 1, 1);
    var len = Math.ceil((nextMonth.getTime() -
    thisMonth.getTime() - oneHour)/oneDay);
    return len;
    // create array of month names
    theMonths = new Array("January", "February", "March", "April",
    "May", "June", "July", "August", "September",
    "October", "November", "December");
    // deferred function to fill fields of table
    function populateFields(form)
    // initialize variables for later from user selections
    var theMonth = form.chooseMonth.selectedIndex;
    var theYear = form.chooseYear.options
    [form.chooseYear.selectedIndex].value;
    // initialize date-dependent variables
    // which is the first day of this month?
    var firstDay = getFirstDay(theYear, theMonth);
    // total number of <TD>...<\/TD> tags needed in for loop below
    var howMany = getMonthLen(theYear, theMonth);
    // set month and year in top field
    form.oneMonth.value = theMonths[theMonth] + " " + theYear;
    // fill fields of table
    for (var i = 0; i < 42; i++)
    if (i < firstDay || i >= (howMany + firstDay))
    // before and after actual dates, empty fields
    // address fields by name and [index] number
    form.oneDay[i].value = "";
    else
    // enter date values
    form.oneDay[i].value = i - firstDay + 1;
    </script>
    </head>
    <body>
    <h1>Month at a Glance (Dynamic)</h1>
    <hr />
    <script type="text/javascript">
    // Initialize variable with HTML for each day's field.
    // All will have same name, so we can access via index value.
    // Empty event handler prevents
    //reverse-loading bug in some platforms.
    var oneField = "<input type='text' name='oneDay' size='2' onfocus=''>";
    // Start assembling HTML for raw table:
    var content = "<form><center><table border='1'>";
    // Field for month and year display at top of calendar:
    content += "<tr><th colspan='7'>";
    content += "<input type='text' name='oneMonth'><\/th><\/tr>";
    // Days of the week at head of each column:
    content += "<tr><th>Sun<\/th><th>Mon<\/th><th>Tue<\/th><th>Wed<\/th>";
    content += "<th>Thu<\/th><th>Fri<\/th><th>Sat<\/th><\/tr>";
    content += "<tr>";
    // layout 6 rows of fields for worst-case month
    for (var i = 1; i < 43; i++)
    content += "<td align='middle'>" + oneField + "<\/td>";
    if (i % 7 == 0)
    content += "<\/tr><tr>";
    content += "<\/table>";
    // blast empty table to the document
    document.write(content);
    </script>
    <form>
    <select name="chooseMonth">
    <option value="January" selected="selected">January</option>
    <option value="February">February</option>
    <option value="March">March</option>
    <option value="April">April</option>
    <option value="May">May</option>
    <option value="June">June</option>
    <option value="July">July</option>
    <option value="August">August</option>
    <option value="September">September</option>
    <option value="October">October</option>
    <option value="November">November</option>
    <option value="December">December</option>
    </select>
    <select name="chooseYear">
    <option value="2010" selected="selected">2010</option>
    <option value="2011">2011</option>
    <option value="2012">2012</option>
    <option value="2013">2013</option>
    <option value="2014">2014</option>
    <option value="2015">2015</option>
    </select>
    <br />
    <input type="button" name="updater" value="Update Calendar"
    onclick="populateFields(this.form)" />
    </form>
    </body>
    </html>

    OK, I have worked out how to do it. My earlier problem was that I wasn't applying the style property correctly to the input field. Amend the populateFields() function like this:
    function populateFields(form)
      // initialize variables for later from user selections
      var theMonth = form.chooseMonth.selectedIndex;
      var theYear = form.chooseYear.options[form.chooseYear.selectedIndex].value;
      // initialize a variable for the current month
      var currentMonth = false;
      // get the current date
      var today = new Date();
      // if the selected month and year match, it's the current month
      if (today.getMonth() == theMonth && today.getFullYear() == theYear) {
        currentMonth = true;
      // initialize date-dependent variables
      // which is the first day of this month?
      var firstDay = getFirstDay(theYear, theMonth);
      // total number of <TD>...<\/TD> tags needed in for loop below
      var howMany = getMonthLen(theYear, theMonth);
      // set month and year in top field
      form.oneMonth.value = theMonths[theMonth] + " " + theYear;
      // fill fields of table
      for (var i = 0; i < 42; i++)
        // reset the styles for the input fields
        form.oneDay[i].style.backgroundColor = 'white';
        form.oneDay[i].style.color = 'black';
      if (i < firstDay || i >= (howMany + firstDay))
        // before and after actual dates, empty fields
        // address fields by name and [index] number
        form.oneDay[i].value = "";
      else
        // enter date values
        var val =  i - firstDay + 1;
        // if it's the current month and date, change the styles
        if (currentMonth && val == today.getDate()) {
          form.oneDay[i].style.backgroundColor = 'red';
          form.oneDay[i].style.color = 'white';
        form.oneDay[i].value = val;
    I have added comments indicating what the new code does. You need to reset currentMonth and the styles of the input fields each time the calendar is populated. Otherwise, the old values are preserved each time you select a new month and/or year.

  • How to relate current day to date hierarchy [year - month - day] for SSRS report paramenter

    Hi there: 
      I've created a SSRS report based on OLAP cube. In this report, there is a date parameter which is used to filter out data. 
    Now , I want this report to be run and always retrieve data from previous day. I need to supply the date parameter with something
    like SQL syntax: DATEADD(dd,-1,GETDATE())  . The question is how can I do that in the MDX world? 
     thanks
     Hui
    --Currently using Reporting Service 2000; Visual Studio .NET 2003; Visual Source Safe SSIS 2008 SSAS 2008, SVN --

    Hi Hui,
    According to your description, you need to retrieve data from previous day, so you are looking for an expression in MDX which can achieve the requirement like SQL syntax: DATEADD(dd,-1,GETDATE()), right?
    As per my understanding, it easy to achieve this requirement in report level ranther than in MDX query level. You can create another hidden parameter "Date2" using the expression below.
    =DateAdd("d",-1,Parameters!Date.Value)
    Then use Date2 parameter to filter in the query.
    If don't want to create another parameter, you can use it like below.
    Year     =DatePart("yyyy",DateAdd("d",-1,Parameters!Date.Value))
    Quarter  =DatePart("qq",DateAdd("d",-1,Parameters!Date.Value))
    Month    =DatePart("mm",DateAdd("d",-1,Parameters!Date.Value))
    Week     =DatePart("ww",DateAdd("d",-1,Parameters!Date.Value))
    Besides, DateAdd function is supported in MDX, please refer to the link below.
    http://msdn.microsoft.com/en-us/library/hh510163.aspx
    If I have anything miunderstand, please point it out.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

Maybe you are looking for

  • How to run  multi reports at a time using button

    dear all i have a button on form, that call a report abc.rep. when i press the button report is displayed. now i want to show another view of that report when i press button second time. but it doesn't appear. when i close the first report that it ge

  • Regarding work flow in the organisation

    Hello,       I am new to SAP XI. I want to join as a SAP XI developer. So I want to know about the work flow in the organisation. Means who will raise issues and who will take care of it first. and how it will reach to SAP XI developer.     What are

  • T41 screen goes dark after one second while powering up

    T41 2379-DKU running XP Pro. I power on the machine, the screen lights up with the logo for a second and goes totally dark, but I can still very dimly see the logo on the screen with room lighting. I replaced the motherboard a year ago for the "flex"

  • Error in MDDataSetBW.GetCellData when Scheduling

    Dear Experts, We have a Web Intelligence report that refreshes in the Rich Client without a problem. If we try to schedule this report, we receive the following error message. A database error occurred. The database error text is: Error in MDDataSetB

  • Passing Opaque Objects from Oracle to Java

    Hi all I am trying to write a stored procedure that needs to be called from different triggers. Each triggers needs to pass a different set of data to the stored procedure. Now the problem is that i need to pack the different set of data into one opa