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: 

How to copy standard SAP report to a Z report?

Former Member
0 Kudos

Hi All,

Guys, I have a requirement to copy an standard SAP report and make some changes to it. Please let me know how to copy a standard SAP report as a Z report. Is there any simple way or will I have to open the source code and copy it into the new Z program? If that is the case, how will I copy the screens and related PBO/PAI events?

Please provide me a step-by-step solution.

Thanks & Regards,

Madhur

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello Madhur,

As Raja had said, yuo could just copy the program from SE38. But just remember a few points:

1. If the standard report is being used in some other programs, then there's no way you can make your Z-report get used in all such instances. I suspect that you may not want to do that anyways, but just in case.

2. Just also check out if the standard report you're talking about has any INCLUDE programs within it. If there are too many standard INCLUDEs in the main report, then you might have to decide whether you need to copy all of them too, or let them be as they are.

3. You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.

I have experienced some problems with respect to the second and third points in the past, so it is worth it to be a bit careful.

Regards,

Anand Mandalika.

Regards,

Anand Mandalika.

3 REPLIES 3

athavanraja
Active Contributor
0 Kudos

from SE38 enter your source program and then control+F5 (program ->copy) give it a Z name and choose the options to copy all elements.

Regards

Raja

Former Member
0 Kudos

Hello Madhur,

As Raja had said, yuo could just copy the program from SE38. But just remember a few points:

1. If the standard report is being used in some other programs, then there's no way you can make your Z-report get used in all such instances. I suspect that you may not want to do that anyways, but just in case.

2. Just also check out if the standard report you're talking about has any INCLUDE programs within it. If there are too many standard INCLUDEs in the main report, then you might have to decide whether you need to copy all of them too, or let them be as they are.

3. You are likely to have some problems with the text-elements and translation that may have been maintained for the original report.

I have experienced some problems with respect to the second and third points in the past, so it is worth it to be a bit careful.

Regards,

Anand Mandalika.

Regards,

Anand Mandalika.

0 Kudos

Hi,

Just to add one more point, Call Customer-Function (Function Exists) if any in the Program when copied will not get exceuted. Instead you need to call the FM Directly.

If you want to use it for more than once you know the trick :).

Rgds,

Manohar