SAP ABAP New Debugger Tool
SAP ABAP New Debugger Tool
Debugger Tool
for Functionals
Oct 13, 2023
ILLUMITI.CO
M
By : Ish Prakash & Sweta G.
Agenda
The SAP New Debugger Agenda is a plan that guides Functionals
through the powerful features of SAP's latest debugging tool. In
simple terms, it covers the basics of understanding debugging in SAP,
highlights the challenges faced with traditional methods, introduces
the new tool's capabilities, explains its key features like advanced
breakpoints and real-time variable tracking, and demonstrates how to
use it effectively. The agenda also includes real-life examples, user
testimonials, and tips for efficient debugging. It aims to make
developers familiar with the tool, enhance their debugging skills, and
improve their overall experience in SAP ABAP development.
Topics to be cover
Overview
Different types of breakpoints
Flow of Control
Debugger Settings
Debugging various ABAP objects
Overview -
Introduction
For any day-to-day issue faced in SAP, debugger is the most basic tool
that can be utilized to reach the root cause. It not only lets you
trouble shoot effectively but also helps you visualize ‘what-if’
scenarios. The Debugger is a programming tool that you can use to
execute ABAP programs, by line or by section. With this tool, you can
display data objects and check the flow logic of programs.
Dynamic/Session break points: We can put dynamic breakpoints from SE80 or SE38 or
debugger. Dynamic breakpoints are always user-specific and are deleted when you log off
from the R/3 System. They can be deleted or deactivated during runtime.
Different types of breakpoints
Debugging without Breakpoint: You can start the Debugger as follows
In SE80: Select a program or transaction and from the top menu choose
Program -> Test -> Debugging.
In SE38: From the top menu choose Program -> Test -> Debugging.
From any other screen: From the top menu choose System -> Utilities -> Debug
ABAP.
or Enter /h in the command field and press enter.
Once inside the debugger, breakpoints can be set at statements, subroutines, FM,
etc as shown here
Flow of Control
System debugging : In SE38, programs can be set to ‘system program’ in the status. The debugger
then skips the program if system debugging is turned off. If there is problem that involve system
programs, such as with a function that can’t be accessed in debugger, turn on this setting. System
debugging can be turned on by entering ‘/hs’ in the command field in the debugger.
Update debugging : To analyze asynchronous updates, we use update debugging. Asynchronous
updates are functions that are called with addition IN UPDATE TASK as CALL FUNCTION ‘..’ IN
UPDATE TASK .. The debugger can’t follow this update modules, and we won’t see anything for
these modules during debugging, if we don’t use ‘update debugging’ setting.
Debugging various ABAP Object - Smartforms
The best way to debug the form is to put a breakpoint in the function module generated by the
smartform. For this, open the smartform we want to debug. Goto Environment -> Function
module name.
Debugging various ABAP Object - Smartforms
Open the function module in SE37. From the menu GOTO -> main program. Open the last
include.
This include contains the entire code i.e. the code we have written in initialization + form routines +
program lines + sap generated code. Put a breakpoint at any point you want. If we issue any doc
which triggers this form, when the control reaches the break point it will stop. Prefer session break
point in the related function module.
Debugging various ABAP Object – Batch Jobs
ILLUMITI.CO
M