How to find difference btw time?

hi,
Can any one tell me are there any function modules to perform add, diff(minus) operation on time fields?
please let me know if you know any.
thanks in advance,
Prasad Babu.

Hi,
Try <b>CCU_TIMESTAMP_DIFFERENCE</b>
CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'        
      EXPORTING                                  
           timestamp1 = timestamp1               
           timestamp2 = timestamp2               
      IMPORTING                                  
           difference = diff                     
      EXCEPTIONS                                 
           OTHERS     = 1.
http://sap.ittoolbox.com/groups/technical-functional/sap-r3-dev/f-module-for-dates-subtraction-124376#
Check out these threads
date time difference
FM to Difference between two data and time in tims data type
Regards,
Santosh

Similar Messages

  • How to find the Latency time in java.

    How to find the Latency time in java.

    long start = System.currentTimeMillis();
    doTheWork();
    long durationInMillis = System.currentTimeMillis() - start;You might repeat doTheWork() several (100-1000 or more) times if it is fast and the granularity of your system clock is not good enough.

  • How to find date and time on photo taken by iphone?, How to find date and time on photo taken by iphone?

    How to find date and time on iphone's photo taken?

    in iPhoto no matter the source of the photo you see the information about th ephoto by selecting the photo and showing info (the get info button may be in a different location depending on the version of iPhoto you have)
    If you are not aking an iPhoto question but are asking an iPhone question instead then repost in the iPhone forum - iPhoto has no association with the iPhone
    LN

  • How to find the processing time of any query?

    im using oracle express edition, can anyone help me, how to find the processing time of any query?

    Trace the query and tkprof the generated trace file.
    http://download.oracle.com/docs/cd/E11882_01/server.112/e16638/sqltrace.htm#PFGRF01010

  • How to find out the time when the ASE started?

    Normally, ASE not reboot for production. Only for maintenance or performance tuning, maybe need to reboot ASE.
    Question is how to find out the time when ASE was started?
    one way maybe is check errorlog. Any more simple way no need to login to server OS?

    Hi Kent,
    In ASE 12.5 and up, you can do 'select @@boottime'  For older releases, a general method is 'select crdate from sysdatabases where dbid=2'
    1> select @@boottime, crdate from sysdatabases where dbid=2
    2> go
                                     crdate
                 Jul 15 2014  9:19AM             Jul 15 2014  9:19AM
    (1 row affected)
    Cheers
    Dan

  • I accidentally erased a sticky from my Dashboard?  I don't know how to find them in Time Machine.

    I accidentally erased a sticky from my Dashboard?  I don't know how to find them in Time Machine.  Any ideas how to recover it?

    When you have a Write window open press F9 to turn on the Contact Sidebar. Select the contact or contacts to send to. Hold the control key while clicking contacts to select more than one. Then use one of the Add To buttons at the bottom.
    This looks like the first message you have posted here. You will get an email to the address you used when registering.
    You can click on your username to go to your profile/activity page. I suggest that you bookmark that so you can find your posts and answers easily.

  • How to find the Executed time of query

    hi,
       i want to find out the execution time of query like a sales report executed in 10 min. how to find out that? is there is any TC for that or what is the option to use that?
    and how to fing out execution time of Data source to info providers.. or DSOs to IC? like how much time taken to load data?
    regards,
    preety

    Hello Preety,
          Goto RSRT give the query name and see the technical property you will find the query generation time.
    For the time taken for execution Select the execute and debug mode in the options select display statistics.
    Execute the query
    Click back
    You can see the statistics.
    Thanks
    Chandran

  • How to find query completion time

    How to find active insert query completion time in oracle?

    friend,
    i don't find anything in the query since time_remaing value show zero.
    select TIME_REMAINING,TOTALWORK,START_TIME,SOFAR from v$session_longops where sid=115.
    TIME_REMAINING TOTALWORK START_TIM SOFAR
    0 21456 11-MAY-09 21456
    0 4588 11-MAY-09 4588
    0 6138 11-MAY-09 6138
    could you please guide me how to calcaluate the completion time?

  • How to find query processing time?

    im using Oracle Express Edition
    i want to find the processing time of a query?,
    anyone please specify briefly how to find the query processing time
    can i get the processing time of a query by using Express edition or should i install Enterprise Edition.
    with regards,
    ravikanth.

    This link will help
    http://forums.oracle.com/forums/thread.jspa?threadID=2210335&tstart=0

  • How to find orders in timer delay.

    Hi,
    How to find the orders which are in timer delay.
    Is it from Find Order/Get Order combination. Appreciate your help.

    Hi Srinivas,
    I have actually pasted the optimized version of FindOrder, here is the full xml. As you know, whichever says optional you can remove the below tags.
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ord="http://xmlns.oracle.com/communications/ordermanagement">
    <soapenv:Header/>
    <soapenv:Body>
    <ord:FindOrder>
    <!--Optional:-->
    <ord:ViewBy>
    <!--Zero or more repetitions:-->
    <ord:View>?</ord:View>
    <!--Optional:-->
    <ord:RemarkFilter>
    <!--Optional:-->
    <ord:RetrieveRemarks>false</ord:RetrieveRemarks>
    <!--Zero or more repetitions:-->
    <ord:AttachmentFilter>
    <!--Optional:-->
    <ord:FileNameMatch>.*</ord:FileNameMatch>
    <!--Optional:-->
    <ord:MinSize>0</ord:MinSize>
    <!--Optional:-->
    <ord:MaxSize>4</ord:MaxSize>
    <!--Optional:-->
    <ord:Format>inlineBase64Binary</ord:Format>
    </ord:AttachmentFilter>
    </ord:RemarkFilter>
    <!--Optional:-->
    <ord:AmendmentFilter>
    <ord:LevelOfDetail>?</ord:LevelOfDetail>
    </ord:AmendmentFilter>
    <!--Optional:-->
    <ord:LifecycleEventFilter>
    <!--Optional:-->
    <ord:RetrieveLifecycleEvents>false</ord:RetrieveLifecycleEvents>
    </ord:LifecycleEventFilter>
    </ord:ViewBy>
    <!--Optional:-->
    *<ord:SelectBy>*
    *<!--Optional:-->*
    *<ord:OrderId>?</ord:OrderId>*
    *<!--Optional:-->*
    *<ord:OrderState>?</ord:OrderState>*
    *<!--Optional:-->*
    *<ord:TargetOrderState>?</ord:TargetOrderState>*
    *<!--Optional:-->*
    *<ord:Reference>?</ord:Reference>*
    *<!--Optional:-->*
    *<ord:Cartridge>*
    *<ord:Name>?</ord:Name>*
    *<!--Optional:-->*
    *<ord:Version>?</ord:Version>*
    *</ord:Cartridge>*
    *<!--Optional:-->*
    *<ord:OrderType>?</ord:OrderType>*
    *<!--Optional:-->*
    *<ord:OrderSource>?</ord:OrderSource>*
    *<!--Optional:-->*
    *<ord:CreatedDate>*
    *<!--Optional:-->*
    *<ord:FromDate>?</ord:FromDate>*
    *<!--Optional:-->*
    *<ord:ToDate>?</ord:ToDate>*
    *</ord:CreatedDate>*
    *<!--Optional:-->*
    *<ord:CompletedDate>*
    *<!--Optional:-->*
    *<ord:FromDate>?</ord:FromDate>*
    *<!--Optional:-->*
    *<ord:ToDate>?</ord:ToDate>*
    *</ord:CompletedDate>*
    *<!--Optional:-->*
    *<ord:Priority>?</ord:Priority>*
    *<!--Zero or more repetitions:-->*
    *<ord:Field>*
    *<!--Optional:-->*
    *<ord:Cartridge>*
    *<ord:Name>?</ord:Name>*
    *<!--Optional:-->*
    *<ord:Version>?</ord:Version>*
    *</ord:Cartridge>*
    *<ord:Path>?</ord:Path>*
    *<!--You have a CHOICE of the next 2 items at this level-->*
    *<ord:EqualTo>?</ord:EqualTo>*
    *<ord:From>?</ord:From>*
    *<ord:To>?</ord:To>*
    *</ord:Field>*
    *<!--Optional:-->*
    *<ord:MaxOrders>?</ord:MaxOrders>*
    *</ord:SelectBy>*
    <!--Optional:-->
    <ord:OrderBy>
    <!--1 or more repetitions:-->
    <ord:OrderField>
    <!--Optional:-->
    <ord:SortBy>?</ord:SortBy>
    <ord:Header>?</ord:Header>
    </ord:OrderField>
    </ord:OrderBy>
    </ord:FindOrder>
    </soapenv:Body>
    </soapenv:Envelope>
    Thanks
    Naveen Jabade

  • How to find out insertion time of records in an oracle table

    Hi everybody,
    I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
    Is there any way that I can find out what time each record has been inserted?
    For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
    I searched over the internet and find some results but none of them seem to be practical.
    Thanks for your help.

    I have a table with about 50,000 records in my Oracle database and there is a date column which shows the date that each record get inserted to the table, for example 04-Aug-13.
    Is there any way that I can find out what time each record has been inserted?
    For example: 04-Aug-13 4:20:00 PM. (For my existing records not future ones)
    First you need to clarify what you mean by 'the date that each record get inserted'.  A row is not permanent and visible to other sessions until it has been COMMITTED and that commit may happen seconds, minutes, hours or even days AFTER a user actually creates the row and puts a date in your 'date column'.
    Second - your date column, and ALL date columns, includes a time component. So just query your date column for the time.
    The only way that time value will be incorrect is if you did something silly like TRUNC(myDate) when you inserted the value. That would use a time component of 00:00:00 and destroy the actual time.

  • How to find out what time I took a picture

    A big monster truck's bumper went up onto my car's hood at the grocery store the other week and I snapped a picture of it. Now the lady is claiming that I decided to park my car underneath hers and that my car was not there when she parked. I have my receipt showing I what time I made my purchases but I need additional proof with what time I took the picture.
    Does somebody know how to look up what time a picture was taken?

    I would also recommend leaving the shot on the iphone untouched (downloaded to a PC is ok). There is EXIF information encoded inside the image that records the iphone's date/time (this is in addition to the file system information that the other poster I beleive is referring to). It is also changeable, though one needs more expertise to do so. The reason I recommend leaving it there is some techniques of getting shots off of cameras (i.e. phones) may remove that info or alter it.
    But how does the date/time matter -- clearly the event had occurred, how will a shot after it occurred indicate which came first, your care or her's?
    Message was edited by: Linwood_Ferguson

  • How to find  at what time Idoc has gone  out  of  SAP

    Hi Gurus,
    Could  anybody  let  me  know , how to check at what time Idoc has gone  out  of  SAP in case  of outbound Idoc.
    I am not  talking  about Idoc creation date which we can  see in control records  in WE05.
    -B S B

    you have to see the status of the idoc ,if idoc status is green color ( Succesfully completed  ) then use
    EDIDC-UPDTIM ( This should be last Time)
    Date is EDIDC-UPDDAT.
    See the other table EDIDS to check the idoc status.
    Thanks
    Seshu

  • How to find the elapsed time between 2 events ?

    I want to use the robot class and I have register all events in a file but when I use the Robot. It isn't synchronous. So I should find th elapsed time between two events for reproducing them with the method delay of the class Robot.
    Thanks

    It sounds like you want to reproduce the events with varying time between the events? This is a good idea for a couple of reasons 1) it's possible to enqueue events so quickly that Robot gets ahead of the Java GUI, and 2) every human does their mouse/keyboard activity at varying (and relatively slow, relative to the computer that is) rates of speed. It would help make a more realistic interaction to vary the speed of event reproduction.
    Since you can't control the amount of time between the call to Robot and when the event arrives in the application, you can't be ultimately precise about this. You'll have to accept a teensy bit of slop in the process and just live with it.
    That is ... you can do something like robot.method1() .. Thread.sleep(1) .. robot.method2() .. Thread.sleep(1) ... and that will give slight delays. If you vary the value for Thread.sleep you can vary the event reproduction speed. Early in the development of Robot I experimented with something like this - I set up an EventQueue listener to capture all mouse/keyboard events (remember that each comes with a timestamp) and then reproduced events using the time intervals from the captured events to control the Thread.sleep times between Robot calls. It worked pretty well, and the mouse would dance around in the same way I moved the mouse around.
    - David

  • How to find the execution time of a query?

    hi guys,
    i need to find the execution time of a query.
    i tried finding it in rsrt but couldn find the execution time.
    pleasse let me know the way to do it..
    regards
    sagar

    Hi sagar,
    If you want to know the frontend time, first of all you need to maitain the BW Statistics. To maintain you have to go the respective target and click on it. Go to the tools, select BW Statistics of infoprovider. It pop ups a window there you find two check boxes 1) WHM and 2) Front end time. Check both.
    Now Exe query and close the analyzer. Then go to SE11 table RSDDSTAT. There is one field which displays Frentend time.
    OR
    Go to STO3 here also you can analys the frontend time.
    If you feel useful Assign Pts.
    Regards,
    Vishal

Maybe you are looking for

  • Problem in choosing language

    I have to make an online server/client system that is viewed in web browser. And the system will have real-time changing of the interface and the system will provide functions like voice communication, text communication, whiteboard, etc. I want to a

  • Communication determined by the communication device error

    Hello, I hope that someone can help me with this strange problem. I am using my Mac book for 2 years, and one month ago something strange happened with my internet connection. This is the message that is appearing every time I try to connect to the I

  • I cant see canon 5d mark III raw preview on finder -

    I tried Apple Camera Raw 3.12 but it just close after showing a pop up window the uppgrade is only for Aperture and Iphoto - I even installed Adobe camera Raw 7, and nothing.

  • BEx query is being defualted to Portal.

    Hi all, We have implemented NW04s both frontend and backend, when we tried to run the BEx query in web it jumps straight into Portal, even we have adjusted ICM configuration attempting to make ABAP web as default handler, wondering what profile param

  • [SOLVED] First crack at packaging

    After the first instance ever on Arch where a (admittedly very new) program has to be done by source, and not on the AUR. It got me wanting to know how to package things, although nothing so complex as the program I'm after yet, I want to crawl befor