Skip to Content
0

Last run date and user of a program or function module

Nov 24, 2016 at 11:10 AM

390

avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Sandra Rossi Nov 24, 2016 at 01:14 PM
2

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.

Show 1 Share
10 |10000 characters needed characters left 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)...

1
Raymond Giuseppi
Nov 25, 2016 at 09:08 AM
1

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

Regards,
Raymond

Share
10 |10000 characters needed characters left characters exceeded
Jelena Perfiljeva
Nov 28, 2016 at 11:23 PM
1

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. :)

Share
10 |10000 characters needed characters left characters exceeded
Horst Keller
Nov 29, 2016 at 10:56 AM
0

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Coverage Analyzer. I'm guessing it needs to be turned on in advance too?

0

Sure, it's not for free (regarding resources) ...

It's a general tool, but 'twas invented for Unicode migration.

0