Last Executed date of a job.

Hi everybody,
       I have a scenario where I need to compare the record created date with the last executed date of a batch job. The record created date, we are retrieving from a Z table. But I am unable to find the table from where I can find the last executed date of the job / Report.
          I came to know from many forms to use TBTCO table. But in our development systems, we could not find the latest executed date for some jobs which were executed  recently. that field is completely empty for some jobs.
             Please suggest me the right table where I can find the last executed date of the JOB / Report.
Any helpful answer will be rewarded immediately.
Thanks in advance.
Vana.

Vana,
  In table "TBTCP"   there is field called  SDLDATE(Date of job/step scheduling).
So, select data of paricular job  .Say it will give 5 different dates. into internal table.
SORT the internal table SDLDATE  DESCENDING.
So you will get the latest scheduling date record in first position of internal table.
IF latest record date is < sy-datum+1.
  Yes last schedulke date.
ENDIF.

Similar Messages

  • Last executed date for a report

    Hi,
    I have to find out the last executed date of set of reports/programs. Please let me know how to get that information. Is there any table wherin I can give the list of reports and download the output?
    Thanks,
    Raj.

    HI,
    Check transaction STAD.
    There you can specify user, transaction or program and a time frame.The question will be, how long do you keep statistics in your system...
    Regards
    Kiran

  • 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

  • Stored Procedure Last executed date and time

    Hi ,
    Is there any way in which I can find out when a stored procedure was last executed in Oracle.
    Thanks,
    Devi

    930265 wrote:
    Hi ,
    Is there any way in which I can find out when a stored procedure was last executed in Oracle.
    AUDIT EXECUTE ON PROCEDURE

  • How to find the last executed date ,time and user of the quaery

    Hi,
    How to find the following information of the Query
    1. Where all the place these queries/web template used.
    2. When was it last executed.
    3. Who executed last.
    Regards,
    Hari

    hi Hari,
    you can try table /BI0/APERS_BOD00
    for query, first go to table RSRREPDIR, give field COMPID
    with query technical name and get GENUNIID, then go to table /BI0/APERS_BOD00, field TCTOBJNM = RSRREPDIR-GENUNIID, TCTUSERNM and TCTTIMSTMP -> user name and last executed.
    for web template, give field TCTOBJNM in table /BI0/APERS_BOD00 with web template name.
    hope this helps.

  • See the date of a job when it was disabled

    HI,
    Here is the scenario where we create a job, run it for once, disable it for few months, enable it again and run it. In this case, is there any way to know all the above mentioned details by querying the status of the job.
    EXEC msdb.dbo.sp_help_job @Job_name = 'job_name' gives me the created time, last executed date, next scheduled date for execution, but not the date when it was disabled in between these two periods.
    Thanks

    Hi,
    AFAIK, SQL Server doesn't audit this information by default, so this data is not going to be available to you out of the box. But you may be able to correlate the value in msdb.dbo.sysjobs
    modified_date if no other activity has happened post disabling this job.
    If you want to track all the activities then you should  have a triggers as suggested by Saeid.
    Please mark solved if I've answered your question, vote for it as helpful to help other users find a solution quicker
    Praveen Dsa | MCITP - Database Administrator 2008 |
    My Blog | My Page

  • Function Module to find the Last Execution date of Back ground Job

    Hi,
    Is there any function module to find the <b>last execution date of back ground job</b>.
    So that I can transfer the data from SAP to Legacy system based on the document creation date should be in between last execution date and current date.
    thanks in advance.
    Eswar.

    Don't know of a function module, but you should be able to use the information in table TBTCO to get the last start date and time of the job you are interested in.

  • How can we show the last consumption dates?

    Hi BEx  Gurus,
    I have consumption dates and quantites for a material and a time interval in my query.
    In the selection screen i specify a time interval. Then i execute query. I can see last consumption quantity due to calculated key figure(enhancement> last quantity due to calendar day(consumption date)).
    Up to now eveything is OK. But i want to see also last consumption date. I tried formula variable with key "date", set it to the last . I drag it to the calculated key figure. Put it to the colums. But when i executed i saw that last date is the date that i specified in selection screen. It is not the date that last consumption is exist.
    Could you please help me?

    var letter:Number = Number(new Number(0x2714).toString(10));
                        trace(String.fromCharCode(letter))
    Source : Adobe Website
    If you cannot still cannot display it, just change the font family,
    simple way is by copying the character into the text field, then change the font family until the character show up correctly, then just input that code i give to u to the script
    PS : Just done it

  • View for Last executed DDL ?

    Hi,
    Is thr any view to find out the last executed ddl ?
    Because i need to know last change happend in the database .
    Thanking You
    Jeneesh

    From asktom :
    Tom,
    Can I have my last executed SQL retrieved from the database?
    just by passing the sid. I want those SQL executed in my application not the onse executed by
    Oracle itself
    Followup   November 12, 2003 - 5pm US/Eastern:
    you'll get the last sql executed by joining v$session to v$sql. if the last sql executed was
    recursive SYS sql -- you'll get that (that would be the last sql).  we really don't discriminate
    between them
        Forgot to tell you this data dictionary view will age out. So there is no absolute guarantee you will find all the sql executed since the database instance has been started. Other option is Audit. For more information refer oracle manual.
    Regards
    Ra
    Message was edited by:
    s.rajaram

  • Hyperion Planning Last Login Date

    Hello Everyone,
    I have a requirement where in I need to track the usage of the Hyperion Planning application. I need to build a list of inactive or dormant users and clean them up from the application.
    In order for me to achieve this, I need the Last Login date into the Hyperion Planning application.
    I read about something called Usage Tracking that needed to be turned on. A records gets added into the hsp_audit_records table.
    Can someone throw some more light on this ? My requirement is to track the planning apps usage and clean up inactive users.
    Thanks
    RS

    Hi,
    we have the same issue: some new users every week and a lot of users not using planning anymore- depending on their always changing role in the company.
    only helpful logfile we use to identify inactive/old users is: hbrlaunch.log - it logs the username and the businessrules, they execute.
    maybe you regard this approach as a helpful workaround (provided your users run businessrules at all)
    users, who run only financial reporting or who open only planning forms to passively review budgets (we have that a lot) , we would delete accidentially by this approach, because if you never save data, you never execute a businessrule attached to a webform.
    but what about following approach:
    you create a very small webform called "Confirm my user access", add a very small businessrule named "Confirm user access", which calculates almost nothing and you attach the rule to the form, give access to all users AND use option: "run on load"
    by this, the rule get's executed on opening the webform already - you could even show a member in the webform with name "Thanks for confirming your user account - it will remain active"
    Only disadvantage: you need to write a mail to all users and explicitly ask them to open that webform and confirm the user access. (Maybe you like that approach)
    Alternative might me that you attach the businessrule to the/those webform(s) - especially read-only webforms, where people don't save data or execute businessrules and which are opened most often by all users and don't tell them about that method at all.
    You then should get a pretty complete overview of your active users (userid's only I am afraid ) in hbrlaunch.log
    in addition, financial reporting has a logfile as well, so you could combine the usage of financial reporting and planning (provided you use it)
    pls. note, that the early 9.3.1 financial reporting versions have a bug and the logfile is empty= useless
    Assuming you use shared services, you probably have to attach your users into several groups- it maybe helpful to first remove the user from one central group, which blocks their access to planning application or takes the right to open planning forms- you then start your forecast, wait for their complaints and delete them 3 months later completely from all security groups - could save you some work on re-creating their access.
    We use the apache http-webserver - you can modify it, so that it's logging all datatransfer - you get there the IP-Adress and the requested application (Hyperion Planning) and the requested webforms logged - but no username.
    In the eas console, we see the last logindate, which seems to show the last date, a user requested a financial report against essbase.
    We use that information in combination with hbrlaunch.log form businessrules.
    we have the hsp_audit_trail switched on for all options-
    data: it stores all member, user and time information for every single saved value in the database - so we have between 500.000 and 1 Mio entries - it's especially useful, when your essbase crashes and your backup is a few hours old- you then can use that information to upload the remaining data-entries via smartview/exceladdin - provided you have some hours time to prepare the values in excel.
    hspaudittrail useful as well when it comes to discussion, who entered which numbers when.
    tracking of businessrule execution: should deliver same results as hbrlaunch.log
    other changes being tracked should be meaningless for your requirement, as it tracks the work of the admin-person (Dimensions, Members, Usergroups, Webforms)
    regards
    Rodian
    Edited by: Rodian Abel on 01-Apr-2010 12:20
    Edited by: Rodian Abel on 01-Apr-2010 12:33

  • Query on 0TCT_MC01 to get the last used date of a query

    Dear All,
    I tried to create a query on 0TCT_MC01 to get the last used date of a query.
    Since we do not have readily available key figure for Last used date, could any one help me out to achieve this result?
    I am interested to find the old queries which are not being used anymore.
    Thanks in advance.

    You can get the info from the below tables
    if you are working with BW 3.5 you can look in table RSDDSTAT in BI 7.0 it is RSDDSTAT_OLAP.
    Make a selction on the infocube and the OLAP Statistic Object which is the query ID and execute. Then you should see how often the query was executed, by whom and which date/time.
    in field Statistics Object Name Query ID you type in the tech name of the query
    from the Counter for statistics event calls -- will give the count... no of times the query used least the count lesser the query is used.
    Regards
    KP
    Edited by: Konduru Prashanth. on Dec 22, 2011 2:44 PM

  • Last GR Date in the Bex Query

    Hello Experts,
    I have one requirement in BW, where I need to get the last GR (Goods Receipt) date.
    In my query, I will be having 4 KEY Fields and 1 CHR Field
    CHR Field is “ 0MATERIAL
    KEY Field is  : Closing Stock Qty , Closging Stock Value, GR Value, and Last GR Date
    I am using 0PUR_C01 and 0IC_C03  info provider for this query. Now my concern is, how do i get the “Last GR Dates”.
    No matter to which date I execute the report, it should always shows the latest date on when we have done the last GR.
    For example.. I executed the query as on 31/Dec/2013.. But the last GR date should be let’s say 03/April/2014.
    Regards
    Sachin

    u can follow this document Posted by  AL , Provides Detail steps how to show latest Record based on Date .
    How to show First and Latest Record at BEx Level

  • BAPI_USER_GET_DETAIL - Last Logon Date not available

    From R3 I want to check the last logon Date (USR02-TRDAT) of a user in an outside system such as EBP or BW.  BAPI_USER_GET_DETAIL seemed like a good choice but TRDAT is not passed to the BAPI. Last Logon Time is (LTIME) but not Last logon date (TRDAT). How can this be easily done.
    Thanks,
    -don.

    the problem with this is that it makes a call for each user. If you have 100k users it becomes a very inefficient process.
    If you build something in the backend to collect the details a useble format....1) it is custom, and 2) you need to deply in each backend and 3) maintain it in each backend.
    not a good solution.
    If anyone has better idea please shout. Again....this RFC call does the job.....but it is like empting a pool full of water with a  teaspoon, does the job but very inefficiently.
    DenisO

  • How to find the Last modified date and time of a package

    Hi,
    We need a clarification on how to find the Last modified date and time of a package in Oracle. We used the example below to explain our scenario,
    Lets consider the following example
    Let A, B be two packages.
    Package A calls the package B. So A is dependent on B.
    When A is compiled the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated.
    Now there a modification in package B so it is compiled. There is no modification in package A.
    Now when the package A is executed the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS gets updated but we did not make any change in Package A. Now we need to find last modified date and time of the package A . So we can not rely on the TIMESTAMP,LAST_DDL_TIME in USER_OBJECTS . Can u please tell us any other solution to get last modified date and time of the package A .
    Regards,
    Vijayanand.C

    Here is an example:
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 10:57:32 2004-05-20:10:57:32 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 VALID
    SQL> CREATE OR REPLACE PROCEDURE A AS
    2 BEGIN
    3 NULL;
    4 NULL;
    5 END;
    6 /
    Procedure created.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 10:59:04 2004-05-20:10:59:04 INVALID
    SQL> EXEC B
    PL/SQL procedure successfully completed.
    SQL> SELECT OBJECT_NAME,CREATED,LAST_DDL_TIME,TIMESTAMP,STATUS FROM USER_OBJECTS
    2 WHERE OBJECT_NAME = ANY('A','B');
    OBJECT_NAM CREATED LAST_DDL_TIME TIMESTAMP STATUS
    A 20-MAY-2004 10:57:32 20-MAY-2004 11:01:28 2004-05-20:11:01:28 VALID
    B 20-MAY-2004 10:58:22 20-MAY-2004 11:01:53 2004-05-20:11:01:53 VALID
    Note that the date under the column 'created' only changes when you really create or replace the procedure.
    Hence you can use the column 'created' of 'user_objects'.

  • 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.

Maybe you are looking for