This website is not affiliated with, sponsored by, or approved by SAP AG.

ABAP last run

Development (ABAP Development WorkBench, ABAP/4 programming)

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

ABAP last run

Postby Guest » Mon Oct 21, 2002 5:03 am


Does anyone know if it is possible to find the last run date of a program.
There is a table called FRUN but in our system it is empty. Is there any other way?

Thanks in advance.


Postby Dopey » Mon Oct 21, 2002 5:09 am

Hi-Ho G,

Unfortunately the chaps at our workplace encountered the same problem as you. They could not find a SAP solution to this so they created a table called ZHITS. This was then updated everytime the reports were run by including the table update code in the standard company header for our reports.

You may want to implement somthing similar and I am sorry that I cannot Provide a more immediate solution.


Posts: 68
Joined: Mon Oct 21, 2002 3:11 am
Location: Earth

Postby wdub » Mon Oct 21, 2002 5:40 am

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.
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.
CLEAR zswnlog.
zslog-mandt = sy-mandt.
zslog-progname = progname.
zslog-calls = 1.
zsnlog-last_date = sy-datlo.
INSERT zslog.

Postby kmoore007 » Mon Oct 21, 2002 7:56 am

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.
Posts: 14
Joined: Mon Oct 21, 2002 7:32 am
Location: Hickory

Return to ABAP

Who is online

Users browsing this forum: No registered users and 4 guests

This website is not affiliated with, sponsored by, or approved by SAP AG.