Application Development 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: 

watch point?

Former Member
0 Kudos
121

Hi, All:

when use watch point, how to set paticular value for variable.

thanks in advance

6 REPLIES 6

Former Member
0 Kudos
90

hi,

For watchpoints, we need to give some condition and when this condition is satisfied, program will stop

example : if you want to debug only

for matnr value 100 than set watch point

matnr = 100. when value reaches 100 than

program stops at that point.

more at

http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm

Regards,

Omkaram.

Former Member
0 Kudos
90

Hi

You have to define the condition

for a particular field

say for example you have an internal table for sales orders there are some 1000 orders , you have search for a particular order

give that field name ITAB-VBELN

give the assign symbol =, or <>

and give the value '324567'.

and execute

it will stop at that point

Reward points if useful

Regards

Anji

Former Member
0 Kudos
90

Hi,

Check the following link:

http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm

Hope this helps.

Reward if helpful.

Regards,

Sipra

former_member187255
Active Contributor
0 Kudos
90

A watchpoint can be either local or global. Local watchpoints are only valid in the specified program. Global watchpoints are valid in the specified program, and also in all the other programs it calls.

Procedure

To set a watchpoint, start the Debugger and proceed as follows:

1. Choose Breakpoint-> Create watchpoint or

the corresponding pushbutton.

The Create Watchpoint dialog box appears:

2. Decide whether you want to set a local or global watchpoint.

3. Enter the program and the name of the field for which you want to set the watchpoint. In the Program field, the name of the program currently running is always defaulted.

4. If you want your watchpoint to be activated each time the contents of the field change, the definition is now complete, and you can return to the Debugger by pressing ENTER .

5.To create a conditional watchpoint, that is only activated when a particular situation arises, choose one of the following relational operators.

Operator meaning

< Less than

> greater than

similarly <= , = , <> ,>=.

6. You can use the Comparison field option to specify whether the comparison is to be carried out with a value that you specify or with the contents of another field.

result

The system confirms the watchpoint and adds it to the list in the display. When you finish your debugging session, the watchpoint is automatically deleted unless you have explicitly saved it.

Former Member
0 Kudos
90

Watch point will be set for particular field,

one example : you have one internal table and it will have so many fields

you want to stop on particular record and you need debug..

now create watch point and give yout field name (i_itab-matnr) and use compare value..

GOTO Debuugger and click on watch point and give ur fields ..

Reward Points if it is useful

Thanks

Seshu

Former Member
0 Kudos
90

Hi,

watch points can be set to check when a particular variable receives a particular value or say when there is a change in the value of a variable in the program.

To create a watchpoint when you enter the debugger screen go to Breakpoint Menu and create watchpoint or there is a create Watcpoint button on the application toolbar as well. It asks for the field name which is compulsory and the comparison value which is the value you want the program to break execution on. it is not mandatory.