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 find SAPQuery from the program name?

Former Member
0 Likes
1,570

Hi,

I need to find out what is the SAP query related to the ABAP program. I know the program name and the corresponding transaction also. I need to know the SAP query to make some changes.

Thanks in advance.

- Kishore

Hi,

I need to find out what is the SAP query related to the ABAP program. I know the program name and the corresponding transaction also. I need to know the SAP query to make some changes.

Thanks in advance.

- Kishore

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,024

Look at the program name, it should look something like this. Here USER_LOGIN is the name of the query.

AQFKBASIS=======<b>USER_LOGIN</b>====

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,024

Hi,

Please try FM <b>RSAQ_DECODE_REPORT_NAME</b>.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
1,024

Hi Kishore,

SAP Query and ABAP program are related to each other with some convention:

ABAP PRogram name for the SAP Query will be something like AQmmbbbbbbbbbbbbqqqqqqqqqqqqqq.

Here:

mm - encoded client (standard area) or ZZ (global area)

bbbbbbbbbbbb - Name of user group (12 places)

qqqqqqqqqqqqqq - Name of query (14 places)

Spaces in query program names are replaced with '='.

You need to find out the respective User Group (T-Code: SQ03), Infoset (SQ02) and then you will get the SAP query you are looking it. Hope this will help you.