Skip to Content

Hi folks,

maybe you know that situation: You want to find/replace content within your ABAP code but you want to restrict the search operation only to a specific area of the code, e.g. a method or a local class.

The solution is quite simple because on the Find/Replace dialog there is the option to restrict the search scope on the selected lines:

 

 

 

Have Fun.

Thomas.

 

 

 

To report this post you need to login first.

4 Comments

You must be Logged on to comment or reply to a post.

  1. Jelena Perfiljeva

    Is “All” the default scope even if something is selected? That would be rather counter-intuitive IMHO…

    In SE38, I use Ctrl-F and the Replace works only for the selected area. If I want to run it for the whole thing then I just don’t select anything. I believe it’s the same way in MS Office, for example.

     

    (2) 
  2. Former Member

    I don‘t have an adt installation here at the moment to verify it, but for 99.9999999999% I am sure it‘s the same logical default setting in ADT as you say it is in se38 and ms office.

    It would have driven me insane if it would be the other way 🙂

    (0) 
  3. Former Member

    Hi Thomas,

    a bit off-topic, but still search-related 🙂
    Any idea how to find all occurrences of certain string within whole function group or module pool, i.e. in compound source code trees comprising includes? Even ADT’s improved ABAP Source Search (Ctrl-H), (where complex queries with AND/OR cannot be used in Search Filter, unfortunately) does not serve this task well.
    I still need to open the module pool or function group source code in SE80 and use binoculars icon (Ctrl-F) in the toolbar (i.e. ‘global’ find) to get the complete list – and then also the result list can be searched thru with another Ctrl-F to narrow down the lookup… So here SE80 search is still much more powerful. Any tip how to achieve the same in AiE?

     

    (1) 

Leave a Reply