Skip to Content

This blog is about a lesser known option in New ABAP Debugger that lets you see the list buffer or list preview.

Few years ago I asked my senior to help me in debugging a sales order transaction.

He did a /h , jumped into debugging and immediately switched from new(er) debugger to old(er) debugger. He found out the answer in a matter of minutes.

When I asked him the reason behind using older debugger, he said he is used to it, and several options are missing or difficult to find in newer debugger.

One such “missing” feature was the ability to see list preview (the output of WRITE statements executed so far).

That point onwards whenever I was debugging a report where WRITE statement was used all over the place, I used to switch to old debugger to see list preview.

I discovered today that New Debugger of Netweaver 7.0 EHP2 and above have the list preview option.

You can execute below code and by the time debugger is launched, list buffer would have 5 lines.

DO 10 TIMES.

  WRITE / sy-index.

  IF sy-index EQ 5.

    BREAK-POINT.

  ENDIF.

ENDDO.

Let us look at various ways to see list preview.

1. Classic Debugger

Click on application toolbar button Display List(Ctrl+F12)

/wp-content/uploads/2015/04/1_677492.png

See list preview

/wp-content/uploads/2015/04/2_677493.png

2. New Debugger – 1

Choose Menu > Miscellaneous > List Display

/wp-content/uploads/2015/04/3_677494.png

3. New Debugger – 2

Click on New Tool button on right pane of any tool

/wp-content/uploads/2015/04/4_677495.png

Choose Tools > Special Tools > Console: XML and List Preview

/wp-content/uploads/2015/04/5_677496.png

Go to tab ABAP List

/wp-content/uploads/2015/04/6_677497.png

As the name suggests, this tool is to preview simple transformation and list buffer.

You can read details about the tool here.

Console: XML and List Preview Tool – Test and Analysis Tools in ABAP – SAP Library

This tool helps you see list preview and other debugger tools in single window.

Clicking on “Formatted Preview” button will take you full output just like options 1 and 2 (including icons, colors etc).

4. Classic/New Debugger

Type variable name (SAPMSSY0)%_LIST in variable tool

/wp-content/uploads/2015/04/7_677498.png

Double click to see contents of internal table and see contents of column name LINE.

/wp-content/uploads/2015/04/8_677499.png

Method 4 is taken from below discussion in ABAP Development.

How to debug Abap List in New Debugger?

Conclusion

List preview is no longer a reason for me to switch to classic debugger.

To report this post you need to login first.

4 Comments

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

  1. Pradeep Kodinagula

    When it comes to debugging even I’m also used to old debugger and I always want to learn about new debugger, your blog makes me to take a step towards new debugger.

    Mr.Manish,Thank you so much and keep posting.

    Regards,

    Pradeep K

    (0) 

Leave a Reply