Question: I want to search all programs - within a package - that use the statement:

modify itab\_xyz from wa\_itab\_xyz

> 
> Preferably, the string should be searched with wild cards like itab\*
> for a range of itab\_(values) like itab\_abc, itab\_def, itab\_ghi
> etc..
> 
> 
> 

How do i do this in SAP ABAP?

Below is a screenshot of all programs within a package one can search from.

[![enter image description here](https://i.stack.imgur.com/btvGh.jpg)](https://i.stack.imgur.com/btvGh.jpg)

Answer: 
One possibility would be to use program RS\_ABAP\_SOURCE\_SCAN.
You can restrict the selection by package and you can also enter a specific string to search for in the code.
I use the transaction code\_scanner (program is afx\_code\_scanner).

The biggest problem with this program and the RS\_ABAP\_SOURCE\_SCAN provided above is that they won’t find everything. IMO the most important missing component to them is implicit enhancements. They can be very impactful to system functions, and if you are searching for an error message or hard coded value skipping them could mean not finding something critical.

At the time I looked (about 7 years ago), I was unable to find a delivered tool that would actually scan all the code in the system. I ended up enhancing the code\_scanner to look for enhancements, WDA components, BSP code, and forms code.

I don’t know if the open source component above includes those. At first glance it doesn’t seem to, but I don’t have time to really dig into it.