Monday, 6 January 2014

Fields mode in ABAP debugger

Fields mode in ABAP debugger

The ‘Fields’ mode of the ABAP debugger allows the contents of fields to be checked and modified as the program is debugged. This can be accessed either by double-clicking the field name within the code itself, or entering it into the ‘Field names’ section below the code
Fields mode in ABAP debugger

Note that, since here a table is involved, in the field name section the name of the table must first be specified, followed by a -, then the name of the field. The field contents will be filled in automatically. As you step through code line-by-line in the SELECT loop, the text held in each field will change as each loop completes and moves onto the next record in the table. This section allows for 8 fields to be monitored at any time. Fields 5 - 8 can be made visible via the navigation buttons in the middle (to the right of the numbers 1 – 4).

Often when debugging a program, you may want to manually change the contents of fields. This can be achieved by replacing the text in the field contents area, then clicking the ‘Change field contents’ icon, marked with a pencil. Doing this can save a lot of time, avoiding having to exit the debugging session multiple times to enter new values into fields elsewhere
Fields mode in ABAP debugger

2 comments: