2015 Apr 08 11:27 AM
Hi everyone,
I want to start the execution of some code just when any ABAP REPORT is executed. I want also know its name.
Can anyone tell me how can I fix that?
Thanks alot ,
Ghassen
2015 Apr 08 12:53 PM
Better create a report wrapping the FM SAPWL_STATREC_DIRECT_READ which will store the required data in a customer table for latter usage. schedule a periodic execution of this report (shorter period than cleaning of statistics files)
Also look at customer-exit associated to SMOD Enhancement S38MREP1 (But don't make any error during development once project is activated, else call Houston Walldorf as you have a problem if now unable to call any report...) so TRY/CATCH/ENDTRY mandatory and no Non-Catchable Exceptions!
Regards,
Raymond
Better create a report wrapping the FM SAPWL_STATREC_DIRECT_READ which will store the required data in a customer table for latter usage. schedule a periodic execution of this report (shorter period than cleaning of statistics files)
Also look at customer-exit associated to SMOD Enhancement S38MREP1 (But don't make any error during development once project is activated, else call Houston Walldorf as you have a problem if now unable to call any report...) so TRY/CATCH/ENDTRY mandatory and no Non-Catchable Exceptions!
Regards,
Raymond
2015 Apr 08 12:05 PM
Hi Ghassen,
What`s the purpose of that 'some code'?
You should know a abap report could execute from SE38, from a TCODE, from other reports, from bg job..... I do not think you can achieve this.
regards,
Archer
2015 Apr 08 12:19 PM
Hi Archer,
I want to save the last execution date of all ABAP reports. That information exists only in statistic files and it's limited. That's why I have to develop it from scratch.
Well, I know all that ways for executing a program but I think that there could be a common path where we can trigger the report name.
Regards,
Ghassen
2015 Apr 08 12:45 PM
Maybe tcode STAD could give you some ideas. You see, in this execution log(this log will save 10-15 days`s data), there are execute time and program name. Then you create a zreport to extract those time, and only update the latest entry to a ztable.
Due to those logs maybe automatically deleted by setting of basis team, so you`d better create a bgJob to run this zreport every 10 days in night.
Hope can help you.
regards,
Archer
2015 Apr 08 1:10 PM
I thought about that solution but it will not be optimal since it takes to much time before giving the result.
Anyway 15 days isn't enough in my case, I can't loose any detail.
Regards,
Ghassen
2015 Apr 08 12:12 PM
Hi,
as far as i know there is a user exit, which get called before the report is executed.
Maybe have a look at exit
EXIT_SAPLSABE_010
regards
Alex
2015 Apr 08 12:53 PM
Better create a report wrapping the FM SAPWL_STATREC_DIRECT_READ which will store the required data in a customer table for latter usage. schedule a periodic execution of this report (shorter period than cleaning of statistics files)
Also look at customer-exit associated to SMOD Enhancement S38MREP1 (But don't make any error during development once project is activated, else call Houston Walldorf as you have a problem if now unable to call any report...) so TRY/CATCH/ENDTRY mandatory and no Non-Catchable Exceptions!
Regards,
Raymond
2015 Apr 08 1:28 PM
Thank you all,
I will choose Raymond's solution.
Regards,
Ghassen
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |