‎2009 Feb 24 5:46 AM
Experts,
Can you anybody clarify me the purpose of the watch point with some scenarios?
Before posting this, I searched and read docs about watch points. But, I am not
clear about setting watch points.
Thanks ....
‎2009 Feb 24 6:18 AM
‎2009 Feb 24 5:49 AM
suppose u have manually break point in a loop to watch each value of any field.
but further u want to watch a particular value. for this u will have to set the watch point on that field
against the value for which u are looking.
once u have entered in debug mode click on Break/Watchpoints TAB.
It will open the window.Click on WatchPoints TAB.
Now in icon buttons click on the create watch points icon .
Now in the opened window write the variable name. if of the loop then itab-field else ony var name.
After writing this click on the icon against which the text 'No Addititional Condition' Is written.
It will open Free condition Entry.
Here write the value for which u are looking
itab-field = 'XXX'.
and enter.
ur watch point is created
Edited by: tahir naqqash on Feb 24, 2009 10:50 AM
‎2009 Feb 24 5:51 AM
If we have 100 materials in table and you want to stop at material 45, then create watchpoint by giving the field as Itab-matnr and value as 45 then whenver it reaches the record of material 45 it stops.
‎2009 Feb 24 5:52 AM
Did you check help provided by SAP ?
[http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cd9e68c11d2b2ab080009b43351/content.htm]
‎2009 Feb 24 5:53 AM
hi:
[watch point|http://help.sap.com/saphelp_nw70/helpdata/EN/f1/792442db42e22ce10000000a1550b0/content.htm]
Regards
Shashi
‎2009 Feb 24 6:00 AM
Hello Shridhar,
Watchpoint is basically used to interrupt your program when the contents of your variable or internal table change.
So for eg:
If you have a report wherein u want to know at what point some values are assigned to it in the report.
Then in such a case you need to create a watchpoint as using a breakpoint here will become tedious.
Hope that resolves your query.
Regards,
Samreen.
‎2009 Feb 24 6:18 AM