Abap Debug Scripting Tool
Abap Debug Scripting Tool
Consider the following code for populating the internal table and displaying
the number of records it holds.
To find out where the issue is, you can write a script to find the bug, instead
of executing you programs loop again & again one loop at a time.
Execute the program in debugging mode and go to Script Tab to create a script.
Choose a triggering mode as watch-point reached.
Now select the Edit button to add a watch-point. Choose the internal table.
(Note : A script watch-point is different from the normal debugger watch-point)
So if both the counts are not equal, the program will stop otherwise it will
continue processing our code.
Pretty Damn Easy!
This is how a customized watch-point can be implemented through
Debugger scripting.
The debugger scripting tool is quite a new tool for most ABAP
programmers and it becomes very handy once you get the hang of it. It
requires the knowledge of Object Oriented ABAP as a prerequisite, which
in itself is something all ABAP programmers should learn. It can make the
life of an ABAP programmer that little bit easier when faced with a difficult
bug to solve, so give the tool a go. You might start to like it
SAP ABAP