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: 

Sample code for Last time run a report

Former Member
0 Kudos

Dear Gurus ,

I want to make a report that generates the last time that a transaction (or program) has runned .

Does anyone has a sample code ...???

If yes please sent it ....

Thanks in advance .

3 REPLIES 3

former_member585060
Active Contributor
0 Kudos

Hi,

Create a Ztable by copying standard table FRUN.

Now insert the code at the bottom in your program to update the entries in the Ztable. So when ever you want to access the last time date and time run by a program you can get from the Ztable.

Use Modify statement to update Ztable, as it checks for Primary key entry and updates only non primary keys if entry with primary key exists, and when no entry found inserts new record.

Regards,

Bala Krishna.

0 Kudos

My problem is that i want to run all the programs that i have in my systems when they have runned in the past .

I can't find it in trdir ....

0 Kudos

hi,

you cannot get all the details of the programs that are run in past.

But you can get some details related to them using STAD transaction.