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

Using SCAN ABAP-SOURCE keyword

Former Member
0 Likes
633

Hi,

My requirement is to get a report program name from the user, drill down the report to see how many Includes and subroutines are there in the report and in which level.

I was able to drill down the report for finding the Includes with their level using this key word SCAN ABAP-SOURCE.

Can someone provide me with a code to find the number of subroutines along with the subroutine name and which level they are present.

Thanks in advance.

Harini

2 REPLIES 2
Read only

Former Member
0 Likes
446

hi try these FMs

GET_GLOBAL_SYMBOLS u2013 Returns all components of a program

GET_INCLUDETAB u2013 Lists all INCLUDEs in a program

кu03B1ятu03B9к

Read only

0 Likes
446

Hi,

I have already drilled down the report to find out thenumber of includes and their levels.

By using CALL FUNCTION 'GET_GLOBAL_SYMBOLS'

it accepts to search only for a character in the program.

I require it to search for the keyword 'PERFORM' and also find in which level it is defined.

Please let me know how to achieve this.