SlideShare a Scribd company logo
4
Most read
10
Most read
13
Most read
Debugging
Module Objectives Define debugging Describe branching to debugging mode Define key debugging concepts and functions Explain the debugging mode Describe examining/changing variables Identify breakpoints and watchpoints Debug internal tables
What is Debugging? Tool used to identify and eliminate errors in ABAP programs Allows the verification of program logic in a step-by-step manner by examining the results of individual statements
Branching to Debugging Mode Program ... . Breakpoint ... . ABAP Editor ABAP  Debugger Debugging Program  B170D051 Breakpoints Object List Development object  ...  ...  ... . . . Test/execute . . . Any screen ...  ...  ...  System  Help . . . Utilities . . . . . . Debug ABAP . . . /h
Key Debugging Concepts Debugger modes Examining the value of variables Changing the value of variables Setting breakpoints Setting watchpoints Viewing contents of internal tables
The Debugging Display  ABAP Debugger Watchpoint f Z C C Table Breakpoints Watchpoints Calls Overview Settings Fields Main Program Source code of EVENT START-OF-SELECTION where matkl = c_matkl.    Loop at i_tab.    v_counter = v_counter + 1.    at new vbeln.    write:/ i_tab-vbeln color COL_HEADING.  ENDAT.  write: /10 i_tab-posnr,    i_tab-arktx.    endloop.  ZZXXXXX ZZXXXXX I_TAB-VBELN 0001234 + /
Debugging Mode
Examining the Value of Variables
Changing the Value of Variables
The Most Important Debugging Functions Single Step Execute Continue Table Breakpoint Watchpoint Return Hexadecimal display Replace Processes the next program line Allows the change of data contents during debugging Processing continues until the next breakpoint (or end of  program) is encountered Displays the contents of internal tables Displays data in hexadecimal format Interrupts the program when there is a change in a field Identifies breakpoints Executes all processing steps belonging to one statement Returns from a routine
Setting Breakpoints Menu: Keyword: Utilities -> Breakpoints BREAK-POINT Line selection  (double-click) Breakpoint pushbutton Menu: ABAP Editor Debugging Mode Breakpoint ->  Create/Delete Activate/Deactivate  Delete All Deactivate All Save Breakpoint At Create Watchpoints
Watchpoints Debugging   ..  Breakpoint  .. ABAP Debugger Watchpoint f Z C C or Create/Delete .. .. .. Create Watchpoint
Viewing Contents of Internal Tables
Exercise Exercise 7  – Use the ABAP Debugger, 20 minutes
Question and Answers Any questions?

More Related Content

What's hot (20)

PPT
Maximizing SAP ABAP Performance
PeterHBrown
 
PPTX
SAP ALE Idoc
Jugul Crasta
 
PDF
Table maintenance generator and its modifications
scribid.download
 
DOCX
Badis
Rajesh Kumar
 
PPT
Chapter 02 sap script forms
Kranthi Kumar
 
PDF
Introducing enhancement framework.doc
Kranthi Kumar
 
PDF
Sap edi idoc
Lokesh Modem
 
PDF
Dialog programming ABAP
Jefferson Mutuva
 
PPT
abap list viewer (alv)
Kranthi Kumar
 
PPTX
SAP BADI Implementation Learning for Functional Consultant
Ankit Sharma
 
PPT
User exit training
Jen Ringel
 
PDF
Sap Abap Reports
vbpc
 
PDF
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
PPTX
SAP ABAP using OOPS - JH Softech
Vikram P Madduri
 
PPT
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
PPT
ABAP Open SQL & Internal Table
sapdocs. info
 
PPTX
SAP Smart forms
Jugul Crasta
 
PPT
Abap function module help
Kranthi Kumar
 
PPTX
Reports
Jugul Crasta
 
DOCX
OOPS ABAP.docx
JayantaPatra16
 
Maximizing SAP ABAP Performance
PeterHBrown
 
SAP ALE Idoc
Jugul Crasta
 
Table maintenance generator and its modifications
scribid.download
 
Badis
Rajesh Kumar
 
Chapter 02 sap script forms
Kranthi Kumar
 
Introducing enhancement framework.doc
Kranthi Kumar
 
Sap edi idoc
Lokesh Modem
 
Dialog programming ABAP
Jefferson Mutuva
 
abap list viewer (alv)
Kranthi Kumar
 
SAP BADI Implementation Learning for Functional Consultant
Ankit Sharma
 
User exit training
Jen Ringel
 
Sap Abap Reports
vbpc
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
SAP ABAP using OOPS - JH Softech
Vikram P Madduri
 
