ABAP Debugger

<< Click to Display Table of Contents >>

Navigation:  All About ABAP Technique > English > ABAP Tutorial > ABAP Workbench Tools >

ABAP Debugger

Menu Path

SAP Menu > Tools > ABAP Workbench > Development > ABAP Editor

Transaction code

SE38 > Debugging

 

ABAP Debugger is one of SAP fitur which most used by ABAP'er to analize program/report made in SAP.

Main menus in ABAP Debuger which most used are:

1.Single Step (F5), it's used to enter inside subroutine or module.

2.Execute (F8), it's used to execute line coding one by one.

3.Return  (F7), it's used to exit from subroutine.

4.Run (to Cursor) (F8), it's used to execute all line code program and only stop if there are icon"adeb0007"

 

adeb0004

 

These are bassic example to debug program.

1.Open t-code SE38

2.Choose YEXAMPLES_04

3.Run Program

4.Type "/h" at "Command Field"

adeb0001

5.Press enter

6.Press button "adeb0002"

7.It will be enter ABAP Debuger menu like picture below :

adeb0003

8.Click "adeb0009"

9.Type "gi_itab" at Field names and press enter

adeb0013

10. Double Click at "adeb0014" and will be appear "Internal Table" menu

adeb0015

adeb0016 = This is a row which define as Header Line

" DATA : gi_itab TYPE STANDARD TABLE OF ty_wa WITH HEADER LINE. "

 

11.Click "adeb0009", stop at coding "    APPEND gi_itab."

12.attent the Header Line, it will be filled like picture below :

adeb0017

Notes: Before append the data, it place temporary at header line.

 

13.Click "adeb0009" to append data

adeb0018

Notes:Data at Header Line are data at active row in gi_itab.

  .

14.Now, double click on  "    APPEND gi_itab." so it will be appear Break Point like picture below

adeb0019.

15.Then Click "adeb0011" once again, then cursor will jum into icon"adeb0007" inside repetition block coding

adeb0020

16.Now, Double Click at "    APPEND gi_itab." or  icon "adeb0007" to remove Break Point

17.Then Click "adeb0011" to exit from ABAP Debugger

18.Finish