Application Development and Automation 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: 
Read only

Execute something after executing any ABAP REPORT

Former Member
0 Likes
1,625

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

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,576

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

7 REPLIES 7
Read only

Former Member
0 Likes
1,576

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

Read only

0 Likes
1,576

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

Read only

0 Likes
1,576

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

Read only

0 Likes
1,576

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

Read only

Former Member
0 Likes
1,576

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

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,577

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

Read only

Former Member
0 Likes
1,576

Thank you all,

I will choose Raymond's solution.

Regards,

Ghassen