Sunday, May 17, 2015

New abap debugger

The header and reference of the internal table ITAB, for example,
can be accessed in the debugger by the symbols *ITAB and &ITAB, respectively. The header contains,
among other things, information about the number of lines internal table ITAB is filled with. So setting a
watchpoint at *ITAB will stop the execution of the program whenever a line is inserted or deleted.


So put as watchpoint:

*ITAB  - header
&ITAB - reference

L_TIME and the watchpoint is “hit” during program execution because L_TIME changes from
11:15:00 to 11:30:00, enabling you to access the old value of 11:15:00 via the symbol
{A:7*\KERNEL_WATCHPOINT_CLONE}

You can use two built-in functions as operands in the watchpoint condition: lines( itab ) and "strlen( str )" (the number of lines of the internal table itab and the length of the string str, respectively).

field symbol <l_wa>-price is used as a
temporary field to keep the value from the calculation
of the “gross price minus VAT,” which will be used
later in the IF statement. But this field symbol points
directly into the internal table flights, as indicated in
the loop ... assigning statement shown in line 97 in
Figure 25. As a consequence, the original value of
price inside the flights table is changed implicitly
by moving a new value to <l_wa>-price.

No comments:

Post a Comment