Capturing system time and date and the time difference and date difference.

Hello Experts,
i have a requirement the i need to capture select query start time and date as i runthe program on midnight (ie) 11:55 p.m.
I tried system fields sy-datum and sy-uzeit for capturing the system date and time when my program runs but it gets reset when the date changes.
i tried get time field option but it is resetting the sy-datum to zero so i am able to capture the date of the next day and resulting in wrong calculation of time .
please help with your valuable answers.
Thank you,
Srinivas.

Hi,
As per my understanding you want to fetch those data which are created between the program last run date time and current date time.
If I am right please follow the below procedure.
1. Create one custom table to store program name and program execution last date time
2. at event INITIALIZATION populate to fields date and Time using the statement sy-datum
initialization.
  v_curr_time = sy-uzeit.           " Current time
  v_curr_date = sy-datum.           " Current date
3. Get the last run date and time from the above custom table.
4. Do your logic.
5. at last Update the custom table with current date and time based on the step two (Here do not take sy-datum like that, take the value in the global variable populated in step 2)
Thanks
Subhankar

Similar Messages

  • The Apple  store reinstalled completly the OS this morning on my Mac , I have now to restore the data from  the time machine . I have done it but its going on for already 2 hours and it continues ; Shall I wait ? and how long ,?

    Question : The Apple  store reinstalled completly the OS this morning on my Mac , I have now to restore the data from  the time machine . I have done it but its going on for already 2 hours and it continues ; Shall I wait ? and how long ,?

    Let it alone. No one can tell how long it will take as that is a function of your data.
    Barry

  • My iMac goes to disc utilities on startup, repair disk doesn't cure it and I can't reinstall Mountain Lion because I don't remember my I'd and password at the time I bought the software. Currently working abroad and at a loss can anyone help please?

    My iMac goes to disc utilities on startup, repair disk doesn't cure it and I can't reinstall Mountain Lion because I don't remember my ID and password at the time I bought the software the system isn't accepting my current details and Apple isn't recognising the answers to my security questions.  They don't even seem to have my correc date of birth so I can't progress the reinstallation.  I'm currently abroad and have my iMac with me but with no way of contacting Apple that I can find, I'm at a loss and very reluctant to pay £35 to try and get my ID and pasword sorted out given that their system recognises my current details.  can anyone help please?
    AG

    when they gifted me the mountain Lion software several years ago.
    Mountain Lion was introduced in July 2012. Did the people who gifted you possibly use their Apple ID for the purchase of your OS? If you used your own Apple ID, you should have simply used the one you use for all things app store. The problem with any purchase at the app store is: whatever Apple ID was used to purchase, it willl stay tied to that Apple ID forever. And, purchases from the app store are not transferable.
    So, you can check with the person(s) who gifted you or spend $20 to buy it - or, if your hardware is compatible with the new OS Mavericks, you could download it and associate it with your Apple ID.
    FWIW, according to the licensing agreement, the OS remains the property of Apple and you are only granted a license to run it.

  • Make hey siri customizable and work all the time!!!

    Make hey siri customizable and work all the time!!!

    My question is how can I use dreamweaver with the advanced recordset with the pageID without dreamweaver crashing 20 times a day
    Do you get any errors in Dreamweaver when it crashes?
    What version?
    What OS?
    Have you tried trashing recreating the user config folder ( http://kb2.adobe.com/cps/405/kb405604.html#main_user_config )?
    Have you tried trashing the preferences ( http://kb2.adobe.com/cps/839/cpsid_83912.html )?
    Has anything changed on the system recently (from program installs, to system / OS updates)?
    Have you tried creating a new user account on the system to verify there is no corruption in the current user's system data?

  • TS3972 How can I access the files(movies,music,etc) in my Apple Time Capsule(4th Gen) from my Apple TV(3rd Gen). This is very frustrating Apple has not provided a basic feature, and me buying the Time Capsule and Apple TV is an complete waste of bucks.

    I have an Apple TV (3rd Gen) and Apple Time Capsule (4th Gen). How can I access Movies and Music stored in the Time Capsule from Apple TV. This is very  n't give frustrating that Apple doesn't give their customers with an straight forward access to their customers in between their own products. Iam repenting that buying these products is completely waste of bucks. Appreciate your help...

    Welcome to Apple Support Communities
    The Time Capsule is clearly announced as a router with a hard drive to make backups, not to store anything and share it with your Apple TV.
    To access to movies and music from the Time Capsule, note that the Apple TV can only access to them if they are stored in your iTunes library, so you will have to put your movies and music into iTunes to access to them, and then, put your iTunes library on the Time Capsule in order to access to your data from there

  • I have a 2009 Mac Pro 10.8.3 and half of the time Disc Utility doesn't respond?  Any ideas?

    I have a 2009 Mac Pro 10.8.3 and half of the time Disk Utility doesn't respond and I have to force quit and restart the machine.  Any ideas?

    You have some (major) issues.
    Are you in Recovery Mode ? Used Option key or Command R to get there?
    I would grab the ML installer ESD you saved and do a clean install on another drive and begin to rebuild to a new system.
    You may or may not have TimeMachine but have backed up problem files.
    Having a bootable backup clone of your system is a must.
    Hard shutdowns will add more layers of problems and add to whatever there was before.
    Generally there is not a need to use Disk Utility other than to repair permissions either before or after installing updates.
    Have you:
    tried with everything else unplugged so you don't have any external devices
    tried with a safe boot
    Why.
    After any forced shutdown you should use ML Recovery and one Safe Boot on the first next boot from a working system.

  • My original iPad is very slow and drops the signal to websites and videos all the time now.  Does it have a virus or extra junk on it to cause this or is it just so old it can not handle the extra stuff on websites these days??

    My original iPad is slow and drops web pages and videos all the time now.  Is the software just too old to handle the technology changes on the websites and video or is it a virus or junk in the iPad causing this?  I have plenty or storage left on the iPad like 18GB.  Sure would like to know.  Maybe it is just too old to handle things now? 

    IIf you are running iOS 6.1.2, you could not be using the original iPad. No matter which iPad and what version, try these basic troubleshooting steeps and see if it helps with the performance.
    Go to Settings>Safari>Clear History and Website Data. Then close all apps.
    In order to close apps in iOS 5 or iOS 6, first tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button twice.
    In order to close apps in iOS 7 or 8, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Now reset your iPad. Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    You can also try resetting all settings. You will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.

  • Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro?
    Yes, if you are asking about using Time Machine to backup the Mac.
    Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?
    You are not thinking of deleting the photos and files on your Mac, are you?  If you do this, you will have no backups for those files.
    Another concern is that Time Machine backs up the changes on your Mac. At some point, Time Machine will automatically delete the photos and files from the Time Capsule.....you just don't know when this might occur.
    In other words, only delete files from your Mac that you can afford to lose.

  • If I have more then a few tabs open such as gmail, facebook, and a zynga game no tabs will load at all. I close and reopen firefox numorous (Im talking 7 or 8 times or many more) and shut down the zynga game and still it wont load

    If I have more then a few tabs open such as gmail, facebook, and a zynga game no tabs will load at all. I close and reopen firefox numorous (Im talking 7 or 8 times or many more) and shut down the zynga game and still it wont load the tabs or if it does and I then try to add the game or any other site at all on a tab it causes firefox to stop working (though not close) and I have to restart opening and closing it many times to get it to work at all.

    1st, you will not be able to activate your PPro1.5 on ANY new computer, see next link for the special version you MUST use
    CS2 (and earlier) Activation Server http://helpx.adobe.com/x-productkb/policy-pricing/creative-suite-2-activation-end-life.htm l
    2nd, you already mentioned Virtual XP, so if a direct install doesn't work, that would be the way to go... or, to just do what SHOULD work from the start, just do Virtual XP

  • Can I back up my iPad and iPhone onto the Time Capsule?

    Can I back up my iPad and iPhone on the Time Capsule? If so, how do I do this?

    You also have the option to backup using iCloud
    More details in this Apple support document:
    http://support.apple.com/kb/ht1766

  • Hi my iphone was fully charged and turned its self off, i have tried to turn it back on and reset it, but no luck so i have plugged it in to my pc and it displays the apple logo and then goes back off i have tried this a number of times with no success

    hi my iphone was fully charged and turned its self off, i have tried to turn it back on and reset it, but no luck so i have plugged it in to my pc and it displays the apple logo and then goes back off i have tried this a number of times with no success anyone got any idears?

    Try here:
    iOS: Not responding or does not turn on

  • Can someone please help asap! just bought fce 4 and tried uploading some footage from canon 7d and when in the time line there is audio but txt saying "unrendered" knew to programme help would be much appreciated.

    and when in the time line there is audio but txt saying "unrendered", new to this programme and any help would be much appreciated.

    Any time Final Cut Express must perform more calculations than your computer can handle in real time, you need to render. Rendering is the process of creating temporary video and audio render files for segments of your sequence that Final Cut Express cannot play in real time. When you render a segment of your sequence, Final Cut Express substitutes a render file for the segment during playback. Render status bars above the ruler in the Timeline indicate which sections can play back in real time and which segments require rendering.  To render just click on the sequence menu and select render selection then click both. 

  • Reading message from two queues and sort according the time stamp

    Hi
    I have a requirement where i have to read the message from two queue .. and sort according the Time stamp ( Field in payload ) and send it ot the Webservice ..
    How i acheive using the BPM..
    in the BPM i have to collect the message for every 20 sec ... and then sort it tout ...
    S V

    Do you mean from two sender? What do you exactly mean by "reading from two queues"?
    Regards,
    Prateek

  • HT5636 I was typing in a word for Mac document and I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    I was typing in a word for Mac document and I hit the apple key and the numeral 8 at the same time now all of my documents have these strange symbols please help

    Simply type command 8 again. That toggles the "show paragraphs" function.

  • I have just created a new playlist, at the same time I have updated the ITunes software and that of my ITouch. My problem is that today I have been trying to edit the playlist and the edit playlist is greyed out please help

    I have just created a new playlist, at the same time I have updated the ITunes software and that of my ITouch. My problem is that today I have been trying to edit the playlist and the edit playlist is greyed out please help.
    I have been in preferences and checked manually edit etc and still no joy. I must be missing something.
    Susan

    From Here   http://support.apple.com/kb/HE37
    I have multiple Apple IDs. Is there a way for me to merge them into a single Apple ID?
    Apple IDs cannot be merged. You should use your preferred Apple ID from now on, but you can still access your purchased items such as music, movies, or software using your other Apple IDs.

  • Can I leave my ipod plugged in and on all the time?

    can I leave my ipod plugged in and on all the time?

    That will degrade the battery. Apple recommends that you fully discharge and fully charge monthly.
    Apple - Batteries - iPod

Maybe you are looking for

  • Help needed in constructing a tree

    Help needed in constructing a tree. I was wondering if some one can suggest me how to add messages in the second column for both the parent node and child elements. I was able to create a tree succefully, but want to add some description in the secon

  • Problem with System Update 5.01.0005

    Hi. I have a X220 (PN: 42912BG) with problem installing the latest TVSU. It would not start, it only give me a message saying it can not find the C:\Program Files (x86)\Lenovo\System Update\ConfigService.exe. Does anybody els have this problem, and a

  • ALV Grid is not Displaying after executing?

    Hi Guys,              I am using ALV grid in my program with OO Concepts.I was not able to see the final o/p after entering the data into the selection Screen.Can anybody tell me what's the reason.I am sending u the code.      Call Method grid1->set_

  • COPA Report - Execution in Background

    Friends, We have a COPA report that takes very long time to execute. For this reason the user wants to schedule the report such that it executes in the background at month-end. In order to test the scheduling of the report execution in background in

  • Need to update from MAC OS X server 10.4.11 to MAC mini server, any tips?

    Hello I am having issues to migrate from a Mac OS x server version 10.4.11, processor 2GHZ PowerpcG5, to a brand new mac mini server running mavericks. I been reading posts in the communities saying that I will need to get a snow leopard first(?) can