Searching in Eclipse

Objective

After completing this lesson, you will be able to Search and Navigate Objects in ABAP Development Tools.

To Search for Objects

Steps

  1. Choose SearchSearch...

    Alternatively, you can choose Ctrl + H.

  2. In the Object Name field of the ABAP Object Search tab, enter the name of the object for which you want to search.

  3. You can limit the search scope by choosing either the Workspace or ABAP Project radio button.

  4. You can further limit the search by selecting the Restrict Search to Favorite Packages checkbox.

  5. Choose Search.

    The repository objects that match the search scope are displayed in the Search view. The result is grouped by ABAP packages.

    Screenshot of the ABAP Search window and the Search view

To Search and Open Objects

Steps

  1. Choose Open ABAP Development Object (alternatively, press Ctrl + Shift + A on your keyboard).

    Open ABAP Development Object Icon
  2. Enter the search string and/or filter criteria.

  3. Choose OK.

    Screenshot of the Open ABAP Development Object window

To Find Open Item in Project Explorer

Steps

  1. Right-click in Editor.

  2. Choose Show InABAP Repository Tree.

    Screenshot of the context menu with the Favorite Packages button after selecting Show In ABAP Repository Tree

The Where-used Feature

The Where-Used function reports on where specific development objects are used, thus clarifying the dependencies between them. You can use the Where-used function with the following entities:

  • Development objects displayed on the Project Explorer view's main level include classes, interfaces, database tables, message classes, and so on.
  • Subobjects such as components of a class, fields of a table, specific messages, and so on.
  • Other identifiers include local variables, parameters, macros, and so on.

You can launch the Where-used function from the Project Explorer view, the Outline view, or the source code editor by choosing Get Where-used List from the context menu. You can also choose the ABAP Where-used List icon in the toolbar or choose the keyboard shortcut Ctrl + Shift + G.

Screenshot of the context menu with the Get Where-used List button

Navigate Using the Where-used Feature

You can start the Where-used function from the Project Explorer view, the Outline view, or the source code editor. The function can be triggered on main objects such as ABAP classes, ABAP interfaces, database tables, and on subobjects such as methods, attributes and messages.

To do this, perform the following action:

  1. Choose the Get Where-used List button in the toolbar.
  2. Alternatively, you can choose the context menu of the object that you are interested in and choose Get Where-used List. You can also choose Ctrl + Shift + G.

The Search view appears and displays the locations where the object or subobject is used.

Log in to track your progress & complete quizzes