SlideShare a Scribd company logo
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?
Ad

More Related Content

What's hot (20)

Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
Kranthi Kumar
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
Ankit Sharma
 
Reports
ReportsReports
Reports
Jugul Crasta
 
Sap scripts
Sap scriptsSap scripts
Sap scripts
Jugul Crasta
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
scribid.download
 
Ooabap notes with_programs
Ooabap notes with_programsOoabap notes with_programs
Ooabap notes with_programs
Kranthi Kumar
 
Module pool programming
Module pool programmingModule pool programming
Module pool programming
Subhojit- Opekkhay
 
SAP ALE Idoc
SAP ALE IdocSAP ALE Idoc
SAP ALE Idoc
Jugul Crasta
 
Bdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONBdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATION
Hitesh Gulani
 
User exit training
User exit trainingUser exit training
User exit training
Jen Ringel
 
Message, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type GroupMessage, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type Group
sapdocs. info
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
Sap abap real time questions
Sap abap real time questionsSap abap real time questions
Sap abap real time questions
techie_gautam
 
Sapscript
SapscriptSapscript
Sapscript
Jen Ringel
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
Kranthi Kumar
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
Kranthi Kumar
 
ABAP Advanced List
ABAP Advanced ListABAP Advanced List
ABAP Advanced List
sapdocs. info
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
Kranthi Kumar
 
SAP Modularization techniques
SAP Modularization techniquesSAP Modularization techniques
SAP Modularization techniques
Jugul Crasta
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
Kranthi Kumar
 
SAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional ConsultantSAP BADI Implementation Learning for Functional Consultant
SAP BADI Implementation Learning for Functional Consultant
Ankit Sharma
 
Table maintenance generator and its modifications
Table maintenance generator and its modificationsTable maintenance generator and its modifications
Table maintenance generator and its modifications
scribid.download
 
Ooabap notes with_programs
Ooabap notes with_programsOoabap notes with_programs
Ooabap notes with_programs
Kranthi Kumar
 
Bdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATIONBdc BATCH DATA COMMUNICATION
Bdc BATCH DATA COMMUNICATION
Hitesh Gulani
 
User exit training
User exit trainingUser exit training
User exit training
Jen Ringel
 
Message, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type GroupMessage, Debugging, File Transfer and Type Group
Message, Debugging, File Transfer and Type Group
sapdocs. info
 
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
500+ SAP ABAP INTERVIEW QUESTIONS WITH ANSWERS
IICT Chromepet
 
Sap abap real time questions
Sap abap real time questionsSap abap real time questions
Sap abap real time questions
techie_gautam
 
Chapter 07 debugging sap scripts
Chapter 07 debugging sap scriptsChapter 07 debugging sap scripts
Chapter 07 debugging sap scripts
Kranthi Kumar
 
abap list viewer (alv)
abap list viewer (alv)abap list viewer (alv)
abap list viewer (alv)
Kranthi Kumar
 
Sap sapscripts tips and tricks
Sap sapscripts tips and tricksSap sapscripts tips and tricks
Sap sapscripts tips and tricks
Kranthi Kumar
 
SAP Modularization techniques
SAP Modularization techniquesSAP Modularization techniques
SAP Modularization techniques
Jugul Crasta
 

Viewers also liked (20)

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

Similar to 0106 debugging (20)

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

Recently uploaded (20)

Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
Political History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptxPolitical History of Pala dynasty Pala Rulers NEP.pptx
Political History of Pala dynasty Pala Rulers NEP.pptx
Arya Mahila P. G. College, Banaras Hindu University, Varanasi, India.
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptxYSPH VMOC Special Report - Measles Outbreak  Southwest US 4-30-2025.pptx
YSPH VMOC Special Report - Measles Outbreak Southwest US 4-30-2025.pptx
Yale School of Public Health - The Virtual Medical Operations Center (VMOC)
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 
Understanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s GuideUnderstanding P–N Junction Semiconductors: A Beginner’s Guide
Understanding P–N Junction Semiconductors: A Beginner’s Guide
GS Virdi
 
GDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptxGDGLSPGCOER - Git and GitHub Workshop.pptx
GDGLSPGCOER - Git and GitHub Workshop.pptx
azeenhodekar
 
How to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 WebsiteHow to Subscribe Newsletter From Odoo 18 Website
How to Subscribe Newsletter From Odoo 18 Website
Celine George
 
To study Digestive system of insect.pptx
To study Digestive system of insect.pptxTo study Digestive system of insect.pptx
To study Digestive system of insect.pptx
Arshad Shaikh
 
Metamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative JourneyMetamorphosis: Life's Transformative Journey
Metamorphosis: Life's Transformative Journey
Arshad Shaikh
 
apa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdfapa-style-referencing-visual-guide-2025.pdf
apa-style-referencing-visual-guide-2025.pdf
Ishika Ghosh
 
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
How to track Cost and Revenue using Analytic Accounts in odoo Accounting, App...
Celine George
 
To study the nervous system of insect.pptx
To study the nervous system of insect.pptxTo study the nervous system of insect.pptx
To study the nervous system of insect.pptx
Arshad Shaikh
 
Geography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjectsGeography Sem II Unit 1C Correlation of Geography with other school subjects
Geography Sem II Unit 1C Correlation of Geography with other school subjects
ProfDrShaikhImran
 
Social Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy StudentsSocial Problem-Unemployment .pptx notes for Physiotherapy Students
Social Problem-Unemployment .pptx notes for Physiotherapy Students
DrNidhiAgarwal
 
One Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learningOne Hot encoding a revolution in Machine learning
One Hot encoding a revolution in Machine learning
momer9505
 
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Niamh Lucey, Mary Dunne. Health Sciences Libraries Group (LAI). Lighting the ...
Library Association of Ireland
 
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulsepulse  ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
pulse ppt.pptx Types of pulse , characteristics of pulse , Alteration of pulse
sushreesangita003
 
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...Multi-currency in odoo accounting and Update exchange rates automatically in ...
Multi-currency in odoo accounting and Update exchange rates automatically in ...
Celine George
 
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptxSCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
SCI BIZ TECH QUIZ (OPEN) PRELIMS XTASY 2025.pptx
Ronisha Das
 
New Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptxNew Microsoft PowerPoint Presentation.pptx
New Microsoft PowerPoint Presentation.pptx
milanasargsyan5
 
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
World war-1(Causes & impacts at a glance) PPT by Simanchala Sarab(BABed,sem-4...
larencebapu132
 
Introduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe EngineeringIntroduction to Vibe Coding and Vibe Engineering
Introduction to Vibe Coding and Vibe Engineering
Damian T. Gordon
 

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.