Abap reports:  Detecting who uses and how often

Our company has been live with R/3 since 1996, and has accumulated a lot of custom ABAP reports.  When we next upgrade or apply support packs, I'd like to be able to retire the unused reports, and find out who used the rarely-used ones.
Ideally, SAP 4.6c already has a tool which detects starts via 'submit', SE38, SA38, or transaction code.
Does anyone know of such a tool?
(We have a product called Luminate, but didn't buy the ad-hoc reporting part I need.  I also looked at SAP's RBE, but it's currently unavailable.)

Hi Eric,
You can write your own code which will give you are the information from the STAT file.
You can also run STAT - System Statistics to get the info. We have written a simple code which does 3 steps mentioned below. We read the info from the STAT file and store in the z table.
NOTE: you can use this code only if your system has been enabled for collecting STAT info.
  PERFORM startofsel_open_stat_file.
  PERFORM startofsel_read_data_from_stat.
  PERFORM startofsel_close_stat_file.
FORM startofsel_open_stat_file .
  CALL FUNCTION 'PF_FLUSH_BUFFER'.
  CALL FUNCTION 'PF_OPEN_STAT_FILE'.
ENDFORM.                    " startofsel_open_stat_file
FORM startofsel_read_data_from_stat.
  CLEAR: it_pgrmstats_1,
         it_newstats.
  REFRESH: it_pgrmstats_1,
           it_newstats.
  CALL FUNCTION 'PF_READ_STAT_REC'
       EXPORTING
            file              = w_local_fname
            target_rec_no     = 0  "READ FIRST REC
       IMPORTING
            diarec            = w_diarec
            btcrec            = w_btcrec
            rfccdrec          = w_rfccdrec
            rfcsdrec          = w_rfcsdrec
            rectype           = w_rectype
            recno             = w_recno
       EXCEPTIONS
            pf_end_of_file    = 1
            pf_internal_error = 2
            OTHERS            = 3.
  CHECK sy-subrc = 0.
  SELECT *
    FROM zgbsstats
    INTO TABLE it_pgrmstats_1.
*    WHERE PGRMNAME IN S_PROG .
*      AND DEVCLASS IN S_DEVCLS
*      AND edate    IN s_date
*      AND USERID   IN S_USER.
  IF sy-subrc EQ 0.
    SORT it_pgrmstats_1 BY pgrmname.
  ENDIF.
  PERFORM process_stat_record.
  DO.
    CALL FUNCTION 'PF_READ_STAT_REC'
         EXPORTING
              file              = w_local_fname
         IMPORTING
              diarec            = w_diarec
              btcrec            = w_btcrec
              rfccdrec          = w_rfccdrec
              rfcsdrec          = w_rfcsdrec
              rectype           = w_rectype
              recno             = w_recno
         EXCEPTIONS
              pf_end_of_file    = 1
              pf_internal_error = 2
              OTHERS            = 3.
    IF sy-subrc = 0.
      PERFORM process_stat_record.
    ELSE.
      EXIT.
    ENDIF.
  ENDDO.
ENDFORM.                    "startofsel_read_data_from_stat
FORM startofsel_close_stat_file .
  CALL FUNCTION 'PF_CLOSE_STAT_FILE'.
ENDFORM.                    " startofsel_close_stat_file
FORM process_stat_record.
  CLEAR: it_newstats.
  CASE w_rectype.
    WHEN '00'. "On-line programs
      CHECK NOT w_diarec-cuafunc = 'BACK'.
      MOVE w_diarec-report  TO it_newstats-pgrmname.
      MOVE w_diarec-tcode   TO it_newstats-tcode.
      MOVE w_diarec-account TO it_newstats-userid.
      MOVE w_diarec-date    TO it_newstats-edate.
    WHEN '01'. "Batch Jobs
      MOVE w_btcrec-report  TO it_newstats-pgrmname.
      MOVE w_btcrec-jobname TO it_newstats-jobname.
      MOVE w_btcrec-account TO it_newstats-userid.
      MOVE w_btcrec-date    TO it_newstats-edate.
    WHEN '05'. "RFC
      MOVE w_rfccdrec-progname TO it_newstats-pgrmname.
      MOVE w_rfccdrec-funcname TO it_newstats-functname.
      MOVE w_rfccdrec-userid   TO it_newstats-userid.
      MOVE w_rfccdrec-rfcstart(8) TO it_newstats-edate.
    WHEN '06'.
      MOVE w_rfcsdrec-progname TO it_newstats-pgrmname.
      MOVE w_rfcsdrec-funcname TO it_newstats-functname.
      MOVE w_rfcsdrec-userid   TO it_newstats-userid.
      MOVE w_rfcsdrec-rfcstart(8) TO it_newstats-edate.
  ENDCASE.
  IF NOT it_newstats           IS INITIAL
     AND it_newstats-edate     IN s_date
     AND it_newstats-pgrmname  IN s_prog
     AND it_newstats-userid    IN s_user.
    APPEND it_newstats.
  ENDIF.
ENDFORM.                    "process_stat_record
Cheers
VJ
If it helps dont forget to mark points.

Similar Messages

  • How many users and how often a particular discoverer report is being run?

    Hi there,
    We run discoverer(4i) reports from portal. The question is:
    How to find out the number of users and how often a particular discoverer report is being run?
    Many Thanks in advance.
    Naren

    I know in the 9 versions of discoverer is there is a Discoverer v5 Business Area that is included out of the box. You have to have the stats turned on inside of the pref.txt. But that BA has all of the information to create queries about who, what, parameters, etc. You'll have to check and see if its part of 4i.
    Matt Topper
    Senior Consultant
    TUSC, The Oracle Experts.

  • Which file type should I use and how I use it?

    Hello!
    I need to create a file with some data that has been inserted manually.
    In this file, for example, there are:
    ProjectName1: string1, string7… string10, date1
    ProjectName2: string11, string15… string20, date2
    ProjectNamek: string 100, string 116 … string 140, date1
    I know only one thing: one of the strings.
    What I need to find in the file:
    I need to find the string at one of these rows and get its ProjectName and date.
    For example: if I have string15,
    I should find string15 in the file, and get its ProjectName and date:
    ProjectName2, date2
    Which file type should I use and how I use it? What is the best solution?
    Thanks!

    800512 wrote:
    I need to create a file with some data that has been inserted manually.
    In this file, for example, there are:
    ProjectName1: string1, string7… string10, date1In addition to Pandiya's advice, if the string is always in exactly the above format
    (ie:
    1. ProjectName always starts the line and ends with a ':'.
    2. The rest of the strings on the line are separated by ", " and will never contain ", "
    you might also want to have a look at String.split().
    Winston

  • Which planning function i have to use and how to write this planning fucnti

    Hi Bi Guru's,
    I have rolled out  BW SEM-BPS Planning Layout's for the Annual Budget in my organistaion.
    There are two levels of layout given for the each sales person.
    1)  Sales quantity to be entered Material and  country wise for all 12 months ( April 2009 to March 2010)
    2)  Rate per unit and to entered in second sheet, Material and country wise for the total qty entered in the first layout.
    Now i need to calculate the sales vlaue for each period and for the each material.
    Which planning function i have to use and how to write this planning fucntion.
    Please suggest me some solution ASAP.
    Thanks in Advance,
    Nilesh

    Hi Deepti,
    Sorry to trouble you...
    I require your help for the following scenario for caluclating Sales Value.
    I have Plan data in the following format.
    Country   Material    Customer    Currency    Fiscyear    Fiscper           Qty         Rate        Sales Value
    AZ          M0001      CU001          #             2009          001.2009        100.00                        
    AZ          M0001      CU002          #             2009          001.2009        200.00                        
    BZ          M0001      CU003          #             2009          001.2009        300.00
    BZ          M0001      CU003          #             2009          002.2009        400.00
    BZ          M0002      CU003          #             2009          002.2009        300.00
    AZ          M0001       #               USD          2009             #                                 10.00
    BZ          M0001       #               USD          2009             #                                 15.50
    BZ          M0002       #               USD          2009             #                                 20.00
    In the Above data the Rate lines are entered in the Second Layout, Where the user enters on the Country Material Level with 2009 value for FISCYEAR.
    I am facing problem with this type of data. 
    I want to store the sales value for each Material Qty.
    Please suggest some solution.
    Re
    Nilesh

  • I have been trying to download and install a trial. What is the best browser to use and how do i do it?

    I have been trying to download and install a trial. What is the best browser to use and how do i do it? The set up and everything is on the desktop but it never seems to load anything?

    what file (name and extension) is on your desktop and what os?
    what have you done to install the desktop file and what do you see when you do that?

  • I want to convert a pdf file into xml.Which programme should I use and how do I access it?

    I want to convert a pdf file into xml.Which programme should I use and how do I access it?I am based in India.

    Hello,
    if you create your doc files by the help of WORD, you could use a Microsoft add on (it depends of your WORD Version).
    Hans-Günter

  • After downloading OSX Maverick you then cant use work. excel or powerpoint. What do i use and how can i recall my word documents etc

    After downloading OSX Maverick you then cant use work. excel or powerpoint. What do i use and how can i recall my word documents etc

    Use Office for Mac 2011.  If you have it, open one of the programs (Word, Excel, PowerPoint) and do Help > Check for Updates from the menu.
    Otherwise, purchase Office 365 and use that.

  • I can't use Safari as my browser for an on-line training seminar. What other browser can I use and how do I get it?

    I can't use Safari as my browser for an on-line training program. What other browser can I use and how do I get it?

    Web Browsers for Mac OS X
    Pure Mac: Web Browsers
    Web Browsers for the Mac
    Download the browsers from their website.

  • Remove cookies?  Why and how often?

    Remove Cookies?  Why and how often?  Option seems to be different now that I'm running Mountain Lion.

    The only reason to remove Cookies is if your concerned about being tracked and your privacy. It's futile to keep removing Cookies from sites you frequently visit.
    In your browser settings, you should set the cookie preferences to block cookies from third parties and advertisers. In Safari you do that in Preferences/Privacy.
    In Safari you can also set Preferences/Privacy to ask websites not to track me
    If you delete the apple.com cookie, you will need to constantly sign into iTunes because the apple.com cookie contains the iTunes username and password.

  • HT5527 I don't have iCloud in my system preferences, I am using 10.6.8 how do I see how much storage I am using and how do I purchase more?

    I don't have iCloud in my system preferences, I am using 10.6.8 how do I see how much storage I am using and how do I purchase more?

    You can't check your usage on the iCloud website - you have to do this from the iCloud prefs pane, which you don't have. If you are only using it for email you would have to be storing an awful lot of messages to exceed 5GB. If you are concerned about this you can download some of them to your Mac and off iCloud.
    To do this simply create a folder under 'On My Mac', go to the iCloud mailbox, select some of the messages and drag them to the folder you created. Don't try to do too many at once (say more than 100) and allow time for them to download.
    If you haven't yet set Mail up to access iCloud, but are simply using the website, you can set it up as detailed here:
    Entering iCloud email settings manually in Snow Leopard or Leopard
    If you do decide to upgrade, the latest version of iPhoto is only £10.49, though MS Office is more of a problem. But you can go on as you are as long as your Mac holds out - Snow Leopard is a good solid system.

  • How to do Enhancements in Reporting & What is Role and How to create Roles

    Hi All,
    Can any one tell How to do Enhancements in Reporting, and also What is Role and How to create Roles in Reporting?
    Plz reply back me on [email protected]
    Regards,
    Kiran

    Reporting Enhancement - RSR00001 - BW: Enhancements for global variables in reporting
    And using the SAP Exit - EXIT_SAPLRRS0_001
    RSR00001- With this enhancement to global variables in reporting you have the option of determining your default values for variables. You can use this enhancement for variables, for which 'Processing by Customer-Exit' has been selected in the variable maintenance. This is valid for all variable types (characteristic value, node, hierarchy, formula and text variables). You use the Exit EXIT_SAPLRRS0_001 for this.
    The Enhancement component (RSR00001) must be assigned to a Project Created using the Transaction CMOD. On activating the Project, the Exit would become active and in turn the logic written inside the Exit.
    To ensure that the data warehousing soultion reflects your company's structure and business needs it is critical that you establish who is authorized to access the data.With SAP BW, Authorizations can be defined and maintained by object and can also be applied to hierarchies and these authorizations can be inserted into roles that are used to determine what type of content is available to specific users or user groups.
    T-code for Role maintainence -PFCG.
    Please assign points if it is useful.
    Regards
    Pavan Prakhya

  • Problem in Printing ABAP Report in EP using SAP Transaction IVIEW

    Dear All,
    A very gud evening,
    I am using SAP Transaction Iview to show the ABAP Reports, But I have a Problem...
    How to print this report???
    Please solve this issue, I have measure requirement of it from client.
    Thanks in Advance..

    Thanks Haydn,
    But my problem is that, there may be no of users will be accessing this report. user will not be having SAP GUI installed in his machine. He will be accessing Transaction IView after login in EP (from any where may be from cyber cafe) and He would like to take printout using any button on the screen.
    So suppose any end user having only Internet Explorer installed in his machine, will he be able to take the print out. I think its very genuine requirement.
    OR user can not take print out untill SAP GUI is installed in his machine???
    Please suggest...
    Thanks in advance...

  • Abap Report including sales orders and delivery data.

    Hi Experts,
    I Want to develop a new abap report which would contain the data for sales orders and delivery.
    I want to fetch all the sales orders based on the ship date (LIKP-WADAT_IST) of the delievry.
    Could anyone please let me know how to fetch teh data or is their any function module which would help me to solve my problem.
    <Removed by moderator>
    Thanks,
    Komal.
    Moderator message : Spec dumping not allowed. Thread locked.
    Edited by: Vinod Kumar on Aug 10, 2011 1:25 PM

    post this in ABAP forum for quicker response.
    Regards
    Raja

  • LMS 4.2 Why is TCP port 514 used and how to close it?

    An internal security scan showed that TCP port 514 is open on the Cisco Prime LMS 4.2.4 server.  The security team is concerned that this port is commonly used for rsh, which is not encrypted and may use plain text logins or poorly authenticated logins.  The port being open is documented in the "Installing and Migrating ..." manual for LMS 4.2 where it says that this TCP port 514 is used for Remote Copy Protocol in the direction from the server to device.  The well-known port associated with a service is usually on the target host, not on the host that initiates the connection, so this is a little confusing.  I see that there is no rsh service in /etc/inetd.conf, but there is an rsh service in /etc/xinetd.conf.  This LMS is not configured to use RCP for anything, as far as I can tell.
    Can I close TCP port 514 on this server without disasterous results, and how do I do that?
    Or, how do I satisfy the security team that having this port open is not a security concern?
    Thanks for any help.
    Dave

    I have a love/hate relationship with security audits like that. Happy to know the profile of a server but then hating to have to justify everything their "report" "concludes" (95% of which is usually just dressed up too output from Nessus or whatever).
    Problem is with appliance servers running a packaged application like LMS, mucking with the OS settings (rc files etc.) can break things in unexpected ways. I'm more in favor of putting it on a segmented network and applying access-control lists or firewall rules inbound vs. trying to take apart the system and put it back together using only the parts you think are necessary (a bit of hyperbole there but it's to make a point).
    Call it defense in depth and declare victory and then move on with using the tool to actually manage the network instead of defending its configuration to the Stasi.

  • How do you and how often do you do maintanace?

    I'm poor at doing maintenance. I'd like to get into a maintenance routine and I'm looking to hear what you all do to maintain your iMac, how often you do it and any software you use to help you.
    Cheers,
    sws

    I run +Repair Disk Permissions+ on the Disk Utility +First Aid+ tab immediately before running Software Update to install any software update.
    Additionally, if the update is a system update (such as for 10.5.7), I restart from another startup disk, such as an external drive or the Mac OS X installation disc, run Disk Utility, and this time use +Repair Disk+. I have a small external drive with a minimal Leopard installation (along with TechTool Pro and some other utilities) that I use for this purpose. Then I restart normally and let Software Update install the system update.
    That is basically all the maintenance I do as a routine. I let Mac OS X take care of other "maintenance" and don't worry about it.

