2007 Jul 06 4:02 PM
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.
2007 Jul 06 4:11 PM
Check with Program : RSSTAT20 ( This program gives program run last date ,time)
follow same logic.
Thanks
Seshu
2007 Jul 06 4:11 PM
Check with Program : RSSTAT20 ( This program gives program run last date ,time)
follow same logic.
Thanks
Seshu
2007 Jul 06 4:12 PM
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
2007 Jul 06 5:30 PM
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.
2007 Jul 23 5:48 AM
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