Oracle Apps - Forms
Bhaskara Reddy Sannapureddy
 
ABAP Open SQL & Internal Table
sapdocs. info
 
SAP Smart forms
Jugul Crasta
 
Abap function module help
Kranthi Kumar
 
Reports
Jugul Crasta
 
OOPS ABAP.docx
JayantaPatra16
 

Viewers also liked (20)

PDF
SAP Web Dispatcher - Best Bits
Aliter Consulting
 
PPT
Chapter 07 abap dictionary changes1
Kranthi Kumar
 
PPT
Chapter 01 overview of abap dictionary1
Kranthi Kumar
 
PPT
data modelling1
Kranthi Kumar
 
PPT
cardinality1
Kranthi Kumar
 
PPT
Chapter 05 adding structures1
Kranthi Kumar
 
PPT
Chapter 02 abap dictionary objects1
Kranthi Kumar
 
PPT
Chapter 04 abap dictionary tables in relational databases1
Kranthi Kumar
 
PPT
Chapter 06 abap repository information system1
Kranthi Kumar
 
PPT
Ale Idoc
Amit Khari
 
PPT
Lecture02 abap on line
Milind Patil
 
PDF
05 internal tables
Brahmaiah Punati
 
PPT
Chapter 08 abap dictionary objects views1
Kranthi Kumar
 
PPT
Chapter 10 online help & documentation1
Kranthi Kumar
 
PPT
0104 abap dictionary
vkyecc1
 
PDF
Sujith ~ cross applications
Kranthi Kumar
 
PDF
Bapi jco[1]
mateenjambagi
 
PPT
Chapter 03 foreign key relationships1
Kranthi Kumar
 
PPT
VIEWS
Kranthi Kumar
 
PPT
table maintenance generator1
Kranthi Kumar
 
SAP Web Dispatcher - Best Bits
Aliter Consulting
 
Chapter 07 abap dictionary changes1
Kranthi Kumar
 
Chapter 01 overview of abap dictionary1
Kranthi Kumar
 
data modelling1
Kranthi Kumar
 
cardinality1
Kranthi Kumar
 
Chapter 05 adding structures1
Kranthi Kumar
 
Chapter 02 abap dictionary objects1
Kranthi Kumar
 
Chapter 04 abap dictionary tables in relational databases1
Kranthi Kumar
 
Chapter 06 abap repository information system1
Kranthi Kumar
 
Ale Idoc
Amit Khari
 
Lecture02 abap on line
Milind Patil
 
05 internal tables
Brahmaiah Punati
 
Chapter 08 abap dictionary objects views1
Kranthi Kumar
 
Chapter 10 online help & documentation1
Kranthi Kumar
 
0104 abap dictionary
vkyecc1
 
Sujith ~ cross applications
Kranthi Kumar
 
Bapi jco[1]
mateenjambagi
 
Chapter 03 foreign key relationships1
Kranthi Kumar
 
table maintenance generator1
Kranthi Kumar
 
Ad

Similar to 0106 debugging (20)

PPT
Les15
Sudharsan S
 
PPT
Oracle forms Lesson 15 debuging triggers
KAMA3
 
PPT
Ppt lesson 06
Linda Bodrie
 
PPT
Ppt lesson 06
Linda Bodrie
 
PPT
Ppt lesson 06
Linda Bodrie
 
DOC
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
IT TRAINER
 
DOCX
Debugger & Profiler in NetBeans
Huu Bang Le Phan
 
PPT
6) debugging and testing
techbed
 
DOC
222066369 clad-study-guide
homeworkping9
 
PPTX
Abap ppt
Rajani Kanth
 
PPTX
Abap ppt2
Rajani Kanth
 
PPT
myslide6
Sandeep Putrevu
 
PPT
NewSeriesSlideShare
Sandeep Putrevu
 
PPT
myslide1
Sandeep Putrevu
 
PPT
Spreadsheet Analytical Tools
Joselito Perez
 
PPTX
module1 new c programming for begginers.pptx
amruthavarshini849703
 
PDF
Complete reference to_abap_basics
Abhishek Dixit
 
PPT
Ms vb
sirjade4
 
PPT
module 3.4 Variables.ppt
ssuserd973fe
 
PPT
Pptabap nee eaea data of all best course eith all information with necesaory ...
PrabakaranDasarathan2
 
Oracle forms Lesson 15 debuging triggers
KAMA3
 
Ppt lesson 06
Linda Bodrie
 
Ppt lesson 06
Linda Bodrie
 
