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

Hi

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.

G.
Guest
 

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.

Regards,

Dopey
Dopey
 
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.
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.
wdub
 

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.
kmoore007
 
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 6 guests





loading...


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