Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Debugging

Former Member
0 Likes
702

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 ....

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
680

Hi Sridhar

Did u checked the Varun's thread.It will explain you the WATCH POINT concept very clearly

Regards

Sachin

6 REPLIES 6
Read only

Former Member
0 Likes
680

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

Read only

Former Member
0 Likes
680

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.

Read only

GauthamV
Active Contributor
0 Likes
680

Did you check help provided by SAP ?

[http://help.sap.com/saphelp_47x200/helpdata/en/c6/617cd9e68c11d2b2ab080009b43351/content.htm]

Read only

Former Member
0 Likes
680

hi:

[watch point|http://help.sap.com/saphelp_nw70/helpdata/EN/f1/792442db42e22ce10000000a1550b0/content.htm]

Regards

Shashi

Read only

Former Member
0 Likes
680

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.

Read only

Former Member
0 Likes
681

Hi Sridhar

Did u checked the Varun's thread.It will explain you the WATCH POINT concept very clearly

Regards

Sachin