Searching in Eclipse

Objectives

After completing this lesson, you will be able to:

  • Search for objects in ADT and navigate using the Where-used feature

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.

To Search and Open Objects

Steps

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

  2. Enter the search string and/or filter criteria.

  3. Choose OK.

To Find Open Item in Project Explorer

Steps

  1. Right-click in Editor.

  2. Choose Show InABAP Repository Tree.

The Where-used Feature

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

  • Development objects that are displayed on the main level of the Project Explorer view such as 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 such as 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.

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, and 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