Sometimes you need to search one string of code in one abap program or in a few programs.
There is a standard program to do this. RPR_ABAP_SOURCE_SCAN is the solution.
Go to SE38 and execute RPR_ABAP_SOURCE_SCAN.
Fill program name with “Z*” to find code in all Z programs.
Insert the search string and execute.
This will give you all the occurences of the given string in all Z programs.