‎2009 Jan 15 11:43 AM
Hi Experts,
I am not sure whether is there any way in ABAP debugger we can set condition in a breakpoint/watchpoint.
For example, I have place a breakpoint in a table loop, it_bseg. There is 100,000 records in it_bseg. I need to see the processing of certain record (eg. 1500023411) without looking at others. What can I do? It is quite impossible for me to click on F8 for 23410 times, am I right?
I did try watchpoint, but I still cannot figure out how to use it. Can anyone shed some light for me?
Thanks so much
Cheers,
Isaac.
‎2009 Jan 15 11:46 AM
Hi Isaac,
Go through the following documentation:
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/frameset.htm
Regards,
Nitin.
‎2009 Jan 15 11:49 AM
hI
U need to set a watchpoint for IT_BSEG-BELNR = 1500023411
Max
‎2009 Jan 15 11:51 AM
Hello Issac,
I hope you have gone through the link in the previous post. I will like to add to that.
If you are trying to reach the watchpoint inside the recurssion (viz. LOOP... ENDLOOP, DO ... ENDDO etc) plz get into the recurssive block once by pressing F5 & after that press F8. It will reach the desired watchpoint.
LOOP AT IT_BSEG INTO WA_BSEG.
..... "--> Get to this point using an F5, after this create a watchpoint with WA_BSEG = <your doc. number> & then press F8
ENDLOOP.
Hope this helps.
BR,
Suhas
Edited by: Suhas Saha on Jan 15, 2009 12:52 PM
‎2009 Jan 15 11:52 AM
‎2009 Jan 15 11:53 AM
if the table it_bseg is a table with header line then set a watch point as : Fieldname : it_bseg-BELNR, Relational operator : = , value: 1500023411 and then click OK button.After that run the code by pressing F8.
Otherwise give the workarea name in Fieldname Fieldname : <workarea>-BELNR.
‎2009 Jan 15 11:54 AM
Hi
plz try this
Press /h before taking any action in the program
By setting up a breakpoint and executing the program
From the ABAP editor initial screen by pressing the debug button
From the Object Navigator (SE80) Select a program and choose Test/Execute from the Development Object menu. The Choose Execution Type dialog box appears. Choose Debugging.
‎2009 Jan 15 11:54 AM
hello isaac,
i'd like to add to max's answer that you should watch out for leading "0".
i had the problem, that i copied a number out of a table and pasted it into the watchpoint value...
the watchpoint didn't work, because of the missing zeros that were cut off the displayd values i copied.
good luck
‎2009 Jan 15 11:54 AM
HI,
In watchpoint set the it_bseg-filedxyz eq 150002341, then processing stops when belnr reaches when that values reaches.
After setting watch point press F8, the processing stops at that point.
Regards,
Phani.
‎2009 Feb 02 7:18 AM
Yes I understand how to use it using 'classic debugger', but i kinda not sure how I can use it during the new ABAP debugger.. seems like a lot of differences.
‎2009 Feb 02 7:29 AM
In the new debugger, after pressing button <Create Watchpoint> you get a pop-up window with button 'No additional Condition'. Press this and next press on button in front of 'Free condition Entry'. This is the help on the new Watch point creation. Generally put, the conditions are now a lot like in ABAP programming itself!
‎2009 Feb 02 7:37 AM
Hi Isaac,
Check this link for how to set watchpoint in new debugger...
Sachin