Documente Academic
Documente Profesional
Documente Cultură
Table of Contents
Need for Debugging
Debugging requirement.
Initial Set Up
Debugging Types.
Debugging Screen
Single Dimensional structure
Two Dimensional structure.
System Variables.
Break Point.
Watch Point.
Termination of Batch Job
Background Job Overview
Dump Analysis
Error List
Runtime Analysis
Debugging of Background Task
Need for Debugging
Need for Debugging
• Report.
• Function Module
• User Exit
• Standards Programs.
• Background Jobs.
Debugging - Report
USAGE
• Execute.
o Process
• FIELD button -> enter name in Col Field names
data displayed in Field Contents.
• Field Contents can be modified using Change
button.
Two Dimensional structure
o Process
• Tables button enter name in Internal table
section OR double click on ITab name Table
data displayed below.
• Change field contents: double click on any ITab
field leads to Single Field Contents screen
use Change button for Runtime changes
System Variables
• SY-SUBRC: Successful execution of previous
statement System variable providing fruitful
information, about confirmation of retrieval
statement.
o sy-subrc = 0 successful retrieval of
data
o sy-subrc <> 0 unsuccessful retrieval of
data
• SY-TABIX: Current line number of internal table.
o Features:
• Comparison Operator.
• Comparison Field Value.
• Logical Operator.
• Local/ Global data.
• Watch Point is set within a loop with ‘n’ iterations.
• Interested to know about processing for 55th iteration
out of 100 records in an Internal table.
• Executing F8 until then is time consuming, instead use
Watch Point feature as shown in below screen shot.
Debugging – Background Job
Termination of Batch Job
• Transaction for Batch Job: SM37
• Transaction : ST22
Steps:
•After ‘/h’ debugging, click on settings and select
the option as “In background task don’t execute” .