Ppt lesson 06
Linda Bodrie
 
Abapdebuggingfrombasictoadvance 140214043218-phpapp01
IT TRAINER
 
Debugger & Profiler in NetBeans
Huu Bang Le Phan
 
6) debugging and testing
techbed
 
222066369 clad-study-guide
homeworkping9
 
Abap ppt
Rajani Kanth
 
Abap ppt2
Rajani Kanth
 
myslide6
Sandeep Putrevu
 
NewSeriesSlideShare
Sandeep Putrevu
 
myslide1
Sandeep Putrevu
 
Spreadsheet Analytical Tools
Joselito Perez
 
module1 new c programming for begginers.pptx
amruthavarshini849703
 
Complete reference to_abap_basics
Abhishek Dixit
 
Ms vb
sirjade4
 
module 3.4 Variables.ppt
ssuserd973fe
 
Pptabap nee eaea data of all best course eith all information with necesaory ...
PrabakaranDasarathan2
 
Ad

Recently uploaded (20)

PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
PPTX
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
PPTX
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
PDF
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
PPTX
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
PPTX
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PPTX
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
PDF
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PPTX
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
PPTX
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
PDF
community health nursing question paper 2.pdf
Prince kumar
 
PPTX
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
PPTX
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
HYDROCEPHALUS: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Quarter1-English3-W4-Identifying Elements of the Story
FLORRACHELSANTOS
 
ASRB NET 2023 PREVIOUS YEAR QUESTION PAPER GENETICS AND PLANT BREEDING BY SAT...
Krashi Coaching
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
THE TAME BIRD AND THE FREE BIRD.pptxxxxx
MarcChristianNicolas
 
People & Earth's Ecosystem -Lesson 2: People & Population
marvinnbustamante1
 
SPINA BIFIDA: NURSING MANAGEMENT .pptx
PRADEEP ABOTHU
 
Unit 2 COMMERCIAL BANKING, Corporate banking.pptx
AnubalaSuresh1
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
How to Create a PDF Report in Odoo 18 - Odoo Slides
Celine George
 
LAW OF CONTRACT (5 YEAR LLB & UNITARY LLB )- MODULE - 1.& 2 - LEARN THROUGH P...
APARNA T SHAIL KUMAR
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
Soil and agriculture microbiology .pptx
Keerthana Ramesh
 
PATIENT ASSIGNMENTS AND NURSING CARE RESPONSIBILITIES.pptx
PRADEEP ABOTHU
 
How to Convert an Opportunity into a Quotation in Odoo 18 CRM
Celine George
 
community health nursing question paper 2.pdf
Prince kumar
 
grade 5 lesson matatag ENGLISH 5_Q1_PPT_WEEK4.pptx
SireQuinn
 
Stereochemistry-Optical Isomerism in organic compoundsptx
Tarannum Nadaf-Mansuri
 

0106 debugging

  • 2. Module Objectives Define debugging Describe branching to debugging mode Define key debugging concepts and functions Explain the debugging mode Describe examining/changing variables Identify breakpoints and watchpoints Debug internal tables
  • 3. What is Debugging? Tool used to identify and eliminate errors in ABAP programs Allows the verification of program logic in a step-by-step manner by examining the results of individual statements
  • 4. Branching to Debugging Mode Program ... . Breakpoint ... . ABAP Editor ABAP Debugger Debugging Program B170D051 Breakpoints Object List Development object ... ... ... . . . Test/execute . . . Any screen ... ... ... System Help . . . Utilities . . . . . . Debug ABAP . . . /h
  • 5. Key Debugging Concepts Debugger modes Examining the value of variables Changing the value of variables Setting breakpoints Setting watchpoints Viewing contents of internal tables
  • 6. The Debugging Display ABAP Debugger Watchpoint f Z C C Table Breakpoints Watchpoints Calls Overview Settings Fields Main Program Source code of EVENT START-OF-SELECTION where matkl = c_matkl. Loop at i_tab. v_counter = v_counter + 1. at new vbeln. write:/ i_tab-vbeln color COL_HEADING. ENDAT. write: /10 i_tab-posnr, i_tab-arktx. endloop. ZZXXXXX ZZXXXXX I_TAB-VBELN 0001234 + /
  • 8. Examining the Value of Variables
  • 9. Changing the Value of Variables
  • 10. The Most Important Debugging Functions Single Step Execute Continue Table Breakpoint Watchpoint Return Hexadecimal display Replace Processes the next program line Allows the change of data contents during debugging Processing continues until the next breakpoint (or end of program) is encountered Displays the contents of internal tables Displays data in hexadecimal format Interrupts the program when there is a change in a field Identifies breakpoints Executes all processing steps belonging to one statement Returns from a routine
  • 11. Setting Breakpoints Menu: Keyword: Utilities -> Breakpoints BREAK-POINT Line selection (double-click) Breakpoint pushbutton Menu: ABAP Editor Debugging Mode Breakpoint -> Create/Delete Activate/Deactivate Delete All Deactivate All Save Breakpoint At Create Watchpoints
  • 12. Watchpoints Debugging .. Breakpoint .. ABAP Debugger Watchpoint f Z C C or Create/Delete .. .. .. Create Watchpoint
  • 13. Viewing Contents of Internal Tables
  • 14. Exercise Exercise 7 – Use the ABAP Debugger, 20 minutes
  • 15. Question and Answers Any questions?

