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

Similar Messages

  • Getting the last posting date

    Hi everybody,
    I need some help. I want to create a Bex Variable with Customer Exit, and i need to modify the ABAP code in order to get the last posting date of Data in my request. I'll like to create to create with BEx Query Designer a request that allows me to make my report on the most recent data only.
    Eg. Let's say today before leaving the work I launch a routine that provides me during the night data for my R/3 system and I'm wonking in a BW environment. Tomorrow, i'll like to compose any request guiving me informations only on what i loaded yesterday without typing the date. I'm oblige to use a variable, but I need the corresponding Abap code. Can some one help me please ?
    Thanks.

    You want your query to return results from only the most recently loaded request. Is that right? You don't need a variable for that. Just bring in "Request ID" (from Data Package dimension) into Filter area and use "Last Request Loaded" variable delivered by SAP.

  • How do I get the last changed date & time of a file in app server?

    Hi Experts,
    How do I get the last changed date & time of a file in app server?
    Thanks!
    - Anthony -

    Hi,
    that's what I use...
      CALL 'C_DIR_READ_FINISH'.             " just to be sure
      CALL 'C_DIR_READ_START' ID 'DIR' FIELD p_path.
      IF sy-subrc <> 0.
        EXIT. "Error
      ENDIF.
      DO.
        CLEAR l_srvfil.
        CALL 'C_DIR_READ_NEXT'
          ID 'TYPE'   FIELD l_srvfil-type
          ID 'NAME'   FIELD l_srvfil-file
          ID 'LEN'    FIELD l_srvfil-size
          ID 'OWNER'  FIELD l_srvfil-owner
          ID 'MTIME'  FIELD l_mtime
          ID 'MODE'   FIELD l_srvfil-attri.
    *    l_srvfil-dir = p_path .
        IF sy-subrc = 1.
          EXIT.
        ENDIF." sy-subrc <> 0.
        PERFORM p_to_date_time_tz
          USING    l_mtime
          CHANGING l_srvfil-mod_time
                   l_srvfil-mod_date.
        TRANSLATE l_srvfil-type TO UPPER CASE.               "#EC TRANSLANG
        PERFORM translate_attribute CHANGING l_srvfil-attri.
        CHECK:
          NOT l_srvfil-file = '.',
          l_srvfil-type = 'D' OR
          l_srvfil-type = 'F' .
        APPEND l_srvfil TO lt_srvfil.
      ENDDO.
      CHECK NOT lt_srvfil IS INITIAL.
      pt_srvfil = lt_srvfil.
    FORM p_to_date_time_tz  USING    p_ptime  TYPE p
                            CHANGING p_time   TYPE syuzeit
                                     p_date   TYPE sydatum.
      DATA:
        l_abaptstamp TYPE timestamp,
        l_time       TYPE int4,
        l_opcode     TYPE x VALUE 3,
        l_abstamp    TYPE abstamp.
      l_time = p_ptime.
      CALL 'RstrDateConv'
        ID 'OPCODE' FIELD l_opcode
        ID 'TIMESTAMP' FIELD l_time
        ID 'ABAPSTAMP' FIELD l_abstamp.
      l_abaptstamp = l_abstamp.
      CONVERT TIME STAMP l_abaptstamp TIME ZONE sy-zonlo INTO DATE p_date
          TIME p_time.
    ENDFORM.                    " p_to_date_time_tz
    Regards,
    Clemens

  • Getting the last modified date of the contact in addressbook

    Hi all,
    Is there any way to get the last modified date and created date of the contacts stored in address book . I have gone through the api docs and could nt find any api's to get the modified date of the particular contact .
    Any help would be greatly appreciated ..
    Regards,
    Mohammed Sadiq.

    Hi,
    Is the above feauture available in AddressBook fraamework ?
    Best Regards,
    Mohammed Sadiq

  • How to get  the last used session id for a browser session

    In HTMLDB 2.0 it is not possible to start a page with authentication without a SESSION_ID and when you start a public page without a SESSION_ID, then every time a new SESSION_ID is generated when you don't use the SESSION_ID in the URL.
    In the same browser session I want to make a URL call to a HTMLDB page without a SESSION_ID and this page has to give back the last used SESSION_ID.
    How can I do that?

    Fred - You could record that session ID in a table. Each time your authenticated application runs, it would update that table with the "latest" session ID, perhaps using an application process. Then when you are formulating the URL to the public page from another application, you'd get the session ID from that table. Or you could use the page sentry component of your app's authentication scheme to send a cookie to the browser on every page view. The cookie would contain the session ID and the other application could access the cookie to complete the URL.
    Scott

  • Is it possible to query a collection and get the last logged on user?

    Hi
    Is it possible in SCCM to query a collection to get the computer names and the last logon user for each computer? I cant seem to find how to do this?
    Thank you

    try this out
    Select distinct   
    v_R_System.Netbios_Name0 AS [Computer Name],  
    v_GS_COMPUTER_SYSTEM.UserName0 AS [User Name]
     from v_R_System
    left join v_GS_COMPUTER_SYSTEM on (v_GS_COMPUTER_SYSTEM.ResourceID = v_R_System.ResourceID) 
    inner join v_fullcollectionmembership as b on (b.ResourceID = v_R_System.ResourceID) 
    left join v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP ON v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP.ResourceID = v_R_System.ResourceID
            inner join v_GS_SYSTEM e on e.resourceid = b.resourceid
     Where
    b.CollectionID = @collectionid
    Blog: http://theinfraguys.com
    Follow me at Facebook
    The Infra Guys Facebook Page
    Please remember to click Mark as Answer on the answer if it helps you in anyway

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

  • How to get the last run date of an ISchedulerTask ?

    Hello,
    I have implemented an ISchedulerTask and inside the run method I would like to get a reference to the last timestamp/date that the task was running, any idea how to achieve that?
    Rgds,
    Roy

    Hi
    You can create a custom metadata property and set this property with the date when the Ischedlar task runs.
    So, in your code you can read this property whenever you want to read the previous date.
    Hope this works.
    Thanks
    Puneet

  • Need FM to get the last consumption date and value

    Hello Friends,
       i am developing a report for non moving material , i have got the relevant fields from MSEG,MKPF, MCHB, MCH1,,, but i need the last consumption date for that non moving material batch and value (total amount ) of that batch...
    so i need a Function Modules, to get this values .
    Please help me out
    Regards
    Mukesh

    You have to join MSEG and MKPF ( where MKPF has the posting date ) , ( day,month,year ) . You can calculate the month.moreover, also see S031,S032,S033
    else.
    check it at Mseg-lgort, and movement types for the given matnr.
    from there u can find the consumtion according to movement types .
    for particular period carry mblnr from mkpf and check the movement types which r equal to this mblnr and matnr in mseg.
    so u get the all movement types in that period for particular matnr.
    consumtion = issues - receipt.
    hope this helps u

  • Need to get the Last Changed date in Purchase Order.

    Dear Experts,
    I need to get a table which stores the last/ latest change for a Purchase Order.
    For a Purcahse Order, last date  Changes need to be captured , where there was some sort of activity associated with that order. That activity could be a goods receipt, an invoice payment or a change to the Purchase order.
    Thanks in advance.

    Hi,
    You can use EKPO-AEDAT.
    Tables CDHDR and CDPOS contain what chnages you have made.
    Thanks,
    Ramakrishna
    Message was edited by: Ramakrishna Prasad Ramisetti

  • How to get the last update date

    Hi Everyone,
    I need to insert into a table the name of the package and date of the last updated version of the execution.
    I was thinking in inserting from procedure into a table, the ID and system date into a table.
    But I would like to know if there is another way, or better way of doing this.
    I do appreciate your help and guidance.
    Best regards.
    J_ORCL
    Edited by: J_ORCL on Apr 23, 2012 9:16 AM

    Hey Atdi,
    Thank you so much for your guidance and help.
    What i do need is the following:
    Once I am inserting/passing some data into a table from an excel file/Database to an Oracle Table in my environment, I do need now to get a record of the last update that has been inserted. And after that I will have to show that date on my screen, but that is something else.
    So i have thought of inserting it with a store procedure over a new table that i will have to create or if ODI stores this information somewhere it will be really useful for me to retrieve from there.
    In some cases I am passing data from one table to other using store procedures, because there is no link between them, but as this is a new scenario, which is why I am asking if ODI already does this for us, or if I will have to implement it myself.
    Hope to be a bit clearer with this explanation.
    Please do not hesitate to contact me if any further detail is required.
    Best regards.
    J_ORCL

  • Table name for Info-record where i can get the last changed date and user

    Using ME12, i have changed the price of the info record i want to get the who was the user and changed date...
    I had check in EINA EINE but i couldnt find out please anybody Please help me out by providing solution for this??

    Hi
    If at the data element level the field for which you want to know the old and new fields  the option of CHANGE DOCUMENT option must be  enabled ,then you can find the old and new values in the
    CDHDR -
    Change document header
    CDPOS -
    Change document items.
    Regards
    Pavan

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

  • Last Use Date for iViews/Pages/Workset - Portal clean up of old items

    Is there any scripts that SAP has created that shows the Portal Admin which iViews have been recently used by the users and which ones have not. We would like to go through our environments and Clean Up/Remove old none used code in the PCD.
    I am hoping there is a script that can be run which produces a report stating Last Used/Executed date. If there is nothing like this, does any one know if there is any Data Base table or fields that can identify this type if data so we can create/write our own script?  The PDC inspector may do this but its a very manual effort and we'd like something that is automated and runs in the background.
    I know we can turn on metrics, but that will not work for us because it completely bogs down our systems and we can't afford that. Hence we are looking for something that runs in the background and will not effect our environments.
    Thanks
    Pete

    Thanks everybody for trying to asnwer the first question.
    But I guess what I am really looking to find out, for every item we have in the PCD, is there a way to find the last used date? We don't want to turn on the metrics for a period of time like some of the solutions have suggested since that will bog down out production system and it still won't help us identify in our DEV and Test regions items that might still be valid but haven't been touched for a while or are still in development phases. 
    I was hoping that there would be a way that SAP would allow us to enter in a folder name, iview, workset, page, role, etc and then have the system tell us the last used/accessed date for that item or all of the items in the PCD folders.   Kind of the reverse thought to get this data instead of letting the metrics tell us which users have hit which pages, etc.
    Does any one know of that type of option? 
    Thanks
    Pete

  • Storing the last modified date for files in a HashMap

    This method gets a list of all the .java files in the source subdirectory, gets the last modified date for them and stores the file name and last modified date in a HashMap.
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              ArrayList javaFiles = new ArrayList();
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.size(); i++)
                   currentFile=(File)javaFiles.get(i);
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;
    }The problems I am getting are:
    >
    The method listFiles(FilenameFilter) is undefined for the type myClass
    and
    >
    The method put(Object, Object) in the type HashMap is not applicable for the arguments (File, long)
    can anyone help? What's the best way to go aobut this?

    Thanks for the replies abenstex I modified it so that javaFiles is now a File[] and made the change you suggested but I still have the second problem, here's the code so far:
    import java.util.HashMap;
    import java.io.FilenameFilter;
    import java.io.File;
    import java.util.ArrayList;
    public class myClass
         public static void main(String[] args)
              HashMap result = getLastModified();
         static FilenameFilter javaFilter = new FilenameFilter()
            public boolean accept(File dir, String name)
                return name.endsWith(".java");
         public HashMap getLastModified()
              HashMap lastModified = new HashMap();
              File[] javaFiles = {};
              File sourceDir = new File(".\\Source");
              File currentFile;
              long lLastModified;
              //get a list of all the .java files in the source directory
              javaFiles=sourceDir.listFiles(javaFilter);
              //for all .java files get and store the last modified date
              for(int i=0; i<javaFiles.length; i++)
                   currentFile=(File)javaFiles;
                   lLastModified=currentFile.lastModified();
                   lastModified.put(currentFile, lLastModified);
              return lastModified;

