05-19-2004 3:24 PM
I have been asked if it is possible to determine when an ABAP program or SAP transaction was last run. Does anyone know if this information is held on the system and if so where?
05-19-2004 9:17 PM
Kevin;
That data is stored in a statistics file. To get to it, try using function module SAPWL_STATREC_READ_FILE. Before calling the function, you will need to get the path of the statistics file, and to do that try this:
CALL 'C_SAPGPARAM' ID 'NAME' FIELD 'stat/file'
ID 'VALUE' FIELD WS_PATH.
You will need to use WS_PATH on the STATISTIC_FILE exporting parameter on the call to SAPWL_STATREC_READ_FILE. You should get the data back in the V2 records (releases over 4.0) and in V1 (releases < 4.0).
05-20-2004 8:35 AM
03-01-2006 11:05 PM
I was wondering which function I should use
I am trying to use SAPWL_STATREC_READ_FILE on UNIX and it fails in the same time
I am running the same code on windows and it receives the information.
Can you help me figure out why do I get exception WRONG_PARAMETER_COMBINATION?
While it seems that my information is acceptable on windows
I am using 47 App servers
This code used to work against 46c
10x
Assaf
06-07-2004 6:08 PM
06-14-2004 2:49 PM
The only issue with STAT is that this file is overwritten from time to time depending on the transaction volume your system has.
09-08-2004 5:23 AM
How can we configure our system, so that the file can be overwritten after desired period of time.
03-02-2006 3:14 AM
If your TRACE is switched on (ST05) you will be able to list out the transactions and programs that gets executed.
03-02-2006 4:16 AM