Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Last run date and user of a program or function module

Former Member
0 Likes
5,568

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.

1 ACCEPTED SOLUTION
Read only

Sandra_Rossi
Active Contributor
2,878

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.

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.

7 REPLIES 7
Read only

Sandra_Rossi
Active Contributor
2,879

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.

Read only

2,878

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

Read only

RaymondGiuseppi
Active Contributor
2,878

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

Regards,
Raymond

Read only

Jelena_Perfiljeva
Active Contributor
2,878

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

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
0 Likes
2,878

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

Read only

0 Likes
2,878

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

Read only

0 Likes
2,878

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

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