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

Regarding SCAN ABAP SOURCE PROGRAM

Former Member
0 Likes
39,378

Hi Friends,

I am using SCAN ABAP PROGRAM in my code .

SCAN ABAP-SOURCE source_sub

TOKENS INTO i_tokens_sub

STATEMENTS INTO i_statements_sub

KEYWORDS FROM i_keywords_sub

LEVELS INTO i_levels_sub

WITH ANALYSIS.

after this statement execution , i_token getting filled up with token used in source code source_sub

but if i have to catch specific keywords is there a way that i can append those keywords to i_keywords_sub structure and then scan so that a line where that particular keyword used can be captured .

i am not knowing how to do that .Can i get some help on this.

Thanks&Regards

Poornima

1 ACCEPTED SOLUTION
Read only

ThomasZloch
Active Contributor
0 Likes
15,785

Fill table i_keywords_sub with the relevant ABAP key words, that should do it already. I did not find a description of the structure for i_keywords_sub in ABAP help, so maybe table of string will work.

Thomas

2 REPLIES 2
Read only

Former Member
0 Likes
15,785

Hi,

You can try using the SAP standard program RS_ABAP_SOURCE_SCAN and give key word for searching in the ABAP source.

Thanks,

Sriram Ponna.

Read only

ThomasZloch
Active Contributor
0 Likes
15,786

Fill table i_keywords_sub with the relevant ABAP key words, that should do it already. I did not find a description of the structure for i_keywords_sub in ABAP help, so maybe table of string will work.

Thomas