Show TOC Start of Content Area

Procedure documentationFind and Replace (Front-End Editor)  Locate the document in its SAP Library structure

Use

You use this procedure in the Front-End Editor to quickly find and replace every occurrence of a single word or a string in the source code.

Procedure

Finding Text

...

       1.      From the context menu in the ABAP Editor, choose Find/Replace.

       2.      In the Find field, enter the text that you want to search for.

       3.      Select any other options you need:

                            a.      You can search for whole words only.

                            b.      You can make your search case-sensitive.

                            c.      You can set the direction of the search to Up or Down.

       4.      Choose Find Next or Find All.

If the string exists in the text, the system positions the cursor on it.

Note

If your program is in display mode you can use only the Find function. You have to be in edit mode to use the Replace function.

Replacing Text

...

       1.      From the context menu in the ABAP Editor, choose Find/Replace.

       2.      Enter the string for which you want to search, the replacement string and set the relevant options. 

       3.      Choose Replace all, or Find next followed by Replace.
If the search string exists in the source code, it is replaced by the replacement string. If you choose Replace all, all instances of the search string are replaced in a single step.

       4.      If you want to delete all occurrences of a string, leave the Replace field blank and choose Replace All.

Note

If you want to start a global search that extends beyond the current source code, choose Find/Replace from the Edit menu. For more information, see Find and Replace (Back-End Editor).

End of Content Area