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

report to scan a program

Former Member
0 Likes
494

Hello ABAPers,

i want to develop a program which will take the Program name as input and output will be list of all variables which are used in the program. i want to use this list for some other purpose. The output list should contain all variables and internal tables and class definitions etc.

can any one give some idea.

Thanks a lot in advance..

Rgds,

Mohan

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
453

Take a look at RPR_ABAP_SOURCE_SCAN & use a similar logic.

~Suresh

Read only

former_member187255
Active Contributor
0 Likes
453

Mohan,

You can go thru this program for reference ... <b>RPR_ABAP_SOURCE_SCAN</b>

Rgds.

Read only

0 Likes
453

i know this program will scan the report and give the list of lines where we use a particular string. but i want list of variables only. how to find a variable which is used in a program

Rgds,

Mohan