Skip to Content
avatar image
Former Member

Last run date and user of a program or function module

Hi all,

I have a question about last running date of a ABAP program or a function module. I searched it on forums but i have not find absolutely answer. My aim is that identify unused programs and function modules and delete them. Therefore, I want to prepare a report that show the last running date of a program. Not last changing date, I need last running date. Can anybody help me about this issue?

Thanks in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Nov 24, 2016 at 01:14 PM

    In all ABAP systems, you have the workload statistics (STAT, ST03), you'll get all occurrences of programs and the time at which they have run (not the last time, but simply sort by descending order). The stat file is very big, so the admins archive it periodically. If you need to get old statistics, you'll have to ask the admins to restore the files. Search SCN for the "API" to read the stats.

    Unfortunately, you can't get a result at procedure level, and so there won't be any information for function modules (only for their function groups), except those started in RFC.

    In Solution Manager, you have the technology Usage & Procedure Logging, which logs at procedure level. Search SCN and SAP Library for more information.

    Add comment
    10|10000 characters needed characters exceeded

    • Just one addition, one does not actually need SolMan to activate UPL. The UPL control (and simple display of data) can be accessed via TA CCAPPS. One would, however, need custom logic to extract and accumulate this data (to use it effectively)...

  • Nov 25, 2016 at 09:08 AM

    Or perform some search on Solman & Scope and Effort Analyzer, look for UPL data transfer - Usage and Procedure Logging: Technical prerequisite


    Add comment
    10|10000 characters needed characters exceeded

  • Nov 28, 2016 at 11:23 PM

    There was a TechEd Vegas session that covered this subject: TEC305 “Custom Code Management at BASF on the Road to SAP S/4HANA”. It mentioned Custom Code Lifecycle Management (CCLM) , which is also part of SolMan.

    As Sandra noted, statistics need to be gathered to get this kind of information and the old stats might be difficult to find after the fact. I doubt there is any solution that can give you last run date for something that has not been run for years and has no stats available.

    Be careful though - once we accidentally deleted a program that was needed only for end of year process and hence was run once a year. :)

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 29, 2016 at 10:56 AM

    Another tool to find unused code is the coverage analyzer, TA SCOV.

    Add comment
    10|10000 characters needed characters exceeded