Application Development 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: 

Last time program run manually

Former Member
0 Kudos

Hi

I want to see when was a program last run.

it was run manually..I have seen all threads, but cud'nt find answer.

Regards

Manu

8 REPLIES 8

Former Member
0 Kudos

Hi,

You can try with STAD transaction.

Regards,

Suresh.

Former Member
0 Kudos

Hi,

Check the Program : RSSTAT20 ( This program gives program run last date ,time)

Regards,

Omkaram.

0 Kudos

thanks for d reply

but as i told u i have seen all the threads related to this

... this program is not there in ECC6

but i hope this is for transaction stat

which is not solving the purpose as well

Former Member
0 Kudos

Use tcode STAT . Enter the program name , user * , define your date period to find out.

0 Kudos

this is not working

0 Kudos

look in the table FRUN

u can also use the following code

there is a useful SAP Enhansement S38MREP1 wit Exit exit_saplsabe_010(Transaction CMOD).

You can place coding to protocol program start here.

Your coding will be called at each program start.

Example:

INCLUDE ZXREPU01

TABLES: zslog.

CHECK progname(1) = 'Z' OR progname(1) = 'Y'.

SELECT SINGLE * FROM zslog WHERE progname = progname.

IF sy-subrc = 0.

ADD 1 TO zslog-calls.

zslog-last_date = sy-datlo.

UPDATE zslog.

ELSE.

CLEAR zswnlog.

zslog-mandt = sy-mandt.

zslog-progname = progname.

zslog-calls = 1.

zsnlog-last_date = sy-datlo.

INSERT zslog.

ENDIF.

COMMIT WORK.

for specific z programs

you could add the Application Log functionality to your program. Transaction SLG1. There are some standard functions to call the log functionality.

Former Member
0 Kudos

Hi Manu,

Please check the table TADIR AND TRDIR. Which gives you all the information of the report .like when the report is last executed ..

Regards,

Tarak.

0 Kudos

thanks for d reply

but as i told u i have seen all the threads related to this

these tables have n such information