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 get the Query name in the user exit.

Former Member
0 Kudos

Hi all,

we have a function exit: EXIT_RSAQEXCE_001 and we want to know which query call this exit.

So is there a system variant contains query name?

Thanks,

-James

3 REPLIES 3

amit_khare
Active Contributor
0 Kudos

You can do a where used on the functino module EXIT_RSAQEXCE_001 in SE37.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

PROGRAM is a parameter of the function module EXIT_RSAQEXCE_001.

Structure

The PROGRAM parameter contains the name of the query report which called the function module. From this name, you can determine which query has been processed, since the structure of the name is always as follows:

Aqmmb...bq...q

cc

= client or ZZ in the global area

b…b

= user group name

q…q

= query name

0 Kudos

Using the function module RSAQ_DECODE_REPORT_NAME, you can derive the name of the query belonging to a report from the report name