Debugging Tips For Functional Consultants
Debugging Tips For Functional Consultants
Consultants
F6 Key: If you want to skip a particular subroutine, you can use this button. In
case you are in the initial lines of the program of if you are already in the
subroutine, then this works same as F5 button.
F7 Key: Already if you are in a subroutine and you want to come out of the
subroutine by skipping all the remaining statements or if you want to go the next
break-point, you can click on this button.
F8 Key : If you want to directly execute the program without investigating any
more or if you want to go to next breakpoint position, you can click on this
button.
You can find the above
mentioned Function Keys
in two ways as shown in the
screens here.
First way is through Menu,
secondly on tool bar.
Conventionally we operate
using the buttons shown in
the second screen and using
Functional keys
F5,F6,F7,F8. Menu is used
to get the result as well as to
come out of debugging
abruptly. These two
activities are achieved by
menu items Debugging
Off, Restart respectively.
Topic 3: Tips for Debugging
Accurate use of F6 and F7 buttons minimizes the debugging time and efforts.
If you are not required to investigate a particular subroutine, click on F6. If you
would have entered into that subroutine by mistake, click F7 to come out of
subroutine.
If you want to see fields values, you need to select ‘Fields’ button found on the
top of debugging area and click on the fields you want to see the values of.
If you want to see internal table contents click on the ‘Tables’ button found above
on the debugging area and click on the internal table you want to see the values of
.
Field values can be seen as shown in the following screen:
Contents of internal table can be seen as shown in the following screen.
Structure values can be seen as shown below.
V.Imp tip :Some times you need to check for a particular value of a field, which is
not available in the program. In that case we can modify the field value
dynamically with required value and test with that value.
For example in our case, wa_anekpv-bwasl’s value is 100 and we want to
check for the value 500. Following screen shots will depict how to achieve
this. In the following screen, the original value 100 is being shown.
Following screen shows how to modify this value to 500
This involves 2 steps. First of all modify the value to 500 and click on the save
button (Pencil button ) shown beside the value. Then value will be saved.
Another Imp. Tip: Setting up Watch Point
Some times you may need to stop the process for a particular value
of a particular field. For example you have 1000 records, and you
want to do some investigation for a particular record. For example
in that record, for a particular field’s particular value. In this case
there is an option called ‘Watch Point’. Lets see how to create a
watch point and how to stop the process for that field value.
In this first screen we can see a push button on the top of debugging area called
‘WatchPoint’. Please click on that push button to create a watch point.
By clicking on the ‘WatchPoint’ push button you will get a pop-up like the following. In the
‘Field Name’ area you need to mention the field name for which you to set the watch
point. In the ‘Relational Operator’ area, F4 functionality is given. You can select any of
the operators like =, =>,<=, <> etc. And in ‘Comp. field/ value’ you need to mention
the value for which processing should be halted. Then click on Enter and click on
Execute. Process will be halted at that particular value of that particular field.
There are so many such options such as break point at
a particular statement, a function module, a subroutine
etc….; displaying all the breakpoints, deleting all the
breakpoints. All these options are useful also for
functional consultants.
Koteswar.