Maybe you are looking for

  • Tips for users of ThinkPad x41

    I had some problems after formatting the hard drive of the ThinkPad X41. Here is my experience how to solve these problems.  Maybe it will be useful to somebody. 1. If you have to re-install your Windows connect the CD (DVD) USB drive  to your comput

  • LCD TV Problems

    Hello, I have a 32 inch LCD HDTV that I decided to connect to my mac as a second monitor. I have a Powermac G5, first generation dual 1.8GHz with the stock GeForce FX5200 installed. I bought an HDMI/DVI cable and conected the DVI to my fx5200 and con

  • How do you save videos from iPhoto to a USB flash drive?, How do you save videos from iPhoto to a USB flash drive?

    Hello! Could someone please help me? I am trying to save vidoes from iPhoto to a USB flash drive. After I export them, I open my flash drive to play them back and they are all zero seconds long in Quick Time Player. What am I doing wrong?

  • How to autoincrement data in jdeveloper using postgres

    hi..Can anyone help me about my prob.? I need to know how to auto increment records in jdeveloper using postgres.. hope u can give me sample codes which i can use as my reference.. hope for your immediate reply..thankz..=)

  • Purchase order pricing condition

    Hi,    we have a item level condition of octroi value in my purchase order. even though user is maintaining during po creation it's not impacting total po value. how to check this and configure to have impact on total po? what is the meaning and impa