Fields Display
You use the Fields display to display and change the contents of program fields. Use the display to work with up to eight fields at a time.
The Fields display is the default display mode in the Classic Debugger.
● You use it to display the following data objects:
○ Single field
○ Structured fields
○ Strings
○ Internal tables
○ Objects
The contents of more complex data objects, such as references or tables, are not displayed directly in the Fields display mode. Instead, you have to double-click the field name to start the respective detail display.
...
● You can display the contents of a field in the following ways:
○ Enter the name of the field in Field Names column and choose Enter.
○ Double-click the field in the program source code.
● The value of the field is, by default, formatted for its data type. You can change the formatting, by performing the following:
○
To display the field contents in hexadecimal format,
choose
.
○
To display the field content in its original output
format, choose
.

You cannot change the value of a field if it is displayed in hexadecimal format.
● You can display fields only in a block of four.
○
To display the next or the previous field, choose
with the quick info text Next line or choose
with the quick info text Prev. line.
○
To display the first four or the last four fields,
choose
with the quick info text Previous page or choose
with the quick info text Next page.
● You can display the contents of any system fields. The most important system fields SY-SUBRC, SY-TABIX, SY-DBCNT, and SY-DYNNR are always displayed at the bottom of the Fields display.
●
You can clear the Fields
display, by choosing
with the quick info text Del. field names.
The system removes all the fields.
● You can display the contents of fields from external programs by entering the program name in parentheses before the field name in the field display. For example, (SAPmsclm)Action.
● You can make offset and length entries for character-type fields. For example, in Field names column, enter sy-datum+4(2). The current month of the system date is displayed in the Field contents column.
● You can display a single line from an internal table by entering the line number in rectangular parentheses after the name of the internal table. If the integer exceeds the number of table lines, the table is flagged as unknown.
● You can display the content of a referenced data object if you enter an arrow and asterisk after the name of the reference. For example, if you enter ref->*the content of the field that is referenced by data reference ref is displayed.
● If you double-click the Field contents column of a data or object reference, the system displays the attributes and field contents of the referenced data object. The attributes and values of the current instance of all referenced classes and interfaces are output under object references. For example, if you enter 7<cl>, the system displays all the values of the seventh instance of class cl.
● You can display the headers of strings, internal tables, data and object references, by entering an asterisk at the beginning of the field name. For example, enter *itab in Field name column and the system displays the header of the internal table itab. The field contents is zero if the table does not have a header.
● You can display references to strings, internal tables, data and object references in hexadecimal format, by entering an ampersand before the name. For example, enter &str and the reference to string str is displayed.
You can change the values of fields at runtime to see how the change would affect the program flow.
● You can change the values of the following data objects of your program.
○ Single fields
○ Structured fields
○ Strings
○ Fields of internal tables
○ Fields of classes and interfaces
If you enter a value with an incompatible type, the system displays an error message.
●
The Debugger accepts the values exactly as you
entered them. After you changed the value of the field, choose
. The Debugger writes the new value to the program
field and the system records the change in the system log.
...

To change the content of structures or internal tables, first you have to double-click the field name to display the details. You then have to double-click the individual field to open the display mode and see the field contents.