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 it run

Former Member
0 Kudos

Hello All,

I need to store the last date a program run.

My last resource is creating a Z table to store the data.

I think it should be better ways to do this.

Is there any ABAP statement that works like IMPORT/EXPORT but store the data even when the program finishes so the next time it runs it could retrieve it?

Do you know about a BAPI that allow to update table CDHDR ?

Any other suggestion is welcome.

Thank you.

Monica.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

follow same logic.

Thanks

Seshu

4 REPLIES 4

Former Member
0 Kudos

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

follow same logic.

Thanks

Seshu

former_member194669
Active Contributor
0 Kudos

Hi,

For custom report you can store the last run in Z table , but what about sap standard reports

For updating CDHDR you need to create a object thru SCDO after that you can use following fm to update the same

CHANGEDOCUMENT_OPEN

CHANGEDOCUMENT_SINGLE_CASE

CHANGEDOCUMENT_CLOSE

you can check the last run using transaction code STAT or ST03.

aRs

Former Member
0 Kudos

Thank both for your kind answers.

I decided to use a set parameter. It worked nicely and just a couple lines of code.

Regards,

Monica.

0 Kudos

Hello ,

Could yu please provide me the code u used to get last time run of a rpogram/transaction as i had the same requirement to do

thanks