2016 Nov 24 11:10 AM
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.
2016 Nov 24 1: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.
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.
2016 Nov 24 1: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.
2016 Nov 29 5:39 AM
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)...
2016 Nov 25 9:08 AM
Or perform some search on Solman & Scope and Effort Analyzer, look for UPL data transfer - Usage and Procedure Logging: Technical prerequisite
Regards,
Raymond
2016 Nov 28 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. 🙂
2016 Nov 29 10:56 AM
Another tool to find unused code is the coverage analyzer, TA SCOV.
2016 Nov 29 11:13 PM
Coverage Analyzer. I'm guessing it needs to be turned on in advance too?
2016 Nov 30 10:08 AM
Sure, it's not for free (regarding resources) ...
It's a general tool, but 'twas invented for Unicode migration.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |