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

Copy a program Query to a Z Program

Former Member
0 Likes
1,226

Hello SCN,

¿Someone knows please what is the best secure way to copy a programa query to my z report?

From a Query I have the name of the program, now I want this program be copied into my zprogram in order to reuse the query.

Thanks so much.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,004

It sounds like what you are describing is the include statement.  Does that not work for you?  If not, then what do you need it to do in a different way?

Neal

4 REPLIES 4
Read only

Former Member
0 Likes
1,005

It sounds like what you are describing is the include statement.  Does that not work for you?  If not, then what do you need it to do in a different way?

Neal

Read only

0 Likes
1,004

Hi,

I mean this.

The image attached is a program generated from a Query.

¿How Can I copy the all code to my program? I can do it just copying by pieces, but which are the best way ?

Read only

0 Likes
1,004

Hi  Enrique,

Query is have standart includes. If you copy just your program and screens like this then you cand do want to change. But maybe write new z report This way better.

Read only

0 Likes
1,004

The program name that you see in your picture "AQA0Z... is the name of the ABAP program created by query.  Put that name in se38 and use the copy program button.

Neal