Editor's Notes

  • #4: ATS App. Prog. – ABAP Programming Module Presentations When should debugging be used? When a program is syntactically correct but has logical flaws When actual results do not match expected results When component testing a program Anytime detailed examination of source code logic is required
  • #5: Several options exist for debugging a program: Start the program using the Debugging function (from the ABAP Editor initial screen, select either the Debugging pushbutton, or via menu option Program -> Execute -> Debugging From the Repository Browser’s object list, use the menu option Development Object -> Test/Execute and then select Debugging from the pop-up dialogue box. From any screen, select Systems -> Utilities -> Debug ABAP. From any screen, type /h in the system command line and press ENTER. Set break-points in the program and execute it normally. When the break-point is encountered, the program will enter the debug mode.
  • #7: The pushbuttons across the top of the screen provide links to other debugging information and will be discussed throughout this Module. The source code window displays the statements currently being executed or may be used to scroll through the code to set breakpoints. Breakpoints are identified with a stop sign and will be discussed in detail later in this Module. The field evaluation window displays the value of selected fields.
  • #8: When entering the debugger, there is a choice of seven different views: Fields - displays the field’s content and technical characteristics Table - displays the contents of an internal table Breakpoint - interrupts a program at a given line of code. Breakpoints can be static or dynamic. Watchpoint - interrupts a program only when there is a change in the contents of a particular field or filed string. It is possible to define multiple watchpoints, attach conditions to them, and link two or more watchpoints using a relational operator. Calls - displays an active event chain and the call sequence up to the current breakpoint. The most recent active call appears at the top of the list and the previous calls appear underneath. Overview - displays the structure of the programs being debugged. This view shows the event names and event types within a program and indicates which section is currently being used. Settings - displays the different options and error handling a user has when debugging
  • #9: ATS App. Prog. – ABAP Programming Module Presentations To display the value of a particular variable, double-click on the variable, which will copy it to the field evaluation window. The variable name may also be typed directly in the Field names column of the field evaluation window.
  • #10: While executing the program in debug mode, the value of a field may be modified. Once a field has been selected and the corresponding values are displayed in the field evaluation window, the field value may be manually changed in the Field contents column. The Change pushbutton (pencil icon) should then be selected to activate the field value change.
  • #12: There are different methods of setting breakpoints for a program: ABAP Editor Position the cursor on a program line. Save the breakpoint by selecting Utilities -> Break-points -> Set Or, use the ABAP statement BREAK-POINT to set breakpoints in the program. You can set personalised breakpoints using the statement BREAK USERNAME. Debugging mode Position the cursor on a program line. Set a breakpoint with F2, double-click, or select via Break-point -> Set/ Delete. The breakpoint at function allows you to set breakpoints at strategic points in the program code. The breakpoint button displays an overview of the breakpoints that have been set within the program.
  • #13: A watchpoint is a signal within a program’s code that tells the ABAP runtime processor to interrupt a program at a particular point in the code. Watchpoints are set from the debugger. Set and remove watchpoints as needed. Watchpoints are field-specific. Use a watchpoint to observe the changes to a particular field. The debugger interrupts the program when the field’s contents change. Watchpoints can be set either locally and globally. Global watchpoints are valid in all programs that are called. Local watchpoints are only valid within a specified program. Watchpoints: Up to five watchpoints can be defined Conditional watchpoints can be defined using <, <=, =, <>, >=, > Watchpoints can be combined with AND or OR Local and global watchpoints (i.e., stop only in my program) can be set defined. Menu from Debugging mode: Watchpoint -> Create Watchpoint.
  • #14: The contents of internal tables may be displayed by selecting the Tables pushbutton at the top of the Debugging screen.