Date of last run of any program

Hi Experts,
Can anyone please provide how to fetch Date of last run of any program.
I tried for transaction STAD/STAT,did not get desired Results.
Any table name / FM in this regard will be helpfull.
Thanks in Advance.
Regards
Ullas

Hi Ullas,
Not sure of table/FM. But i can give a pointer.
Create one Ztable with mandt, date and time. Only mandt is key here.
In ur program once u finish all selection screen validations just query this Ztable.
SELECT single * INTO wa.
Here u can get the date and time.(First time there won't be any record).
In the last statement update this table with current date and time.
wa-date = sy-datum.
wa-time = sy-uzeit.
MODIFY ztable from wa.
Why i am asking to do it in last is ur program may fail in between. So if it reaches till the end of execution where there are no more statements to be executed MODIFY the ztable.
So at any point of time u can get the successful execution date and time of the report from this table for the given client.
If u don't want to happen at client level then u can remove the mandt field from table.
Hope this may be helpful.
Thanks,
Vinod.

Similar Messages

  • Detailed log when data template is run through concurrent program

    Hi,
    I have registered a data template and I am using concurrent program to generate the output (By giving executable name as XDODTEXE and making short name of the concurrent program as the code of the data definition).
    When I run the concurrent program, it gives me the error
    Calling XDO Data Engine...
    [100306_024642974][][EXCEPTION] java.sql.SQLException: ORA-00900: invalid SQL statement
         at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
         at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
         at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:589)
         at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1972)
         at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:1119)
         at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2185)
         at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:2059)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2976)
    I have checked the sql query in TOAD its perfectly running. I am not able to find out where exactly the problem is in the SQL statement.
    Is there any way by which I can see detailed log (which line of SQL statement caused this exception)?
    Thanks in Advance,
    Harvinder

    The process to make an program incompatible with itself is described in MOS Doc 142944.1 (How to Make a Concurrent Program Incompatible with Itself) - you will have to bounce the concurrent managers for the setting to take effect
    HTH
    Srini

  • If I reset my iphone (errase data and settings) is there any program that can recover information or deleted photos?

    I'm asking this beacuase I want to sell my iphone 4 and before I will errase it, but I want to ensure that the next user will not be able to have acces o recover information such as deleted photos from my phone, I know there are programs that recover deleted stuff from your iphone but do they work after errasing it completely?

    I'm not sure how flash storage works, but there's usually a very decent way of making sure no one accesses your data: first, erase your phone. After that, fill it with crap - you can use iTunes or whatever, and just either fill it with rubish images, or better yet videos (that you don't mind anyone recovering later). Then erase it again. If someone runs a recover data program on it, they will only find the last data you inserted.
    Make sure to completely fill the iPhones available space with crap.
    If you are really nervous - again, not sure if this is necessary for flash storage - but you can repeat this process a couple more times (erase and fill with crap), just to make sure. One time should be fine, though.

  • Time/date stamp when printing from any program?

    Whenever I print a document, I always have a time stamp at the bottom of the page. When I edit the document, it's not there. When I print it, it is there. When I login as the root, the stamp goes away. Any suggestions?

    The stamp prints on every user I try, except for root. I tried Pages, Word, and TextEdit. It was on all of them when I printed a document. I am using a Canon IP4500 and an HP All-IN-One printer. Both of them have it on. I checked the preferences for both, and I couldn't find a time stamp option

  • SQVI Creation Date and Last Run

    Good afternoon,
    I am trying to find out when a user last created report via SQVI and also last used them.
    Can someone give me direction as I am not sure where to find the info either via tables or SQVI/SQ01.
    Thank you
    Coco

    Try the Function modules starting with RSAQ* - you might find some answers there

  • To find last run date of custom concurrent program in oracle apps

    Hello Exports,
    Can you pls tell me how to find last run date of custom concurrent program in oracle apps.( thr Backend query )
    Thanks in advance,
    Edited by: 981527 on Mar 7, 2013 3:01 AM

    try the below:
    select fcp.user_concurrent_program_name
    ,fcr.request_date
    ,fu.user_name
    ,fcr.actual_start_date
    ,fcr.actual_completion_date
    ,fcr.phase_code
    ,fcr.status_code
    ,fcr.argument1
    ,fcr.argument2
    ,fcr.argument3
    from fnd_concurrent_programs_vl fcp
    ,fnd_concurrent_requests fcr
    ,fnd_user fu
    where fcp.user_concurrent_program_name like 'Payroll Run'
    and fcp.concurrent_program_id = fcr.concurrent_program_id
    and fcr.requested_by = fu.user_id
    order by fcr.actual_completion_date desc

  • How to find the last executed date of any program?

    <<Frequently asked questions. So search>>
    How to find the last executed date of any program?
    is there any system variable or function module?
    Edited by: Matt on Oct 5, 2010 12:48 PM

    check the transaction STAD.
    Prabhudas

  • Is there any calendar /contact program that has the depth of power-on Now up-to-date that will run on Lion?

    is there any calendar /contact program that has the depth of power-on Now up-to-date that will run on Lion?

    This can be done easily with ethernet.
    Please follow the instructions strictly.
    To make it easier I want you to do this overnight so you can turn off all your current connection to the internet.
    Just go to the airport fan in to the top right and turn airport off.
    Get ethernet cable and connect the laptop to the TC lan port.. ie <-> ones.
    Press and hold the reset on the TC for about 10sec. until the front led flashes rapidly.
    Open the airport utility.. go to manual setup and change the wireless to off. (so other people around you cannot join your network of one).
    Ignore all the errors.. they won't stop the backup working.
    Go to the TM and reselect the backup target disk as the TC.
    It should start after 2min and run through to completion.
    That is it.. for a backup of many GB it might take a few hours.. so make sure the laptop has power plugged in and the sleep is off.. (on early ones I think this is needed but I am a late arrival to the scene).. sleep doesn't affect later OS.

  • To find the Last run details of a program

    Hi Folks,
             I have an SAP query i just want to find out when it is lastly run and by which user? I am unable to find these details in any function module or table. I can check this by using the auto generated program name but i cant get the last run details in trdir table.
    Please sugest me your views towards its solution.
    Thanks in Advance.
    Regards,
    Ravi.

    Hi....
    Try like this....
    data : it TYPE STANDARD TABLE OF sapwlpfnrm.
        CALL FUNCTION 'SAPWL_STATREC_DIRECT_READ'
          EXPORTING
           no_of_records                     = -1
           read_start_date                   = sy-datum
            read_start_time                  = '000000'
            read_end_date                    = sy-datum
            read_end_time                    = '240000'
    *     read_client                       = ' '
           read_username                     = "<give the user name>"
           read_workprocess                  = 'FFFF'
         IMPORTING
           normal_records                    = it     " this table will give you all the transactions run on the given date range
    *   NORMAL_RECORDS_KB                 =
         EXCEPTIONS
           wrong_parameter_combination       = 1
           file_problems                     = 2
           convert_overflow                  = 3
           OTHERS                            = 4
    Regards
    Debarshi

  • Cannot open data file to run registration program

    I just bought my new laptop last week and after Ive added all my files (105G) and a few programs, this error message comes up upon startup "cannot open data file to run registration program".  I was told by the Toshiba people to use a recovery cd but that it would reset my computer back to its original settings which i don't want to do.  I have Vista and everything works fine but Id rather not get that message every time I boot up.  Any suggestions?

    Thanks for adding Defender.
    We have something in common. Avatar that likes to Stealth hehe.
    Fixing Computers no Jutsu! (Ninja Help and Support Technique )

  • How to get the last run date.

    We intend to develop an incremental data load mapping using this strategy:
    1) The mapping reads the date it was last run from an auxiliary table.
    2) It selects from the source only those rows that were inserted or updated after said date.
    3) Then, a post-mapping process updates the last run date in the auxiliary table, using SYSDATE.
    The problem with this logic is that there is a gap: if the mapping starts running at 1:00 and ends at 2:00, the rows that are inserted in between will never be loaded.
    Is there any way to get the value when the mapping started running? Is there a better way to do this?
    Any help would be appreciated.
    Juan Algaba

    There is always the possibility of some record updates slipping through the crack if you are depending on dates unless you are very carefull. All of the audit tasks that the OWB-generate code performes take time. Any pre- or post- process that needs to run takes time. So which date is the best cuttoff point to equate to "when the last run of the merge (or insert or update) statement completed"?
    Plus, how do you handle reloads if the previous load failed and your mapping had incremental commits?
    Is your source on another server? If so, are the dates in perfect synch? The audit tables populate with sysdate of your runtime schema. Is that the same as the sysdate on your source remote database?
    I would qualify my query to look for all updates since the start of the last run that finished successfully - adjusted if neccesary for sysdate differences if it is on a remote schema. And make sure that your code handles any reloads gracefully in the event that this brings back data that you have already loaded once. .
    Because we use Oracle Streams to load a local staging area, we also have custom code to dump the primary keys of all data changes to utility staging tables while streams is updating the local copy. So, our Person table has an st_Person_delta table that just holds the primary keys that have been updated by Streams since the last ETL run.
    During datamart load we disable the streams apply to stabilize our environment, and join these lists of pk's to their source tables to drive our ETL. So we only select data where Streams has performed an update to the row since our last run. When we are done our ETL, we truncate the primary key staging tables, and then turn streams back on to start loading up our new delta into our staging tables again..
    The ETL gets pretty complex though when many tables join together in one mapping and you need to check all possible source table deltas to see if any of them got updated to determine the delta for a given dimension or fact record, but it works great once you get it all done.

  • DS 4.2 get ECC CDHDR deltas in ABAP data flow using last run log table

    I have a DS 4.2 batch job where I'm trying to get ECC CDHDR deltas inside an ABAP data flow.  My SQL Server log table has an ECC CDHDR last_run_date_time (e.g. '6/6/2014 10:10:00') where I select it at the start of the DS 4.2 batch job run and then update it to the last run date/time at the end of the DS 4.2 batch job run.
    The problem is that CDHDR has the date (UDATE) and time (UTIME) in separate fields and inside an ABAP data flow there are limited DS functions.  For example, outside of the ABAP data flow I could use the DS function concat_date_time for UDATE and UTIME so that I could have a where clause of 'concat
    _date_time(UDATE, UTIME) > last_run_date_time and concat_date_time(UDATE, UTIME) <= current_run_date_time'.  However, inside the ABAP data flow the DS function concat_date_time is not available.  Is there some way to concatenate UDATE + UTIME inside an ABAP data flow?
    Any help is appreciated.
    Thanks,
    Brad

    Michael,
    I'm trying to concatenate date and time and here's my ABAP data flow where clause:
    CDHDR.OBJECTCLAS in ('DEBI', 'KRED', 'MATERIAL')
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) > $CDHDR_Last_Run_Date_Time)
    and ((CDHDR.UDATE || ' ' || CDHDR.UTIME) <= $Run_Date_Time)
    Here are DS print statements showing my global variable values:
    $Run_Date_Time is 2014.06.09 14:14:35
    $CDHDR_Last_Run_Date_Time is 1900.01.01 00:00:01
    The issue is I just created a CDHDR record with a UDATE of '06/09/2014' and UTIME of '10:48:27' and it's not being pulled in the ABAP data flow.  Here's selected contents of the generated ABAP file (*.aba):
    PARAMETER $PARAM1 TYPE D.
    PARAMETER $PARAM2 TYPE D.
    concatenate CDHDR-UDATE ' ' into ALTMP1.
    concatenate ALTMP1 CDHDR-UTIME into ALTMP2.
    concatenate CDHDR-UDATE ' ' into ALTMP3.
    concatenate ALTMP3 CDHDR-UTIME into ALTMP4.
    IF ( ( ALTMP4 <= $PARAM2 )
    AND ( ALTMP2 > $PARAM1 ) ).
    So $PARAM1 corresponds to $CDHDR_Last_Run_Date_Time ('1900.01.01 00:00:01') and $PARAM2 corresponds to $Run_Date_Time ('2014.06.09 14:14:35').  But from my understanding ABAP data type D is for date only (YYYYMMDD) and doesn't include time, so is my time somehow being defaulted to '00:00:00' when it gets to DS?  I ask this as a CDHDR record I created on 6/6 wasn't pulled during my 6/6 testing but this 6/6 CDHDR record was pulled today.
    I can get  last_run_date_time and current_run_date_time into separate date and time fields but I'm not sure how to build the where clause using separate date and time fields.  Do you have any recommendations or is there a better way for me to pull CDHDR deltas in an ABAP data flow using something different than a last run log table?
    Thanks,
    Brad

  • How to find the last run date of the report..

    please any one one help me
    how to find last run date of the report...
    for example if my report is zgrir...if i am exuted in last week
    if want to find when it executed
    last run date is req
    please any one help me...

    The trasaction stat is limited because i want all the execution date even if it is 3 years ago.
    I have tryied the transaction st03 but it is limited to 3 months ago.
    check transaction STAT and it's report RSSTAT00.
    U can copy RSSTAT00 into ZRSSTAT00 and modify corresponding.
    *& Report ZDSAP *
    REPORT ZDSAP .
    DATA: d_ref TYPE REF TO data,
    d_ref2 TYPE REF TO data ,
    i_alv_cat TYPE TABLE OF lvc_s_fcat,
    ls_alv_cat LIKE LINE OF i_alv_cat.
    TYPES tabname LIKE dcobjdef-name .
    parameter: p_tablen type tabname.
    data: begin of itab occurs 0.
    INCLUDE STRUCTURE dntab.
    data: end of itab.
    FIELD-SYMBOLS : <F_FS> TYPE table,
    <F_FS1> TYPE TABLE,
    <F_FS2> TYPE ANY,
    <F_FS3> TYPE TABLE.
    REFRESH itab.
    CALL FUNCTION 'NAMETAB_GET'
    EXPORTING
    langu = sy-langu
    tabname = p_tablen
    TABLES
    nametab = itab
    EXCEPTIONS
    no_texts_found = 1.
    LOOP AT itab .
    ls_alv_cat-fieldname = itab-fieldname.
    ls_alv_cat-ref_table = p_tablen.
    ls_alv_cat-ref_field = itab-fieldname.
    APPEND ls_alv_cat TO i_alv_cat.
    ENDLOOP.
    internal table build
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING it_fieldcatalog = i_alv_cat
    IMPORTING ep_table = d_ref .
    ASSIGN d_ref->* TO <F_FS>.
    SELECT * FROM (p_tablen) INTO CORRESPONDING FIELDS OF TABLE <F_FS>.
    LOOP AT <F_FS> ASSIGNING <F_FS2>.
    *your code goes here.
    ENDLOOP.

  • Run an ABAP program using Data Services/Integrator

    Hi,
    Its it possible to run an ABAP program from Data serives
    There is an aBAP program already created , what it does is to move file from working dir to another directrory
    Can i execute the ABAP prgram from Data Integrator. If it;s possible
    Any suggestions on how to do it
    Thanks

    Yes it might be possible.
    First of all create a batch file based on the following link ...
    http://webcache.googleusercontent.com/search?q=cache:V-Qc73pxxVcJ:www.sap-basis-abap.com/abap/how-can-we-run-abap-program-from-command-line.htmtoexecuteanabapfromwindows&cd=4&hl=en&ct=clnk&gl=uk
    After doing so call the batch file from the following DS command exec() ... exec(command_file, parameter_list, flag)
    Thanks

  • HT201413 I have a Windows XP Home Edition computer.   I recently attempted to upgrade iTunes to v10.7.  It loaded and installed OK, but now it won't run.  When I try to launch it, it gets aborted by the windows Data Execution Prevention software.  Any ide

    I have a Windows XP Home Edition computer.   I recently attempted to upgrade iTunes to v10.7.  It loaded and installed OK, but now it won't run.  When I try to launch it, it gets aborted by the windows Data Execution Prevention software.  Any ideas?

    Yes, this did solve the problem.  But I had some trouble updating QuickTime.  It failed, with the installer complaining that it did not have the required permissions to install the files it needed in the program directory.  I got it to work by telling it to install the files to another directory.  All seems well now - Thanks!

Maybe you are looking for