How to get Correct curent time and date

Hi,
I would like to know whether system keeps updating SY-UZEIT each second or it contains the time value when the program was started.
Suppose a program starts at 12:00:00 time and takes 10 sec to finish. Will I get same value of SY-UZEIT or will i get 12:00:10 as value of sy-uzeit just before completetion of program?
If the time is not updated each second, how can I get the correct time?

Hi surya,
the SY-UZEIT will not be automaticly updated in the runtime.
you have to use GET TIME.
Here a short example to show the different:
REPORT ZGRO_TEST.
TABLES: MARA.
write: / 'without get time'.
WRITE: / SY-UZEIT.
SELECT * FROM MARA up to 10000 rows.
ENDSELECT.
WRITE: / SY-UZEIT.
write: / 'with get time'.
get time.
WRITE: / SY-UZEIT.
SELECT * FROM MARA up to 10000 rows.
ENDSELECT.
get time.
WRITE: / SY-UZEIT.
regards, Dieter

Similar Messages

  • How to get the start time and date

    Hi everyone! I have a question ,who will be glad to help me! Thanks in advance!
    As we know ,when we finish the UUT test ,it generate report . The report format maybe like"SeqFileName_Report[Time][Date]_00001.xml"
    My question is"how can I get the [Time] and [Date] in the test sequence"

    See this post.
    How To Display Time Information in Report/Results?
    http://forums.ni.com/t5/NI-TestStand/During-a-test-how-can-I-find-the-start-time-and-date-of-that/td...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How to get FMS server time and date

    hi,
    i m working on a customer support chat application. There is
    neccssary for me to get the FMS server time and date, bcoz
    depending on the server time and date the client instances recive
    different messages.
    i looked at date() function on FMS server, but it returns
    user PC time ( not FMS server time).......
    so i there any way to get FMS server date and time??
    thanks in advance
    shrikant

    See this post.
    How To Display Time Information in Report/Results?
    http://forums.ni.com/t5/NI-TestStand/During-a-test-how-can-I-find-the-start-time-and-date-of-that/td...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • How do I make the time and date stamp correct for my documents, songs in itunes, etc.

    No matter when I add a song or save a document it says it was added/saved on 1/5/2011. It would be great if somehow I could get back the dates and times that things were added, but I know that may be impossible. I just want a way to have the correct time and date stamp from now on. Finally it wasn't always like this, when I first got the computer everything was correct, I just started noticing it. Additionally my clock is correct, so I don't understand why things aren't saved according to the clock. Thanks in advance

    Resetting your Mac's PRAM and NVRAM

  • How do I keep the time and date stamp of my photo when exporting from iphoto

    Hi,
    I notice the time and date stamp changed when I exported the photos from iPhoto 11 to a external HDD.
    When I looked at the information about the exported photos on my external HDD the time and date changed to the time and date of when I exported the photos form iPhoto instead of keeping the time and date information of when the photo was taken as it appears in iPhoto.
    I thought the time and date stamp is in the meta data of the photo file and can't be changed, am I correct?
    Thanks,

    Kyzelios,
    How can view the meta data from "finder" or do I need a 3rd party app?
    "Get info" function only gives me the creation date which is the export date and time.

  • OIM: How to get the last operation and data from a child form action

    Dear OIM guru,
    I have a regular Process form, a child form and a process definition. When there is an insert/delete into child form a trigger is raised and the process task gets called. The process task does whatever it needs to do on the target system. This is all fine. However, after the task completes, lets say successfully, I want to send out an email to the user saying, for example, group 1 has been added to you or just got deleted.
    I am not able to figure out how to get that last operation and child form data. I am sure you came across this and if so please let me know how to do this.
    Thanks

    So, Can I add a similar process task with the same exact condition one more time? I thought I couldn't use the same condition again. For example, when a group is deleted can I use the process data->child data->group Id with old value check box checked on another process task?

  • Can't get past the time and date intial set up screen can anyone please help?

    We purchased Apple TV last night, hooked everything up according to the directions, until we get to the Setting Time and Date Screen, which Apple TV- for more than 12 hours now, has been trying to establish.  We've set the time zone both manually and automatically, I have emailed and tweeted Apple Support but no help so far, this is my last plea before I return it.
    Any help would be appreciated.
    Thanks

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How do I add a time and date stamp onto my pictures?

    Can anyone tell me how to place a time and date stamp on all my pictures?

    DTRAND wrote:
    How do I go about creating a script, how do I run it, and where do I run it
    (ie: exactly the steps)... sorry I am new to this.
    You don't need to learn scripting. Just ask in the scripting forum if they can help you.
    They will point you to an existing one or might even do one for you.
    http://forums.adobe.com/community/photoshop/photoshop_scripting

  • How do you set the time and date for the fax on the HP Office Jet 4622 All-in-one Printer?

    I installed the HP Office Jet 4622 All-in-one Printer and everything works wonderfu.  However on the test page for the fax the time and date are showing Jan-00-00 00:00AM.  I do not know how to change the date and time.  Please help.  Thanks.
    This question was solved.
    View Solution.

    Use the Setup (wrench icon) button on the front of the printer to look through the settings menu to set the printer time and date.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How do I change the time and date on a specific photo

    I import photos from various cameras in the family.  Not everyone has the date or time correct.  In all older versions of iPhoto I could edit the date and time whenever the info field was available.  In the current version all I can find reference to is the date for an event - not the individual photo or any means to change the time.

    Great  --  and note that you can create a smart album by camera type to make it easy to correct the time info for a camera that was set differently  --  the adjust T/D command changes all selected photos by the same amount of time
    LN

  • How to get correctly any non english data e.g greek data in servlet??

    Hello All,
    I have one textbox on form from where user will enter greek data and when i get that field data in servlet using request.getParameter("name") ,then it shows wierd text in servlet ,it ditorts all the characters that user enterd on page,how can i get greek data in servlet wothout losing it????
    Please help
    Thanks.

    1.) Read [this excellent introduction into Unicode|http://www.joelonsoftware.com/articles/Unicode.html]. The subject is more complex than you think.
    2.) Verify at each point in your program that your String contains the correct value. Note that using System.out.println() might not be helpful here, since the console might not be able to display those characters.
    3.) When a String contains invalid characters, then the error already happened before! Don't try to fix it after the fact, look where the original byte[]->String transition is made and make sure that it is correct.

  • How to get the grn no and date

    Hi,
          from which table i can get the grn number(mblnr) and the grn date(budat).
    dinesh

    Hi,
    Try table
                    <b>MKPF  --  Header: Material Document
                    MSEG  --  Document Segment: Material</b>
    <b><REMOVED BY MODERATOR></b>
    Message was edited by:
            Alvaro Tejada Galindo

  • How to restore the default time and date?

    HI i have encountered with a problem very i have got in screen, one date field and input field TEXT Field name  i have give as the <tablename-<tablefield>> like ZFIR-DATES reason giving name like this is i want to save the date in a table ZFIR when i click save. When i am clicking save date is storeing but the problem is date is not displaying defaultly.....on the screen
    codeing part..
    DATE(10) TYPE C.
    before output screen no 100
    DATE = SY-DATUM.
    Thks

    The format of the variable on the screen needs to be the same as the global definition - if it's a date field on the screen then you should have something like
    data:
      g_date     like sy-datum.  "naming convention g = global
    and g_date on your screen as a date-type field, then in your PAI where you store ZFIR
    ZFIR-DATES = g_date.
    Jonathan

  • How can I tell the time and date changed for my pr...

    Just had a problem with my bestfriend whom I believe hacked into my profile. Now I want to find out how I can have access to history of when I have posted a different display picture and the alike. thanks

    Sheryl Kingstone wrote:
    but does it show on the final burned project?..
    it does..
    .. but how does Mrs AppleMan handle all that kissing.. ?
    greetings to T & K..

  • How To Include Current Time and Date in Form

    Does anyone know how I can include the time and date in the
    body of a form mailer? Our system allows the receiver of each
    submitted form to copy the body of the form entries and paste them
    into either Excel or FileMaker for database building. They would
    like to have the time and date also appear somewhere in the
    submitted body so they will not have to do a seperate copy/paste of
    the time and date seen in the header... I followed the javascript I
    found in the Adobe website and included it within the form, but
    when I ran a test nothing showed! Here is the form...
    Click
    Here to see the Form
    Thanks for your help! -D

    Can you not use when the email's timestamp?
    Also, in z7's script, beware the common mistakes, if you try
    to retype it - .getDate() gives the day of the month (1-31), but
    .getDay() gets the day of the week (1-7). To make it more
    confusing, .getMonth() gets the month (0-11), so you have to add
    one to make it human-readable. The script posted is correct, but I
    went round and round with my PC when I tried to do that the first
    time!

Maybe you are looking for