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

How to call SAP Query program from another ABAP program with selection parameter?

MoinMugal
Explorer
0 Likes
1,273
  • SAP Managed Tags

Hello,

I have SAP Query program that I want to call from another ABAP program with selection parameter to use SAP Query output in my ABAP prigram.

Please Help and suggest.

3 REPLIES 3
Read only

TammyPowlas
SAP Mentor
SAP Mentor
0 Likes
1,159
  • SAP Managed Tags

You can generate an ABAP program from your SAP Query (assuming you are using SQ01) and go from there to use it in your ABAP program

Read only

0 Likes
1,159
  • SAP Managed Tags

Thanks Tammy for your quick reply..

I do not get you , I have my ABAP Program (let say ZABAP) from in which I want to call Query program(ZQUERY) to use ZQUERY program output (few columns) in my current ABAP program (ZABAP).

Is there any FM or submit to achieve this ?

Quick reply will be appreciated and Thanks .

Read only

0 Likes
1,159
  • SAP Managed Tags

This is what I mean - see screen shot below from SQ01 transaction:

Generate the program

Display report name will show the ABAP program