‎2007 May 24 6:15 AM
hi all,
i need to do the following checks in any report program
1. how to check a parameter starting with p_ or not ?
2. how to check a data variable starting with v_ or not ?
3. how to giv identification to the user if he had used any comments in reports.
i. e how to check a special character ' * ' in our program.
4. how to check special symbols like empty space, ' : ' , ' ' ' ' , ' " " ' , ' . '
is there any keyword r standard program r function module r transaction to do all tasks.
thanks n regards,
suresh babu aluri.
‎2007 May 24 6:34 AM
Hi Suresh,
U may use the following statement.
SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2
...STATEMENTS INTO itab3.
The above statement has few more additions also which u can check from the F1 help.
Regards,
Pradeep Chintala.
‎2007 May 24 6:16 AM
rpr_abap_source_scan
This will help you scan through all the programs in ur R/3, for example if you want to search parameter whether it starts with p_ or not, then you can feed 'parameter: ' in the 'Find string' of the selection screen of the standard program rpr_abap_source_scan.
award points if found helpful
‎2007 May 24 6:25 AM
Hi Suresh
Use the Report: <b>RPR_ABAP_SOURCE_SCAN</b>
Which will Scan a set of reports for a particular string.
In serach criteria of this report u have Find String option.
There bu giving your required strings you can achieve your requirements.
Regards,
Sreeram
‎2007 May 24 6:34 AM
Hi Suresh,
U may use the following statement.
SCAN ABAP-SOURCE itab1 ...TOKENS INTO itab2
...STATEMENTS INTO itab3.
The above statement has few more additions also which u can check from the F1 help.
Regards,
Pradeep Chintala.
‎2007 May 30 6:39 AM