Skip to Content

The New ABAP Debugger, introduced with NetWeaver 2004s, came with a Table tool for displaying the contents of internal tables.

With NetWeaver 7.0 EHP2 and with Netweaver 7.30, the Table tool has been re-worked and expanded to make it easier to use and more flexible – a truly comfortable tool for examining internal tables, no matter how large or complex they might be.

In this weblog, we’ll look at the new Table tool in the New ABAP Debugger. We’ll show you the following:

  • New and comfortable ways to change the column layout of a table so that you can see the columns you want to see
  • How to include fields from nested structures and tables and attributes of referenced objects in the display of an internal table
  • How to save the layout that you have created for a table for re-use
  • How to add or delete lines from an internal table or change the values in particular fields in a table
  • How to table layouts for re-use.

Here is a short film that shows you how to use the Table Tool:

Starting the Table Tool

Start the Table tool from the New ABAP Debugger when you need to look at the contents of an internal table while you are in the debugger:

Starting the Table Tool

Arranging the Table Display and Using the Column Configurator

Most internal tables were created for reading by programs, not by people. The biggest problem in analyzing the contents of an internal table is therefore usually arranging the table display for best readability.   If you are working with a simple table, you can simply drag and drop columns to the proper positions.

If a table is wide or complex, then the Table tool offers the Column Configurator for optimizing the layout of a table. Start the Column Configurator by clicking on the Columns button.

Arranging the Table Display

In the Column Configurator, you can move columns around, delete columns that you do not need, and mark object attributes or fields in nested structures or internal tables for display in the table tool.

Using the Column Configurator

 

Displaying Object Attributes and Fields in Nested Data Objects

As the screen shot above suggests, you can add data entities from nested objects to the Table Tool display.  Before NetWeaver 7.0 EHP2, you needed to click your way into the object or nested data structure in each row of an internal table in order to see the data.

With the new Column Configurator, you can have the data pulled up into the normal table display.  Here in more detail is how to display concealed data:

  1. You start in the Table tool in the New ABAP Debugger with a table like this one, which contains references to instances of ABAP Objects classes. You want to see the customer address information that is hidden in the objects.A complex table
  2. Click on the Columns button. In the Column Configurator, the Insert Subcomponents icon marks columns that contain data objects with nested attributes or fields.  In this case the CUSTOMER (references to instances of ABAP class CUSTOMER) and DREF columns (anonymous data references) contain such objects.Clicking on Insert Subcomponents at the CUSTOMER column opens a list of the attributes of the CUSTOMER class. We select all three for inclusion in the column configuration.
  3. The Columns Configurator recognizes recursive data objects. The ACCOUNT, ADDRESS, and ID subcomponents have all been added to the column configuration.  ADDRESS itself contains further subcomponents that we want to add to the display.Displaying Subcomponents
  4. We move the ADDRESS subcomponents to the front of the layout in the Column Configurator for easier viewing.Displaying Subcomponents
  5. When we press the Apply button at the bottom of the Column Configurator, the hidden class attributes are added to the Table display for all of the rows of the table. There is no need to drill down into each separate class object to view the data.Subcomponents are displayed

Saving a Table Layout for Re-Use

So that you do not need to adjust a table’s layout each time you start the debugger, you can save a table layout.  You can also apply it automatically to other tables that have the same type definition.

Saving a layout affects only your view of a table – you do not affect other users who might need to analyze the same table.

Sharing a Table Layout

You want to share your great layout for an important table with someone else?  No problem.  Just do the following:

  1. Open the Column Configurator.
  2. Mark the columns in the Configurator that make up the layout to share (most likely, you will simply want to mark all entries).
  3. Copy the marked fields to the clipboard with Ctrl-C or the context menu.
  4. Paste the clipboard contents into a mail or .txt file for your colleague.
  5. To apply the layout, your colleague simply copies and pastes the column layout into the column configurator in their own debugger session.

Saving a table configuration

Adding or Deleting Table Rows or Changing Values

Modifying a table or the values in table fields has also been made easier. To delete rows, for example, just mark the rows to be discarded and open the context menu with a right mouse click.

Adding or deleting rows

Even More Table Services…

To see the full range of operations that you can perform on a table, just click on the Services of the Tool button at the right of the Tables workspace. Among other convenient functions for displaying the contents of internal tables, you find things like Position on Column, which moves the column that you mark to the left-most position in the display or Optimize Column Width, which performs an Excel- or OpenOffice-Calc-like adjustment of the column widths for best display.

Additional table services

To report this post you need to login first.

15 Comments

You must be Logged on to comment or reply to a post.

  1. Mohaiyuddin Soniwala
    Nice Blog..Thanks.

    In old debugger, we were able to type in column name and display that column. This functionality went missing in new debugger. I am glad similar functionality is back with this Enhancement.

    (0) 
    1. Stephen Pfeiffer Post author
      Thanks for all of the comments. And yes, expanding the table tool in the new debugger was a necessary step for rounding out the functionality of the new debugger.
      (0) 
    2. Stephen Pfeiffer Post author
      Hi! The developer just asked me to let you know that the type-in-column-name feature has been added to NetWeaver Releases 7.0 EHP2 and EHP3. You can type in the name of the column you want to see. It gets pulled over to the leftmost position in the table tool display. I guess I should have taken another look at the table tool before writing!
      (0) 
      1. Stephen Pfeiffer Post author
        P.S. The developer, Stratos Tsantilis, says ‘Drop me a line if you still believe the table display in the old debugger is better than the Table Tool in the New Debugger.’ 
        (0) 
  2. Thomas Vogt
    .. what I need more often is the content of an internal table in the ST22 dump to do a post-mortem analyzis especially if it crashes in batch.
    Regards,
    Thomas
    (0) 
    1. Stephen Pfeiffer Post author
      Hi!  Actually, as of at least 7.03/7.31 of NetWeaver, you have table rows in the short dump.  At least the first five rows of a table are reproduced in the Chosen Variables section of the ABAP Short Dump in ST22.  I haven’t tested well enough to see if these rows are localized around the SY-TABIX if you have a short dump during table processing. See my blogs on short dumps, though at the time of writing the contents display was not there yet.

      Cheers, Stephen

      (0) 
  3. Alexandra Weber
    I personally find both versions working excellent, it seems the new features are allowing different preferences in viewing the data, it is a preparatory dimensional view on HANA data, I am very excited to see that coming along and integrated so well.  Thank you.
    (0) 
    1. Stephen Pfeiffer Post author
      Hi!

      I’m really sorry, but the Tables tool depends on big kernel and ABAP tool infrastructure changes, so that I think there is very little chance that the New Debugger can ever be downported to 7.01 or 7.00.  That said, 7.02 (7.0 EHP2) is the best NetWeaver Release we’ve had in years, IMHO, so that upgrading to EHP2 is really worth it.

      Thanks for the comment!

      Regards, Stephen

      (0) 

Leave a Reply