Last time it run

Hello All,
I need to store the last date a program run.
My last resource is creating a Z table to store the data.
I think it should be better ways to do this.
Is there any ABAP statement that works like IMPORT/EXPORT but store the data even when the program finishes so the next time it runs it could retrieve it?
Do you know about a BAPI that allow to update table CDHDR ?
Any other suggestion is welcome.
Thank you.
Monica.

Hi,
For custom report you can store the last run in Z table , but what about sap standard reports
For updating CDHDR you need to create a object thru SCDO after that you can use following fm to update the same
CHANGEDOCUMENT_OPEN
CHANGEDOCUMENT_SINGLE_CASE
CHANGEDOCUMENT_CLOSE
you can check the last run using transaction code STAT or ST03.
aRs

Similar Messages

  • TS3920 I have a problem after I lock my iphone or it is automatically locked , the time doesn't update. It just freezes at the last time of locking. Please help , it is iphone 5 running iOS7.1

    I have a problem after I lock my iphone or it is automatically locked , the time doesn't update. It just freezes at the last time of locking. Please help , it is iphone 5 running iOS7.1
    I check with my service provider as well as I synchronized with iTunes , changed time manually with the right time zone. Unfortunately the problem keeps showing

    Hi Courcoul
    Thanks for stepping by
    To tell the truth I forgot to mention that I already did what you said, even more I tried all "reset" options including:
    Reset all settings
    Erase All content and settings
    Reset Network settings
    Etc
    Even
    Reset location and Privacy
    It keeps showing the problem

  • How to get the date and time of the last KM scheduled run

    Hi Experts,
    I had a scenario where i need to send the last date and last time when the KM schduler runned.?
    Issue:
    I have created a Km sheduler, in that i have written the jave code to retrieve the details from a function module and getting the output from Func module and sending an email  to one administrator.It worked fine for me.this scheduler will run for every 20 mins.
    But now Abapers have included two import parameters in their Function module " Last date and last run".So i need to populate this iimport parameters dynamically.
    How can i acheive this?
    Please assist.Thanks in Advance.
    Thanks
    Sony.

    java.util.Date date = java.util.Calendar.getInstance().getTime(); //retrieve a date object
    java.text.SimpleDateFormat df = new java.text.SimpleDateFormat(dd-MMM-yyyy);
    String s = df.format(date); //10-Aug-2001
    String t = "15042001";
    df.applyPattern("ddMMyyyy");
    d = df.parse(t);
    df.applyPattern("dd-MMM-yyyy");
    t = df.format(d); //15-Apr-2001Hey it's Friday, I'm bored

  • I want to run SSIS package every time based on last time job processed data time.........

    Hi all,
    i have SSIS package ..its needs run every day .for that we were schedule a job for ssis..
    but we need when package going to run that time we have to take data, besed on last time processed date..for that am using msdb data base to get process date ..but am not yet schedule a job am going to do 1st time..
    insde the package am using this query using execte sql task 
    SELECT     CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30 ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) END   AS Dates
    FROM            dbo.sysjobhistory AS H INNER JOIN
                             dbo.sysjobs AS J ON H.job_id = J.job_id
    WHERE        (H.run_status = 1) ..
    if job already ran means its was working fine.if job not yet scheduled means its giving error...
    pandiyan

    Try this one on:
    SELECT COALESCE(dates,fallBack) AS dates, name
    FROM (
    SELECT 30 AS fallBack
    ) b
    LEFT OUTER JOIN (
    SELECT CASE WHEN DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate()) = 0 THEN 30
    ELSE DateDiff(Day, CONVERT(DATETIME, LEFT(MAX(H.run_date), 8)), GetDate())
    END AS Dates,
    j.name
    FROM dbo.sysjobhistory AS H
    INNER JOIN dbo.sysjobs AS J
    ON H.job_id = J.job_id
    WHERE H.run_status = 1
    GROUP by j.name
    ) a
    ON b.fallBack = b.fallBack
    You might want to consider filtering on j.name or j.job_id to get the info for the specific job.

  • When was the last time a program was run?

    Experts, is there a way to know when was the last time a program was run (particularly, Z Program). We are trying to identify obsolete programs and avoid working on those programs that weren't touched for more than 3 years during our next upgrade. How can I find this? Any suggestion would be highly appreciated.
    Thank you.

    Hi,
    One way is to check TRDIR table(se11/se16) and display it. In the next screen once you will get 'Data Browser Table TRDIR' selection screen. There either you put the individual 'Z' program name in the 'Name' field & execute it or for all multiple entries execute it.
    Once you execute it with the particular Z prog. name then you will get the required details like CDAT(Created on),UNAM(Last changed by),UDAT(Changed On),SDATE(Standard selection screen generation: Date),IDATE(Selection screen generation: Date) etc.
    Hope this can help you.

  • How to find out when the last time a tcode was run by someone

    Hi Team,
    I am just trying to find out if there is a way to find out when the last time a tcode was run by someone.I mean i need to know when was a certain  tcode was last run.
    Thanks,
    Priyanka

    HI Priyanka
    Another way would be using transaction STAT,enter the t-code you like to monitor.This will provide all details,like user, time etc...
    Hope this will help
    Thanks
    Santosh Kumar

  • Hi, how to load mac without running windows (bootcamp)? The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    The problem is this: the last time i ran the windows, but he hangs and died (can not run further  the logo). now i can not load not windows, not maс! how to be, what to do???

    can any body help me, plz!!

  • Query to show last time a query was run

    I am trying to write a query that will show me the last date/time a specific query was run. I have looked into v$sql and I can find the query, but from what I can tell it does not show the last time the query was executed.

    Hi,
    use v$sqlarea instead of v$sql and look at the column last_active_time. See also the documentation (docs.oracle.com/cd/E11882_01/server.112/e40402/title.htm) on the dynamic performance views in the database.
    You will get more answers, however, if you put your question to the forum Oracle Database > SQL and PL/SQL .
    Regards,
    Gudrun Pabst

  • How to get the last time a record was modified or created ?

    Is there a way (hidden system fields for example, system view, other ?) to get the last time a record of a table was modified or the date it was created.
    Thanks for any help.
    Stiphane CAMPION

    blarman74 wrote:
    I know I could do this with a trigger, but I was wondering if there is a data dictionary view I can query to find the date/time a table was last updated. What I have is a table that is constantly getting hammered with new data being uploaded from a third party. We need to keep close tabs to verify that this datafeed is constantly running and bringing in new data. Because the data that comes in comes from multiple timezones and there are hundreds of lines, our attempts at monitoring by just looking at the data leave something to be desired.
    Any ideas?refer this links
    How to find Last modified/updated time of a particular table
    http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:1590655700346557237
    Thanks

  • TS1717 was updating my phone and now is frozen with the iTunes and an emblem of a usb cable  wants me to restore my phone.  last time i hit restore it cleared my phone to original settings and lost my address book.

    I updated my Iphone 4 today and it gave me a message that an error occurred downloading itunes and that i need to restore my phone to use itunes.  now my phone is froze with an emblem of iTunes and a USB end with an arrow showing.  can turn the phone off and on and emblem comes back. last time i restored my phone it erased my address book.  rather not do that.  any suggestions? i may be running low on storage space?

    Place the device in DFU mode (google it) and restore.

  • [SOLVED] systemd-tmpfiles-clean takes a very long time to run

    I've been having an issue for a while with systemd-tmpfiles-clean.service taking a very long time to run. I've tried to just ignore it, but it's really bothering me now.
    Measuring by running:
    # time systemd-tmpfiles --clean
    systemd-tmpfiles --clean 11.63s user 110.37s system 10% cpu 19:00.67 total
    I don't seem to have anything funky in any tmpfiles.d:
    # ls /usr/lib/tmpfiles.d/* /run/tmpfiles.d/* /etc/tmpfiles.d/* | pacman -Qo -
    ls: cannot access /etc/tmpfiles.d/*: No such file or directory
    error: No package owns /run/tmpfiles.d/kmod.conf
    /usr/lib/tmpfiles.d/gvfsd-fuse-tmpfiles.conf is owned by gvfs 1.20.1-2
    /usr/lib/tmpfiles.d/lastlog.conf is owned by shadow 4.1.5.1-9
    /usr/lib/tmpfiles.d/legacy.conf is owned by systemd 212-3
    /usr/lib/tmpfiles.d/libvirt.conf is owned by libvirt 1.2.4-1
    /usr/lib/tmpfiles.d/lighttpd.conf is owned by lighttpd 1.4.35-1
    /usr/lib/tmpfiles.d/lirc.conf is owned by lirc-utils 1:0.9.0-71
    /usr/lib/tmpfiles.d/mkinitcpio.conf is owned by mkinitcpio 17-1
    /usr/lib/tmpfiles.d/nscd.conf is owned by glibc 2.19-4
    /usr/lib/tmpfiles.d/postgresql.conf is owned by postgresql 9.3.4-1
    /usr/lib/tmpfiles.d/samba.conf is owned by samba 4.1.7-1
    /usr/lib/tmpfiles.d/slapd.conf is owned by openldap 2.4.39-1
    /usr/lib/tmpfiles.d/sudo.conf is owned by sudo 1.8.10.p2-1
    /usr/lib/tmpfiles.d/svnserve.conf is owned by subversion 1.8.8-1
    /usr/lib/tmpfiles.d/systemd.conf is owned by systemd 212-3
    /usr/lib/tmpfiles.d/systemd-nologin.conf is owned by systemd 212-3
    /usr/lib/tmpfiles.d/tmp.conf is owned by systemd 212-3
    /usr/lib/tmpfiles.d/uuidd.conf is owned by util-linux 2.24.1-6
    /usr/lib/tmpfiles.d/x11.conf is owned by systemd 212-3
    How do I debug why it is taking so long? I've looked in man 8 systemd-tmpfiles and on google, hoping to find some sort of --dubug option, but there seems to be none.
    Is it some how possible to get a list of the directories that it looks at when it runs?
    Anyone have any suggestions on how else to fix this.
    Anyone else have this issue?
    Thanks,
    Gary
    Last edited by garyvdm (2014-05-08 18:57:43)

    Thank you very much falconindy. SYSTEMD_LOG_LEVEL=debug helped my find my issue.
    The cause of the problem was thousands of directories in /var/tmp/ created by a test suite with a broken clean up method. systemd-tmpfiles-clean was recursing through these, but not deleting them.

  • Firefox 25.0.1 Warn when closing multiple tabs (on) conflicts with "show windows und tabs from last time" (on); need both, but only one or the other works.

    Using Firefox 25.0.1 on Windows 7 Home Premium
    I've poured through support forums for Mozilla Firefox searching for a fix to my initial problem of the "Warn when closing multiple tabs" pop up not popping up when I have it selected.
    Went through About:Config, making sure warnings for tabs und closing, und showing on quit, und quitting, etc. were all set to true, which were "possible" fixes for the issue I was having, there are like five or six things set to true for warnings/quitting/etc. No avail. They are all set to true.
    Then I stumbled across one that suggested a conflict with the "Warn When Closing Multiple Tabs" und the "Show Windows und Tabs from last time".
    I use both features. However, I found if I want the warning pop up for closing multiple tabs, I have to have "show homepage" or "show blank page" selected instead of "Show windows und tabs from last time" selected. (Tools>Options>General>Start Up>When Firefox Starts:) The problem with this is, yes, I get my warning pop up, BUT, I don't get my tabs from my last session.
    The warning in settings (Tools>Options>Tabs>Warn Me When Closing Multiple Tabs) is checked.
    To have my tabs restored from last session, I simply select it for "when firefox starts". Bam, I have my tabs that were open from the last time I quit. Und again, full circle, I don't have my warning pop up.
    There were also suggestions of the warning on close for tabs is conflicting with add-ons.
    However, I don't have many. Und I have yet to test them to see if they interfere. These are according to my Add Ons tab when I check it myself.
    Extensions:
    1. Avast WebRep (disabled)
    2. HP Smart Web Printing (disabled)
    Plugins:
    1. Adobe Acrobat
    2. Google Update
    3. iTunes Application Detector
    4. Java (TM) Platform SE 7 U45
    5. Shockwave Flash
    6. Shockwave For Director
    7. Silverlight Plug-In
    8. VLC Web Plugin
    9. Windows Live Photo Gallery
    10. Java Deployment Toolkit (disabled)
    Note: The Details Firefox provides says I have these for Plugins
    * Shockwave Flash 11.9 r900
    * Adobe Shockwave for Director Netscape plug-in, version 12.0.5.146
    * Next Generation Java Plug-in 10.45.2 for Mozilla browsers
    * Google Update
    * Adobe PDF Plug-In For Firefox and Netscape 11.0.05
    * VLC media player Web Plugin 2.1.0
    * 5.1.20913.0
    * iTunes Detector Plug-in
    * NPWLPG
    Unsure of what the "5.1.20913.0" und the "NPWLPG" plugins are, but they don't appear to me under Add Ons.
    Und as usual, I'm assuming the solution lies within About:Config, I will show here now what I have set to True.
    browser.tabs.warnOnClose - True
    browser.tabs.warnOnCloseOtherTabs - True
    browser.tabs.warnOnOpen - True
    browser.warnOnQuit - True
    browser.showQuitWarning - True
    As aforementioned:
    The seemingly only issue is the conflict between Show Windows/Tabs From Last Time und the Warn On Quit pop up. Und again, I need/want both of them. More so the tabs from the last session, but I really really really really really want the warning.
    So, if anyone knows a work around, preferably without having to download anything to fix this, I would be extremely grateful.

    You mention a second subject.
    ''I'm probably going to downgrade to another version of firefox that was suggested to me since I'm also having issues with shockwave flash causing firefox to hang und ultimately needs to be force closed otherwise having to have flash disabled to use firefox.''
    <u>Downgrading Firefox </u><br />
    Flash is notorious for causing Firefox problems. I suggest you start a new thread about that. If at all possible you should try to avoid downgrading to an unsecure & unsupported version of Firefox. it will increase risks to your system and Personal data. (There are methods of mitigating the risks, using a virtual machine or operating within a secure intranet for instance)
    *(Do Not) [[Install an older version of Firefox]]
    <u>Try Flash with Protected Mode Off</u><br/>
    Worth a try as it takes minimal effort & often solves Flash Problems whilst allowing current and more secure FlashPlayer to be used. See
    * http://kb.mozillazine.org/Flash#Flash_Player_11.3_Protected_Mode_-_Windows
    * http://forums.adobe.com/thread/1018071#TemporaryWorkaround
    If you wish to pursue these subjects further I note you have already started a thread you may as well continue the discussion in that thread, but also post back here so we can follow both.
    * ''Firefox is having "Script" issues (Not Responding) und possibly Flash issues?'' [/questions/978181]
    ** try ensuring you close down Firefox using the menu, that may even help with Flash problems.
    <u>Your experience in submitting troubleshooting information on the forum</u><br />
    (This is out of curiosity, but with the intention of pressing for changes if forum faults are discovered.)
    There are yet more changes to this forum underway. Mozilla recently tried to improve the experience for first time users of the forum and a troubleshooting app option was included in the workflow to try to encourage users to submit full troubleshooting information.
    I would be interested to know what you thought
    I sometimes wonder if users are not trying to use that, or whether forum users run into problems in using it. At one point I wondered whether there was a problem if too much data was included but never actually proved that conjecture.
    Assuming you are using the forum, and not merely replying by email look towards the top in the right hand margin for clickable buttons
    * Question Details -V- More System Details -> [Additional System Details]
    You will note that includes only partial information. There are no changed prefs or extensions listed. Compare for instance the information in this thread [/questions/978130] with full information.
    I believe your mystery plugins are Windows related
    * NPWLPG relates usually to Windows Live Photo Gallery
    * 5.1.20913.0 will be Silverlight

  • My itunes won't update. It's looking for 10.6.0.40. Last time it tried to update, I downloaded the msi to my desktop and I deleted it within the last six months. Now I can't uninstall or update.

    The last time my iTunes couldn't update. I used support from Itunes and downloaded it my desktop. My mistake. Because without thinking, I deleted it within the last six months from my desktop, without thinking I'd need it later. For the past month I've needed to update my Itunes and it can't find the msi. Now, my Ipad, my kids' ipod touches and my iphone can't update. Especially the ipod touches, iphone and work ipad have already updated to the OS6. And, now they won't work with this outdated iTunes. Help.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Back up iPhoto 08' for the first time (different than last time I did it)

    The last time I backed up my photo library was before I got iPhoto 08'. I know I should have done it a long time ago and backed things up at least once a week but I kinda got busy. Since my last backup I have also upgraded to Leopard, which yes I did back up my hard drive when I did that, but I also had the advantage of having an IT person personally helping me.
    Today when I went to back up my library things were different. Rather than the old "iPhoto Library" folder that use to be in the pictures section, I just see a single file named "iPhoto Library" and when I click it, it launches iPhoto.
    So my question is how do I back up my library now, and what ever happened to the "Original" and "Modified" folders? What I would really like to do is save my current library on an external with everything intact. Events, Albums, the order I added them in, etc. I want to clear iPhoto out completely and then re-import my current library.
    I should probably mention that on the external hard drive right now is a back up of my old library from before my upgrade to Leopard and it still has the old setup of the iphoto folder and then inside that is the "Original" and "Modified" folders. How should I handle this, just delete it?

    With iPhoto 7 (iLife 08) the old iPhoto Library Folder is now a Package File. This is simply a folder that looks like a file in the Finder. The change was made to the format of the iPhoto library because many users were inadvertently corrupting their library by browsing through it with other software or making changes in it themselves.
    Want to see inside? Go to your Pictures Folder and find the iPhoto Library there. Right (or Control-) Click on the icon and select 'Show Package Contents'. A finder window will open with the Library exposed.
    Look familiar? Standard Warning: Don't change anything in the iPhoto Library Folder via the Finder or any other application. iPhoto depends on the structure as well as the contents of this folder. Moving things, renaming things or otherwise making changes will prevent iPhoto from working and could even cause you to damage or lose your photos.
    What I would really like to do is save my current library on an external with everything intact. Events, Albums, the order I added them in
    Simply copy the iPhoto Library from the Pictures Folder to the External. That's it.
    I want to clear iPhoto out completely and then re-import my current library.
    I'm afraid that doesn't make a lot of sense to me. If you back up a library then trash it, then restore the selfsame library, how does that constitute a “clear out”?
    I would delete nothing until I had the Maintenance project finished.
    As an Fyi
    There are many, many ways to access your files in iPhoto:
    *For Users of 10.5 and later*
    You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Command-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    (Note the above illustration is not a Finder Window. It's the dialogue you get when you go File -> Open)
    You can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    *For users of 10.4 and later* ...
    Many internet sites such as Flickr and SmugMug have plug-ins for accessing the iPhoto Library. If the site you want to use doesn’t then some, one or any of these will also work:
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. However, if you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto.
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    *If you want to access the files with iPhoto not running*:
    For users of 10.6 and later:
    You can download a free Services component from MacOSXAutomation which will give you access to the iPhoto Library from your Services Menu. Using the Services Preference Pane you can even create a keyboard shortcut for it.
    For Users of 10.4 and later:
    Create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    You can set Photoshop (or any image editor) as an external editor in iPhoto. (Preferences -> General -> Edit Photo: Choose from the Drop Down Menu.) This way, when you double click a pic to edit in iPhoto it will open automatically in Photoshop or your Image Editor, and when you save it it's sent back to iPhoto automatically. This is the only way that edits made in another application will be displayed in iPhoto.
    Regards
    TD

  • Restore files from last Time Machine backup after HD erase and install

    I just had to do an "erase and install" ... trying to restore files from my last Time Machine backup but after completing the Airport Utility setup / configure steps, it says "waiting to restart" for a few minutes and then says it cannot find TIme Capsule after restart (though TC never restarted). I'm pretty desperate to get my files back as it's Sunday night and my business needs to be up and running by morning. Any help would be greatly appreciated ... even if it's saying I need to take TC into a Mac store to have them retrieve my files.

    While in Time Machine, press the key combination shift-command-C. The front window will show all mounted volumes. All snapshots should now be accessible. Select the one you want and navigate to the files you want to restore.

Maybe you are looking for