Influence The Program Behaviour at Runtime: Implmetation Check and Probability Check o Implemetnation
Influence The Program Behaviour at Runtime: Implmetation Check and Probability Check o Implemetnation
Avoiding this effort (time is money) you can leverage the simple, but nevertheless very valuable,
feature named Goto Statement.
Typically you choose one particular code (e.g. line x in program z) because you want to inspect the
program flow around this code. Besides such dynamic breakpoints you can leverage special
dynamic breakpoints and conditional breakpoints to make your debugging experience easier.
Assume we require to identify all authorization checks conducted during a program flow. We know
that AUTHORITY-CHECK is the respective ABAP keyword. How do we solve this challenge?
Firstly, we could execute the ABAP program in the debugger and follow the program flow by hand.
After browsing through all methods, function modules etc. we have noted down all authorization
checks. Apparently this approach is time-consuming and also error prone as you never know if you
have missed some piece of code deep in the call stack.
Secondly, as an advantageous approach you can leverage special dynamic breakpoints (that’s the
official name according to the documentation). This feature let’s you create breakpoints at every
instance of a certain e.g. statement, exception, or function module.
In order to define special dynamic breakpoints, choose Breakpoints -> Breakpoint At in the debugger
menu. Choose Breakpoint at Statement with regards to our example. In the appearing pop-up we
enter the name of the command.