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 time program run manually

Former Member
0 Likes
1,271

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
Read only

Former Member
0 Likes
1,011

Hi,

You can try with STAD transaction.

Regards,

Suresh.

Read only

Former Member
0 Likes
1,011

Hi,

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

Regards,

Omkaram.

Read only

0 Likes
1,011

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

Read only

Former Member
0 Likes
1,011

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

Read only

0 Likes
1,011

this is not working

Read only

0 Likes
1,011

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.

Read only

Former Member
0 Likes
1,011

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.

Read only

0 Likes
1,011

thanks for d reply

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

these tables have n such information