Time Statement - Date Period Selection

Hi Experts,
In ESS portal->Time Statement link, we are having this situation.
When i change the "Date From" or "Date To", and clicked button "Display", \
the "Date From" will always how "Start date of current month",
and the "End Date" will show the "Current date".
Say,
Default date, as below
Date From          |  Date To
"01-Jan-2011"   |  "17-Jan-2011"
and i changed Date From to "04-Jan-2011", and clicked button "Display".
The "Date From" and "Date To" will be defaulted back to the original.
I am not sure if this is the normal behavior?
Thanks.
Tee

Hi,
We tried thisTESD, but, we see the Period selection.
I thought we should see a field with date selection for TESD?
Is there anything that we need to do after changing the feature?
Thanks.
Tee
TESP Form for time statement in ESS with Period selection
TESD Time statement in ESS with date selection

Similar Messages

  • How to implement aggregation for different date periods

    We have a report which shows various metrics for a given date period, selected by date prompts.
    The problem is that one of the metrics should show data only for the first day in the range, selected by the prompt.
    So, for example, if user selects in the prompt the range Oct 1 - Oct 10, then that particular column should only show data for Oct 1, while all others - for Oct 1 - Oct 10.
    Any suggestions how to implement this would be appreciated.

    Please try to play around with case statements in the fact column.

  • Error in Time Statement Periodic iView (ESS)

    Hello,
    We're using SAP EP7 Stack 7, ESS 600 SP7. When we try to execute Time Statement Periodic iView, we get the following error.
    Does anybody know how can we resolve it?
    Thanks in advance.
    Parameter MESSAGE in structure BAPIRET2 not filled  
    java.lang.Exception: Parameter MESSAGE in structure BAPIRET2 not filled
         at com.sap.pcuigp.xssfpm.java.BapiretUtil.getMessageTextFromBapiret(BapiretUtil.java:31)
         at com.sap.pcuigp.xssfpm.java.MessageManager.reportMessage(MessageManager.java:187)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.reportBapiRet2Error(FcRepFramework.java:520)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.callRfcExecAction(FcRepFramework.java:374)
         at com.sap.xss.hr.rep.fcrfw.FcRepFramework.initModel(FcRepFramework.java:292)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFramework.initModel(InternalFcRepFramework.java:256)
         at com.sap.xss.hr.rep.fcrfw.FcRepFrameworkInterface.initModel(FcRepFrameworkInterface.java:136)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface.initModel(InternalFcRepFrameworkInterface.java:198)
         at com.sap.xss.hr.rep.fcrfw.wdp.InternalFcRepFrameworkInterface$External.initModel(InternalFcRepFrameworkInterface.java:258)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelection.onInit(VcTimPerSelection.java:238)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelection.onInit(InternalVcTimPerSelection.java:246)
         at com.sap.xss.hr.tim.per.selection.VcTimPerSelectionInterface.onInit(VcTimPerSelectionInterface.java:162)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface.onInit(InternalVcTimPerSelectionInterface.java:144)
         at com.sap.xss.hr.tim.per.selection.wdp.InternalVcTimPerSelectionInterface$External.onInit(InternalVcTimPerSelectionInterface.java:220)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:563)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:437)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:195)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:429)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:700)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:269)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:752)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Belen Fernandez,
    Did you solve the problem, even I am running into the same problem.
    reagrds.

  • HR report Category - only time period selection

    Hi experts,
    Do you know what is the name of HR report category which allow only time period selection? Thanks!

    Hi Anthony,
    <li>There are few predefined HR Report categories for time data.
    XX_20002
    XXX20001
    XXXX2001
    Thanks
    Venkat.O

  • Unable to view Time-Statement  for the Chosen period in Portal

    Hi ,
    I am unable to get the timestatement for the Chosen period in Portal
    What are the configurations that are to be made for the Timestatements to get dispalyed at the Portal end .
    At r/3 end , we have a timestatement data  for an employee and moved that to a Cluster B1. so how does it reflect in the portal.
    What am i missing to get that Timestatement to get displayed on Portal
    Regards,
    Vijay

    Hi there,
    As of what I see it is an MSS scenario.In this you used a business package, iviews. There should be a webdynpro application or BSP application running at the front end to get this out.
    Now, as you mentioned at the R/3 end you have a time statement. So if your web  application is programmed properly, it will fetch the req. time data from backend. What you need to see is that the web application is bug free.
    You need to do some debugging there, if the right data is fetched.
    but before all this, you need to check if your portal worksets in the business package are set up properly, along with the iviews, pages.
    Regards,
    Bharat
    Message was edited by:
            Bharat

  • Three select statement data in to One Internal table

    HI All,
          By using 3 select statement, data is displying by using work area (classical report). Now i want define three internal table for three select statements, and finally get the data in one final itab, and pass this to function module (ALV Report).
    looking for response

    hi,
    just go through this simple example. no need of declaring 3 itabs.
    data: begin of st1,
            a1 type c,
            a11 type i,
          end of st1.
    data: begin of st2,
            a2 type i,
            a22 type c,
          end of st2.
    data: begin of st3,
            a3 type i,
            a33 type i,
          end of st3.
    data: begin of fin_struct.
              include structure st1.
              include structure st2.
              include structure st3.
    data: end of fin_struct.
    data: fin_itab like table of fin_struct with header line.
    *1st structure  values
    move 'a' to fin_itab-a1.
    move 1 to fin_itab-a11.
    *2nd structure values
    move 11 to fin_itab-a2.
    move 'b' to fin_itab-a22.
    *3rd structure values
    move 15 to fin_itab-a3.
    move 12 to fin_itab-a33.
    *appending 1st record.
    append fin_itab.
    *1st strcuct values
    move 'b' to fin_itab-a1.
    move 3 to fin_itab-a11.
    *2nd structure values
    move 22 to fin_itab-a2.
    move 'c' to fin_itab-a22.
    *3rd structure values
    move 20 to fin_itab-a3.
    move 30 to fin_itab-a33.
    *appending 2nd record.
    append fin_itab.
    loop at fin_itab.
    write:/ fin_itab-a1, fin_itab-a11, fin_itab-a2, fin_itab-a22, fin_itab-a3, fin_itab-a33.
    endloop.
    here structre1,2,3...
    i used move statement.
    here u write select statement.. into struct1,2,3....
    using move u move all the values ...
    finally append it to final itab...
    rest of and all common for ALV...
    Regards,
    Shankar.

  • Select key date of time-dependent hierarchy before select a hierarchy node

    Hello experts!
    I have a Web Application which has a selection on 0ORGUNIT (organizational unit). The selection is on hierarchy nodes and the hierarchy is time-dependent.
    Because of the time-dependency I have to give a key date for the hierarchy. But I want to select the key date at runtime/execution of the query and additionally I want to select the hierarchy node and other selection criterias.
    Maybe there is a solution to get all this in one pop-up or maybe in two or another solution how I can implement this requirement.
    Thanks for help!
    Peter

    Hey!
    You don't have to use the same presentation-hierarchy like  the selection-hierarchy is which you use for the variable. While presentation-hierarchy always has a key-date, the selection-hierarchy has none. So you see all values for selection but just this which are valid for the presentation-hierarchy are selected. And there is a warning which you can supress over RSRT.
    This solution works for our problem, maybe not for yours, don't know.
    Best regards,
    Peter

  • Time dependent data load to BW using Fixed Time Interval selection

    Hi,
    I'm facing a problem in extracting time-dependent master data to BW. I would really appreciate if anyone can help in this regard.
    We have a table in R/3 which has time-dependent data. For example, for a single OBJID we could have multiple records with different BEGDA/ENDDA and different attributes. When we try to load this data into BW InfoObject, we see a time-dependent data selection in update tab of infopackage. We need to select BEGDA/ENDDA in datasource since otherwise during loads we would get a "DUPLICATE RECORDS" load error in BW.
    The problem is when we enter a Fixed-time interval Start Data and End Date in the InfoPackage, only the records with that StartDate and EndDate are loaded. Ideally I would want to see all the records whose BEGDA/ENDDA falls in the range of StartDate and EndDate.
    I tried modifying the ROOSFIELD table for the data source. I made the BEGDA SELOPTS as GE(16) and ENNDA SELOPTS as LE(64). But still it doesn't seem to work. I checked if the change to ROOSFIELD has any affect in RSA3. Unless we give a range for BEGDA it doesn't seem to behave as expected. Could someone let me know how I can load all records to BW whose BEGDA/ENDDA fall in the range of StarteDate and EndDate.
    Thanks,
    Anil.

    Anil,
    If you are using a custom dataSource, make sure the dataSource fields for begda and ennda are labeled "datefrom" and "dateto".
    Cheers,
    T-

  • Reducing Data base selection time

    Hi,
    I need to get the Excise Documnets which are not Billed. For that I've used following logic. But it is taking much time to get the data.
    SELECT a~exnum
             a~exyear
             a~exdat
             a~rdoc2
             SUM( a~exbed )
             SUM( a~ecs )
             SUM( a~exaddtax1 )
             b~vbtyp
             b~knumv
             b~bukrs
             b~kunrg
          FROM j_1iexcdtl AS a INNER JOIN vbrk AS b
          ON ardoc2 EQ bvbeln
          INTO TABLE lt_excise WHERE a~exdat IN s_fkdat      AND
                                     a~status EQ 'C'          AND
                                    a~exdat ge '20090401'   AND
                                     NOT EXISTS ( SELECT vbeln FROM vbrk WHERE vbeln EQ a~rdoc3 AND
                                                                               vbtyp EQ 'M' ) AND
                                     b~vbtyp EQ 'U'          AND
                                     b~bukrs IN s_bukrs      AND
                                     b~kunrg IN s_kunrg
                               GROUP BY a~exnum
                                        a~exyear
                                        a~exdat
                                        a~rdoc2
                                        b~vbtyp
                                        b~knumv
                                        b~bukrs
                                        b~kunrg.
    Pl help to reduce the time for database selection.
    Regards,
    Rajiv. V

    Hi,
    To decrease the load on DB ,you can process Group by and SUM functions in Loop Endloop of resulting table.
    Avoid using Subqueries with not condition.I read ,NOT compromises the index and starts linear search.
    There are already many discussions on usage on For all entries and Join .So search forum for more details.
    The performance of join and For all entries are context oriented.
    SELECT a~exnum
    a~exyear
    a~exdat
    a~rdoc2
    SUM( a~exbed )                 "  Avoid using SUM use Control break in loop endloop
    SUM( a~ecs )
    SUM( a~exaddtax1 )
    b~vbtyp
    b~knumv
    b~bukrs
    b~kunrg
    FROM j_1iexcdtl AS a INNER JOIN vbrk AS b
    ON a~rdoc2 EQ b~vbeln   "Rdoc2 is available in secondary index ,I am not sure whether this affects the performance ,EXPERT advice is required    
    INTO TABLE lt_excise WHERE a~exdat IN s_fkdat AND     
    a~status EQ 'C' AND                            
    * a~exdat ge '20090401' AND                 "if possible, try to use  indexed fields from VBRK
    NOT EXISTS ( SELECT vbeln FROM vbrk WHERE vbeln EQ a~rdoc3 AND   "Avoid using Not this would compromise the index or use Delete itab on resulting table
    vbtyp EQ 'M' ) AND                                                                               
    b~vbtyp EQ 'U' AND  
    b~bukrs IN s_bukrs AND
    b~kunrg IN s_kunrg
    GROUP BY a~exnum                       " Avoid Group by
    a~exyear
    a~exdat
    a~rdoc2
    b~vbtyp
    b~knumv
    b~bukrs
    b~kunrg.

  • I want to take my apple tv from my home in Canada and us it at the Cabin in the States, but can't seem to get it to set up in the states?  It just keeps asking for time and date over and over.

    We just bought apple tv for our home in Canada, we also want to use it at our Cabin in Montana.  We have internet and can get netflix etc on the Macbook, but don't seem to be able to hook up the Apple TV, it just keeps asking for the Time and Date over and over.  Anyone know what we are doing wrong?

    Hi There,
    Find this here:
    https://discussions.apple.com/message/20125520#20125520
    Problem lies with IOS 6.0
    Restore back to IOS 5.1.1 and set the Location to US you will be ok.

  • Wrong period selection for date entered

    Dear Friends,
    In payslip program, I have used HR report category (X_M00002) that shows two options (radiobutton) for period selection:
    1. Current Period
    2. Other Period
    Problem is that when I enter other period as 01.2007 it displays salary slip of February 2007 instead of April 2007 though the period in selection screen on pressing the enter key shows 01.04.2007-30.04.2007.
    This is a copy of another program which shows correct payslip for selected period.
    What could the possible error be?
    Regards,
    Amit

    >
    Amit Srivastava wrote:
    > I had missed to unmark a chackbox named 'Print retroactive runs' in the selection screen. Unmarking it solved the problem.
    > Amit
    Hi, Amit
    Total Questions:         50 (33 unresolved)
    Your most of the Question are still open as you have found the solution of your problem so please mark this question as answered and also the other your open question where you have go the Solution, Please
    Best Regards,
    Faisal

  • Database dictionary name to get last modified DML statement date and time?

    How can i know in the table is lastly modified date and time? There must be a data dictonary table, please let me know the name of that table.

    AshishS wrote:
    Thks for reply, but it give last DDL alter/modified basically i need last DML time and date on the table.oh yes,
    SQL> desc user_tab_modifications
    Name                                      Null?    Type
    TABLE_NAME                                         VARCHAR2(30)
    PARTITION_NAME                                     VARCHAR2(30)
    SUBPARTITION_NAME                                  VARCHAR2(30)
    INSERTS                                            NUMBER
    UPDATES                                            NUMBER
    DELETES                                            NUMBER
    TIMESTAMP                                          DATE
    TRUNCATED                                          VARCHAR2(3)
    DROP_SEGMENTS                                      NUMBER
    SQL>check this link also
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Edited by: CKPT on Oct 3, 2011 12:41 PM

  • Query Question - Linking in Time Span Data to Point-in-Time References

    I am trying to pull historical data from a time-span table of records, using another point-in-time reference. I have been unsuccessful.
    I've thrown some sample tables and data together to illustrate what I am seeking:
    Create Table EmployeeInfo (
           id Number(10,0),               -- Employee ID Number
           Name VarChar2(32 Byte),        -- Employee Name
           CurrentShift VarChar2(2 Byte)  -- Current Employee Shift
    Create Table ShiftChanges (
           id Number(10,0),               -- Employee ID that this shift change record is for
           ChangeDate Date,               -- Date that this Change Took Place
           OldShift VarChar2(2 Byte),
           NewShift VarChar2(2 Byte)
    Create Table TimeCard(
           id Number(10,0),               -- Employee ID Number for this Timecard
           WorkDay Date,                  -- What Day is this Timecard for?
           Hours Float(63)                -- Number of Hours worked.
    COMMIT;
    INSERT INTO EmployeeInfo VALUES (100,'John Doe','Days')
    INSERT INTO EmployeeInfo VALUES (101,'Jane Doe','Days');
    INSERT INTO TimeCard VALUES (100, to_date('01012010','ddmmyyyy'), 10.5);
    INSERT INTO TimeCard VALUES (101, to_date('01012010','ddmmyyyy'), 10);
    INSERT INTO TimeCard VALUES (100, to_date('02012010','ddmmyyyy'), 9);
    INSERT INTO TimeCard VALUES (101, to_date('02012010','ddmmyyyy'), 10.5);
    INSERT INTO TimeCard VALUES (100, to_date('03012010','ddmmyyyy'), 8);
    INSERT INTO TimeCard VALUES (101, to_date('03012010','ddmmyyyy'), 7);
    INSERT INTO ShiftChanges VALUES (100, to_date('02012010','ddmmyyyy'), 'Nights', 'Days');
    COMMIT;I could do a query such as:
    SELECT TC.id,
           EM.Name,
           TC.Workday,
           EM.CurrentShift AS Shift
    FROM   TimeCard TC,
           EmployeeInfo EM
    WHERE  (TC.ID=EM.ID(+));But it will not give me the historical shift, only the current. Since John Doe changed shifts on Jan 2 from Nights to Days, the above query would not reflect it.
    I have attempted to join the historical table using a less-than operator. This doesn't work since more than one row can be returned.
    SELECT TC.id,
           EM.Name,
           TC.Workday,
           SC.NewShift AS Shift
    FROM   TimeCard TC,
           EmployeeInfo EM,
           ShiftChanges SC
    WHERE  (TC.ID=EM.ID(+)) AND
           (TC.ID=SC.ID(+) AND TC.WORKDAY<=SC.WORKDAY(+));The problem stems from the fact that you need to examine multiple records in one table in order to obtain the correct historical data for the other.
    The following SQL script {color:green}does work{color} - if the values are defined ahead of time.
    DEFINE EMPID=101;
    DEFINE CHGDATE=to_date('01/01/2010','dd/mm/yyyy');
    SELECT SQ.Shift
    FROM   (SELECT  ShiftChanges.NewShift AS Shift,
                    RANK() OVER (ORDER BY ShiftChanges.ChangeDate DESC) R
            FROM    ShiftChanges
            WHERE   ShiftChanges.id = &EMPID AND
                    ShiftChanges.ChangeDate <= &CHGDATE
            ) SQ
    WHERE R = 1However, I have been unsuccessful in adapting it to the example tables I provided. If I insert the query as an inline subquery* in the select statement, it won't work, since the criteria is nested two levels down, and I can only get parent values within the first level.
    I haven't thought of a way I can do this using a nested subquery - I keep running into that problem - how do you link in Time-Span data with a point-in-time reference.
    Any ideas / enlightening thoughts?
    Thank You
    {size:8}_SELECT * FROM V$VERSION information:_
    Oracle9i Enterprise Edition Release 9.2.0.8.0 - Production
    PL/SQL Release 9.2.0.8.0 - Production
    "CORE     9.2.0.8.0     Production"
    TNS for 32-bit Windows: Version 9.2.0.8.0 - Production
    NLSRTL Version 9.2.0.8.0 - Production
    {size}
    user10879184 re-wrote the original post on 29-Mar-2010 1:21 PM to reflect suggestions made by poster.

    I changed the tables to hold VARCHAR2(6) shift information and your query to reference the ChangeDate column.
    I also assume you meant to link a TimeCard entry with the most previous ShiftChange entry rather than one that occurs after the time worked (TC.WORKDAY>=SC.CHANGEDATE(+) rather than TC.WORKDAY<=SC.CHANGEDATE(+)):
    Another issue you don't take into account the case where there has been no shift change. In that event you need the current shift from the EmployeeInfo table which is taken care of with the NVL function.
    You correctly note that multiple shift change records will result in duplicate TimeCard records though your test data fails to check for that condition. I added this row:
    SQL> INSERT INTO ShiftChanges VALUES (100, to_date('03012010','ddmmyyyy'), 'Days', 'Nights'); Now it is apparent
    SQL> SELECT TC.id,
      2         EM.Name,
      3         TC.Workday,
      4         NVL(SC.NewShift,EM.CurrentShift) AS Shift
      5  FROM   TimeCard TC,
      6         EmployeeInfo EM,
      7         ShiftChanges SC
      8  WHERE  TC.ID=EM.ID(+) AND
      9         TC.ID=SC.ID(+) AND TC.WORKDAY>=SC.CHANGEDATE(+);
            ID NAME                             WORKDAY   SHIFT
           100 John Doe                         01-JAN-10 Days
           100 John Doe                         02-JAN-10 Days
           100 John Doe                         03-JAN-10 Days
           100 John Doe                         03-JAN-10 Nights
           101 Jane Doe                         01-JAN-10 Days
           101 Jane Doe                         02-JAN-10 Days
           101 Jane Doe                         03-JAN-10 Days
    7 rows selected.The reason for the duplicate Jan3 time is the two shift change records. We are matching both ShiftChange records that occured before the 3rd.
    We also see that your test data has John starting out on Days and then shifting from Nights to Days on the 2nd for no real change. Fixing that:
    SQL> DELETE from ShiftChanges where ID = 100;
    2 rows deleted.
    SQL> INSERT INTO ShiftChanges VALUES (100, to_date('02012010','ddmmyyyy'), 'Days', 'Nights');
    1 row created.
    SQL> INSERT INTO ShiftChanges VALUES (100, to_date('03012010','ddmmyyyy'), 'Nights', 'Days');
    1 row created.Then:
    SQL> SELECT TC.id,
      2         EM.Name,
      3         TC.Workday,
      4         NVL(SC.NewShift,EM.CurrentShift) AS Shift
      5  FROM   TimeCard TC,
      6         EmployeeInfo EM,
      7         (SELECT ID, Workday, ChangeDate, NewShift
      8          FROM
      9                 (SELECT TC2.ID, TC2.Workday, SC2.ChangeDate, SC2.Newshift,
    10                         MAX (SC2.ChangeDate) KEEP (DENSE_RANK LAST ORDER BY SC2.ChangeDate)
    11                                              OVER (PARTITION BY SC2.ID, TC2.Workday) AS Max_ChangeDate
    12                  FROM   ShiftChanges SC2,
    13                         TimeCard TC2
    14                  WHERE  TC2.Workday >= SC2.ChangeDate
    15                  AND    TC2.ID = SC2.ID
    16                  )
    17          WHERE   ChangeDate = Max_ChangeDate
    18          ) SC
    19  WHERE  TC.ID=EM.ID(+) AND
    20         TC.ID=SC.ID(+) AND
    21         TC.Workday=SC.ChangeDate(+) AND
    22         TC.Workday = SC.Workday(+);
            ID NAME                             WORKDAY   SHIFT
           100 John Doe                         01-JAN-10 Days
           100 John Doe                         02-JAN-10 Nights
           100 John Doe                         03-JAN-10 Days
           101 Jane Doe                         01-JAN-10 Days
           101 Jane Doe                         02-JAN-10 Days
           101 Jane Doe                         03-JAN-10 Days
    6 rows selected.The inline view finds the greatest ChangeDate less than the TimeCard Workday for each Workday.

  • Date Range Selection in Query Templates

    Hi,
    Can someone please tell me how to use <b>Date Range Selection</b> Tab details in SQL Query and TAG Query (Using Examples).
    Thanks in advance
    Muzammil P.T

    >>>>>>>>>>
    Re: Date Range Selection in Query Templates   
    Posted: Feb 15, 2007 6:43 AM    in response to: Muzammil Ahamed       Reply      E-mail this post 
    Hi Muzammil,
    In data range section you can have multiple options like setting start datetime and end datetime.. And you can set the shift (or) time period and also the format of the time periods.
    Primarily we use the start date and end date querying to fetch data between two time labels. I can explain this one with example..
    You have batch production table with columns Production Time, Batch Id, Production Qty. Then you want all the details between the 02/02/2007 to 05/02/2007.
    Solution :
    1.Map 02/02/2007 with Start date.
    2.Map 05/02/2007 with end dare.
    Now these two become the variables [SD] and [ED].
    Now you have mentioned the date range, but you need to mention for which column these things to be applied. For that
    3.In Query tab enter Production Time column name in Date column at the bottom.
    Now you have written query like Select * from batch prodcution where production time > 02/02/2007 and production time < 05/02/2007.
    4. Even those values you mapped (SD and ED) you can change from the front page through Java script.
    Like wise you have so many other advantages also.
    If you have any other specific doubt let me know.
    Thanks,
    Rajesh.
    PS : Please ward points if answer is useful. <<<<<<<<
    Message was edited by:
            David Dreyer

  • Nokia 6151 time and date problem

    Recently I have reset my phone to Factory Setting, due to some problem that I'm having with my phone. Now, after resetting my phone to the factory setting, each time I off my phone (without removing the battery) and on it after that, I will have to update my phone date and time which before this I did not have to do that. Before i did the resetting,my phone will just on and no need fop me to do the time and date updating. If you ask me to on the auto update time,my service provider doesn't support this...how to set it back to its original state before i did the reset factory setting.

    This is usually a symptom of a faulty auxilliary battery. The auxilliary is a small battery inside the phone and not the normal battery and can only be replaced by a Nokia Care Point. It should be replaced under warranty if your phone is still under warranty.
     You can find your nearest Nokia Care Point at:
    For UK
    http://www.nokia.co.uk/A4228006
    For Europe:
    http://europe.nokia.com/A4388379
    For Asia-Pacific
    http://www.nokia-asia.com/A4416070
    Elsewhere:
    http://www.nokia.com select your country, go to the support section, then select repair. 

Maybe you are looking for

  • Unable to generate the output for S_ALR_87012048

    Dear All, We are trying to execute the report  S_ALR_87012048 for the first period in 2015.  We have tried execute this report with report date 25.01.2015 (which is the last day in period 01), but it is giving no data was selected. Can anybody sugges

  • How To turnoff compatibility mode settings in IE 10

    Hi, I have Domain and Forest Functional level is 2008 R2. I got a requirement from a project to turnoff IE10 compatibility mode for windows 7. Can anyone help me with an ADMS template which I can import to view settings in GPO. Regards, Deepak

  • Help installing photoshop elements 11?

    I got a wacom intuos tablet which came with photoshop elements 11. I downloaded it, but am having trouble going through the installation process. Every time I try, it gets really close to finishing installing, but then says there's an error and it st

  • Macbook Air gets really sluggish and incredibly slow

    Hi, my Macbook Air bought last December (2008) becomes very sluggish, as in really slow after some very light usage. It usually happens when I'm watching a YouTube video (or any .flv video) in either Firefox or Safari or if I'm browsing for a long pe

  • Re: Qosmio X770 and Windows XP64bit

    Hi there, I recently bought one new Toshiba Qosmio X770, but unfortunately it came with this new Windows 7. I have 2 other toshiba notebooks, one is a NB200 Netbook with WinXP32bits running nicely about 1 year or more, and another big one Satellite P