Picture this. In about 30,000 programs in system, checking on wherever word ‘Kennedy’ is hardcoded and if so, it had to be replaced with ‘Johnson’. It was done for 5 programs and nobody remembers them.
To scan string (even regular expression), program RPR_ABAP_SOURCE_SCAN is a standard executable report that comes to aid. Some major features –
- Lot of search options are available. Restriction on package name being one of such options
- Regular expressions can be used for search
- Search on includes is possible
- +/- ‘n’ lines can be displayed for every successful search
- Comments can be ignored
Another similar program is RS_ABAP_SOURCE_SCAN. While screens are different, they achieve the same up to a great extent.