‎2009 Feb 10 10:46 AM
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
‎2009 Feb 10 11:43 AM
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
‎2009 Feb 10 11:27 AM
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.
‎2009 Feb 10 11:43 AM
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