Displaying Objects in ABAP Objects 

The Debugger displays the attributes of classes, instances, and interfaces in a similar way to structured fields.

Procedure

To display an object in ABAP Objects:

  1. Choose Fields. This opens the default display mode.
  2. In the ABAP program code display, double-click the name of an object reference variable to place it in the field display. The Field contents field contains the object ID (class name and identification number).
  3. Double-click the object ID. The Debugger opens the objects display mode.
  4. You can also open the object display by choosing Goto ® Object. However, in this case, you must specify the object ID explicitly.

  5. Adjust the display to your requirements by setting the Class attributes and instance attributes options and selecting a visibility section (public, protected, or private).
  6. Choose Filter to filter the attributes for the display. The object attributes are listed with their names, technical properties (data type and length), and their content. The display also contains the interfaces. Expand the interface to display its attributes.

 

Example

If an attribute is a reference to another object, you can display the referenced object by double-clicking the field contents of the object in the display.

If you enter the name of a class in the Object (ID) field, the system displays the static attributes of the class, regardless of whether it has been instantiated.

 

Other Functions

Navigation

If you double-click the name of an attribute, the system opens the single field display. See also Displaying Attributes.

If you double-click the name of an interface, the system displays only the attributes that belong to that interface.

References

If you position the cursor on a field in the field display that contains an object reference, you can find all variables or attributes (both local and global) that point to the object by choosing Goto ® System ® Find references. The same applies to data references.

 

Displaying Events

The event display provides an overview of all of the events belonging to an object and the handlers that are registered for them.

 

To open the event display, choose Events. The system lists all of the events belonging to the object specified under Object (ID). The display lists the object IDs of all handler objects registered for the event and the handler methods that will be called when the event is triggered.

Example

Use the Object pushbutton to return to the object display.

If you enter a class in the Object (ID) field and then choose Events, the system displays the handler methods and objects for all static events of the class. The class does not have to have been instantiated.