Maybe you are looking for

  • NETWORK PRINTER INVENTORY IN SYSTEM CENTRE CONFIGURATION MANAGER (SCCM 2012).

    SCCM HW inventory agent runs as the ‘SYSTEM’ and cannot see the end-users network drives and printers. The following two step process will help circumvent the above stated limitation. 1) CREATE HKEY_LOCAL_MACHINE\SOFTWARE\SCCMINVENTORY\NETWORKPRINTER

  • IMac 27" extended desktop problems

    Hi! I own a 2011 iMac 27" and I am having issues using a Samsung SyncMaster T240M display as extended desktop. It works fine when I am just using the computer for a while, but if the displays go to sleep mode, when I return to the computer the iMac d

  • [E71-1] Nokia messaging not sync even after firmwa...

    Hi all, For the past 3 months, my Nokia messaging is not SYNC automatically again from my Nokia E71-1. Yesterday I tried to firmware upgrade my E71-1 (to latest firmware ver 410.21.010); and install Nokia Messaging from OVI store. And then after 1st

  • How do I start up JDK after installing it?

    Hello, I "successfully installed" JDK 6 uppgrade 3. But I cannot run the program. It�s not listed in "Start/All Programs" list in Windows. I have tried clicking on what I believe is exe files. How do I start JDK? Thanks in advance.

  • GTS as only Screening Tool

    Hi, I have a list of customers & Vendors. These customers & vendors are created in someother system which is not connected to GTS system. 1. Can i use GTS system as screening tool for these list of customers & vendors with out creating Master data in