How to display a time greater than 24hrs?

Hi all
I am trying to create a wages tracker by entering start and finishing times for each day, working out the time worked and then adding it all together to get a weekly value. This works fine and if I have 5 days at 9hrs it correctly gives me 45h.
Then I want to create an IF function to say if the total hours worked for that week are more than 35h display the amount of overtime worked (in this case it would be 10h) else display "No OT Worked".
This is what I have so far but all I get is "Durations can't be compared to other data types". I'm guessing it's because in the IF formula I have specified 35 and with this being a number and not a time it's giving the error. Can anyone help me solve this please :-)
Thanks

Crofty,
You should be able to get the "35h" to work. It's so much handier than the DURATION function that it would be worth it to learn to use the direct notation.
When you tried using "35h", what didn't work. Did you get an error message, a wrong result?
Jerry

Similar Messages

  • How to find login times greater than 24 hours from custom table.

    Hello Guru's,
    I am having trouble approaching how to construct a query that will find who has been logged in for more than 24 hours, this table is updated every few hours to show who's logged in and where- I am attempting to find out if someone has been logged in for more than 24 hours- if so, who and where. This is difficult for me because I need to compare each recorded for each user login and then see if the next entry is greater than 24 hours from the previous entry.
    A table holds the login times and locations as table position_hist:
    position_id,userid,upd_date.
    Something like;
    select position_id,userid,upd_date from position_hist where (select upd_date from position_hist where "the next entry for that user and that position is greater than 24 hours?????"
    I guess the easier way to look at it is for a given position_id who has been logged in for more than 24 hours in one go.
    Any advice would be brilliant :-)

    It's hard without knowing your Oracle version, or having any sample data to work with. Please post that in the future using \ tags and DDL/DML.
    Here is what I came up with as a guess:SQL> WITH POSITION_HIST AS
    2 (
    3 SELECT 1 AS POSITION_ID, 1 AS USER_ID, TRUNC(SYSDATE) AS UPD_DATE FROM DUAL UNION ALL
    4 SELECT 1 AS POSITION_ID, 1 AS USER_ID, TRUNC(SYSDATE)+1 AS UPD_DATE FROM DUAL UNION ALL
    5 SELECT 1 AS POSITION_ID, 1 AS USER_ID, TRUNC(SYSDATE)+2 AS UPD_DATE FROM DUAL UNION ALL
    6 SELECT 1 AS POSITION_ID, 1 AS USER_ID, TRUNC(SYSDATE)+4 AS UPD_DATE FROM DUAL UNION ALL
    7 SELECT 3 AS POSITION_ID, 2 AS USER_ID, TRUNC(SYSDATE) AS UPD_DATE FROM DUAL UNION ALL
    8 SELECT 3 AS POSITION_ID, 2 AS USER_ID, TRUNC(SYSDATE)+1 AS UPD_DATE FROM DUAL UNION ALL
    9 SELECT 3 AS POSITION_ID, 2 AS USER_ID, TRUNC(SYSDATE)+2 AS UPD_DATE FROM DUAL UNION ALL
    10 SELECT 4 AS POSITION_ID, 21 AS USER_ID, TRUNC(SYSDATE)+2 AS UPD_DATE FROM DUAL
    11 )
    12 SELECT POSITION_ID
    13 , USER_ID
    14 FROM
    15 (
    16 SELECT POSITION_ID
    17 , USER_ID
    18 , UPD_DATE - LAG(UPD_DATE) OVER (PARTITION BY USER_ID ORDER BY UPD_DATE) AS LOGGED_IN_TIME
    19 , ROW_NUMBER() OVER (PARTITION BY USER_ID ORDER BY UPD_DATE DESC) RN
    20 FROM POSITION_HIST
    21 )
    22 WHERE LOGGED_IN_TIME > 1 AND RN = 1
    23 /
    POSITION_ID USER_ID
    1 1                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to display the time 00:00:00 as blank?

    Dear Friends,
    I have created a new field GDF_9000_CREATED_AT in the normal screen (dynpro), the format is TIMS, however, when there is no value for it, is always display like "00:00:00" on the screen.
    So how to display the time 00:00:00 as blank in the normal screen (dynpro) when there is no value for it?
    Thanks a lot!!

    In screen PBO module:
            LOOP AT SCREEN.
              if screen-name EQ 'my_time' AND my_time EQ time_zero.
                screen-invisible = 'X'.
                screen-active = 0.
                MODIFY SCREEN.
              endif.
            ENDLOOP.
    I don't try this, but i think is true...
    Edited by: Marco Modenese on May 7, 2009 10:36 AM
    Edited by: Marco Modenese on May 7, 2009 10:36 AM

  • How to display the time length of video (current time/ total time) ?

    Hi,everyone. I would like to ask how to display the time length of the video which show only in system example: it show the current time and total time? using AS 3.0.
    It there any information or solution to solve it? .
    I appreciate it any of you able to answer it. ^^
    Thank you.

    Hi,
    Actually I have this requirement for MAC OS 10.5. With the code you provided, I got the output as "6289375". When I changed the URL to point to my file (file:///Users/VPKVL/Desktop/MyRecord/tempAudio.wav), I am getting the below mentioned Exception:
    Exception in thread "main" javax.sound.sampled.LineUnavailableException: Failed to allocate clip data: Requested buffer too large.
         at com.sun.media.sound.MixerClip.implOpen(MixerClip.java:561)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:165)
         at com.sun.media.sound.MixerClip.open(MixerClip.java:256)
         at TestWavLength.main(TestWavLength.java:13)The "tempAudio.wav" file is created by using java sound API. I am using the SSB USB Headphone Set to record the audio with the following settings for AudioFormat object:
    AudioFormat audioFormat = new AudioFormat(
              AudioFormat.Encoding.PCM_SIGNED, // the audio encoding
                                                            // technique
              48000.0F,// sampleRate the number of samples per second
              16, // sampleSizeInBits the number of bits in each sample
              2, // channels the number of channels (1 for mono, 2 for
                            // stereo, and so on)
              4, // frameSize the number of bytes in each frame
              48000.0F,// frameRate the number of frames per second
              false); // bigEndian indicates whether the data for a single
                            // sample is stored in big-endian byte order
                            // (false means little-endian)Can you please suggest where I am going wrong ?

  • How to display the time & battery % in home screen

    How to display the time & battery % in home screen

    Try resetting your device.
    Hold down the Home and Sleep/Power Buttons until the Apple Logo shows up.
    Ignore the red slider if it appears.
    This will reboot the phone, no data should be lost.

  • Confirmation activity:start time greater than remaining start time

    Hello Experts
    While CIFing Production orders I am getting the above error "confirmation activity:start time greater than remaining start time". or sometimes the error says "invalid confirmed start time of an activity"
    I have checked the inter operation times for the operations & have ensured that the Min & max values are same.
    I have attached the screen shot also.
    Kindly advise
    Regards
    Soum

    Hello,
    I guess you háve implemented BAdI method MODIFY_AFTER_MERGE (/sapapo/cl_ex_cif_ip in SE18).
    Deactivate it.
    The mentioned error means that an activity has its  start date larger than confirmed date that's wrong for liveCache.
    Standa

  • How do I download files greater than 200MB to my Iphone now my music is in the iCloud?

    How do I download files greater than 200MB to my Iphone now my music is in the iCloud? I still have my music on my hard drive of course.

    Go to settings --> store --> and make sure automatic downloads for music is on.  If you download music in iTunes, it should automatically download to your phone.

  • How do you show usernames greater than 8 characters in   /usr/ucb/ps ?

    Help!
    I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
    a) the string I need to grep for is hidden way up the
    command string hence I cannot use 'ps', I need to
    use /usr/ucb/ps -auxww .
    b) some usernames are greater than 8 characters...
    Now this is fine with ps -U command, as this will
    correctly match a 9-character username. However
    /usr/ucb/ps does not seem to have this option; you
    can provide an extra option to get user info to display
    in the output under a column heading however this
    username is truncated at 8 characers. The
    standard username field in both versions of the
    ps command is truncated at 8 characters.
    how do I grep for my deeply-hidden string and a
    9-digin username ?
    is there any way to do this in a single command?
    I can maybe script this, do a ps -U on the user,
    awk the PID out the results, use /usr/ucb/ps and
    grep on the PID and the user string ... wondered
    if I've missed an option and this can be done by
    a single command rather than a script ?
    thanks!

    Help!
    I am trying to write a process kill script, or rather, modify our linux ones for solaris. The problem is a catch-22 :
    a) the string I need to grep for is hidden way up the
    command string hence I cannot use 'ps', I need to
    use /usr/ucb/ps -auxww .
    b) some usernames are greater than 8 characters...
    Now this is fine with ps -U command, as this will
    correctly match a 9-character username. However
    /usr/ucb/ps does not seem to have this option; you
    can provide an extra option to get user info to display
    in the output under a column heading however this
    username is truncated at 8 characers. The
    standard username field in both versions of the
    ps command is truncated at 8 characters.
    how do I grep for my deeply-hidden string and a
    9-digin username ?
    is there any way to do this in a single command?
    I can maybe script this, do a ps -U on the user,
    awk the PID out the results, use /usr/ucb/ps and
    grep on the PID and the user string ... wondered
    if I've missed an option and this can be done by
    a single command rather than a script ?
    thanks!

  • COGI : how to display the time of  a goods movement?

    Hello,
    through COGI, I get the good movements with error per material.
    When I open the errors list for a material, I get the posting date for each good movements but not the time! 
    Could you please let me know how to do for displaying error time or posting time in this screen?
    Thank you for your help!
    François

    Deleted

  • How to display system time

    in sql we use sysdate in dual to display the system date like wise how to display the system time since i am a beginner i need ur help please.

    In Oracle Date Data Type save time information, all you need to do is using to_char function or NLS_DATE_FORMAT to display it,
    SELECT TO_CHAR(sysdate, 'DD-MON-YYYY HH24:MI:SS') FROM DUAL;
    or
    alter session set NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI:SS';
    select sysdate from dual;

  • How to display different Time Statement forms in ITS service PZ04

    Hi all,
    I am working on a underlyinge R/3 4.7 system and are working with standalone ITS and ESS 50.4. I am posting this question to find out if any of you has experience with my problem.
    The business wishes to use the ITS transation PZ04 standard and wish to be able to display different Time Statement forms in the transaction through customized variants for the report(RPTEDT00) that the PZ04 transaction executes. In the IMG it is posted that one variant has to be created called HRESS_TEDT00 and this works, but restricts the PZ04 transaction to always be called with this variant and therebye the same Time Statement form every time.
    I then by debugging found that the underlying ABAP code processed from SAP standard has a variable VARIANT that is hardcode to = HRESS_TEDT00.
    The question is: Is there anyway to setup the PZ04 transaction so that it can be dynamic decided which variant should be used, f.ex. from persons subarea from infotype 0001?
    Looking forward to here if anybody can help.
    Regards,
    Allan Brauer

    hi allan,
    cud u plz help me how to sort out this problem actually in mu company the same scenario is here need to be display pe51 form instead of standard hrforms.....
    plz help me how will i replace this "hrforms with pe51"..

  • SAP BW Key figures displayed 100 times larger than it should

    Dear all,
    I'm using Crystal Reports 2008 SP2 und SAP Intetegration Kit X3.1 SP2 to create a report upon a BW Query (7.01). Several key figures are displayed exactly 100 times larger than it should. Only the formatted value  is displayed correctly.
    Is anyone familiar to this phenomenon?
    best regards,
    madadm

    Solved:
    the regional settings of the client machine have to match the servers' .This have been hard times...

  • How to display 10 times ' linktoaction '  text in view ?

    HI,
    Experts,
    I want to display 10 times " LinktoAction " ui element in a view for that how to write the code and in which method we have to write the code.
    thanks in advance,
    Shabeer ahmed.

    hi,
    To display LinkToAction :
    One option would be to create 10 LinktoAction UI in the layout. All would have differeent actions available to which you can write the logic as per required.
    If you want to dynamically add LinkToAction on a button event or so , then you can use RowRepeater UI and inside this place LinkToAction. On every action of button , add one more LinkToACtion. This would be good if you dont know the number of UI at design time but as you know that you want 10 LinkToAction, create UI and make them invisible by default . When required , make the LinkToAction Visible.
    Refer SAP Online help on LinkToAction UI : http://help.sap.com/saphelp_nw2004s/helpdata/en/0f/e8884118aa1709e10000000a155106/content.htm

  • V$UNDOSTAT BEGIN)TIME GREATER THAN SYSDATE

    I have 18 rows in V$UNDOSTAT with begin_time greater than sysdate.
    what could have caused that?
    I noticed this anomaly when i was looking for some undo information.
    All that has happened recently is, I have restored the db (9.2.0.1 on REHL 3)
    on a different server as the original server had a bad disk (RAID5 rebuild was taking too long). So i shutdown the db and copied all files from the last cold backup to the new server(same config)and restored all the archlogs. Everything has been going fine since than.
    Would a db bounce reset the date anoamly??
    Any ideas !!!
    Thankyou

    Hello,
    Yes you are right, the MAXQUERYLEN of the query *60mwzy51cs6sx* is very high (213380 seconde = 2,5 day) :
    07-21-2010 16:48:2010 213380 60mwzy51cs6sx
    07-21-2010 20:07:2010 225213 60mwzy51cs6sxAnd more over, it seems that the same query repeat several time and the MAXQUERYLEN is higher and higher.
    You may get the offending query as follow:
    Select sql_text from v$sqltext where sql_id = '60mwzy51cs6sx'  /* MAXQUERYID value */It seems that the MAXQUERYLEN is never resetted for this query.
    If you are sure that this query is not still running for almost 3 days so, I don't know why there's this kind of behaviour and, if I were you, I'll ask to the support.
    Best regards,
    Jean-Valentin

  • How to check arraylist size greater than 1 using expression language in jsp

    I want to remove the scripplet in jsp, so i am using jstl tags with expression language in it.
    My scripplet is
    <% if (arraylist.size() > 1) {
    ---do something ----
    %>
    i wanted to change this to
    <c:if test="${ somecondition }">
    ---do something ----
    </c:if>
    here "somecondition" is exactly i need to check whether my arraylist size is greater than 1.
    so please can anyone help me how can i do that.

    If you do not mind, you can create a function and package it into a tag library of your own. Then you can use the function just as the existing expressions language construct. You may take a look at the article use functions in jsp expression language.

Maybe you are looking for