Tuesday, 7 January 2014

Table Mode in ABAP debugger

Table Mode in ABAP debugger

The second mode along from the Fields button on the left of the screen is Table mode. Click this button and the code remains, but the bottom section changes to include an ‘In-ternal table’ entry, and a single row
    
Table Mode in ABAP debugger

Internal tables have not yet been covered in depth, but, put simply; an internal table is a table of records which is stored in memory while the program is running. Table mode al-lows one to interrogate the records and fields of each record in an internal table.
 As with  Fields mode, the internal table can either be double-clicked in the code, or manually en-tered into the ‘Internal table’ box. If one does this for “zemployees”, then, a new window appears, displaying the table name, its individual fields and their contents

    

Table Mode in ABAP debugger

Things do look slightly different to normal here, as a table structure is being shown, rather than an actual internal table. This results in the debugger showing the table structure as above, listing the individual fields numbered 1 – 6 and their contents. When viewing an internal table in this mode, one will see a number of records for each internal table with their contents. These records can then be double-clicked to move to the above layout, showing the individual fields for each record. This will be returned to later.


In this screen, the code remains, but the area in which it is displayed is very small. One can continue to interrogate the code line-by-line as before still, but this may prove difficult. It is usually simpler to check Table mode for the information required, and then click back to Fields mode to continue the debug session

No comments:

Post a Comment