2007 May 21 10:37 AM
Hello ,
How to search a term in the source code. I have selection screen , on which a program name will be given and term to search. How can I proceed to know whether this term is available in the source code of the program
Thanks and regards,
Satya
Hello ,
How to search a term in the source code. I have selection screen , on which a program name will be given and term to search. How can I proceed to know whether this term is available in the source code of the program
Thanks and regards,
Satya
2007 May 21 10:39 AM
Hi
You can use the command
SCAN ABAP-SOURCE < Program name> tokens into itab
statements into itab1..
or use the fun module
RPR_ABAP_SOURCE_SCAN
Reward points if useful
Regards
Anji
Message was edited by:
Anji Reddy Vangala
2007 May 21 10:42 AM
2007 Jun 14 5:13 PM
Hi Peter,
I'm new to code inspector.
According to the documentation I can create a variant and in the 'Search Functs.' ---> 'Search ABAP Statement Patterns' I specified FOR ALL ENTRIES
When I execute the code inspector for an ABAP that contains the text FOR ALL ENTRIES it does NOT return any information.
How is this suppossed to work?
Thanks.
Soyab
2007 May 21 10:43 AM
use the following syntax
SCAN ABAP-SOURCE int_abap_source
TOKENS INTO l_tokens
STATEMENTS INTO l_statements
STRUCTURES INTO l_structures
KEYWORDS FROM l_keywords
OVERFLOW INTO l_overflow.
2007 May 21 10:43 AM
Hi naga,
1. one option is to retrive the source code of the requried program,
into internal table using the syntax READ REPORT (just see f1 help on it)
READ REPORT prog INTO itab [MAXIMUM WIDTH INTO wid].
2. Then we can loop / search the internal table for the required term.
regards,
amit m.