In SAP ABAP a WatchPoint can be set to break the program at the point when the value of a filed in the program changes. In SAP ABAP a maximum of 10 WathPoints can be set in a session. This is a very handy tool if you want to break and debug the program only from the point when a field under consideration has the desired value.
Please see the figure given below.
Fields
If you want to see the contents of any filed in the debugger, please double click on the filed. A maximum of 4 fields can be seen at a time. In case you want to change the value of a filed at run time you need to enter it and then click on the pencil icon to change it.
Tables
If you need to see the contents of the Table, double click on the table name and click on the tables option in the debugger. Here you can see the contents of all the fields in the table. In case you need to forcefully change the contents of one or more fields you can do so by typing the desired value and clicking on the pencil icon. Make sure that you click on the pencil sign for each field before proceeding to the next filed. In case you forget to click on the pencil sign for any particular field it will reset to the original value.
Always use Pretty Printer and Extended Program Check before releasing the code.
Do not leave unused code in the program. Comment the code thoroughly. Align the comments and the Code. Follow the SAP Standards and SAP Best Practices guidelines. It’s a good practice to take a dump of the code on your local drive.