ABAP Debugging Concept
ABAP Debugging Concept
Page 2
Reason
Reason
To find out value at certain condition.
To replace value at certain condition.
Stop at certain position.
Page 3
Agenda
Overview: - Common ABAP Program Structure
- Common ABAP Data Types
- Common ABAP Command /Syntax
Simulation
Page 5
Common ABAP
Program Program Structure
Structure
Main Program
Include Program
Sub Routine
Function
Macro
Event
Page 6
Data Common
Type ABAP Data Type
Constant
Internal Table
System Field
Page 7
Common ABAP Statement /Syntax
Statement
SELECT Statement
LOOP /DO /WHILE Statement
READ TABLE Statement
SORT Statement
CHECK /IF /CASE Statement
DELETE TABLE /ADJACENT Statement
APPEND /INSERT /MODIFY Statement
CONCATENATE Statement
DESCRIBE TABLE Statement
EXIT Statement
Page 8
ABAP Debugging Environment
Page 9
ABAP Debugging Environment: Variation
Debug Variation
Page 10
ABAP Debugging
Debug Feature Environment: Feature
Page 11
ABAP Debugging Environment:
Debug Navigation Navigation
Execute (F6)
When next program statement is a
subroutine, this executes the entire
subroutine and stops
Return (F7)
Completely executes an external routine and
stops when control is returned back to the
main program
Continue (F8)
Executes the program until is is finished or
until the next breakpoint is reached
Page 12
ABAP Debugging
Breakpoints Environment: Breakpoints
>Breakpoints are also beneficial to functional users as they allow a user to view
program logic behind the scenes with live data.
>Breakpoints can be inserted in a program from the ABAP Editor and during the
execution of a program or transaction.
>Breakpoints are specific to the user who sets them. Breakpoints will not
affect other users running the same transaction.
Page 13
ABAP Debugging Technique
Page 14
Simulation
Page 15
Q&A
Page 16
The End ….
Page 17
System System
Field Field
SY-SUBRC SY-INDEX
SY-DATUM SY-UCOMM
SY-UZEIT SY-REPID
SY-TABIX SY-UNAME
Page 18
Event
Event
AT SELECTION-SCREEN
START-OF-SELECTION
AT LINE-SELECTION
AT USER-COMMAND
Page 19