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 Debugger

Former Member
0 Likes
1,228

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.

11 REPLIES 11
Read only

Former Member
0 Likes
1,174

Hi Isaac,

Go through the following documentation:

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

Regards,

Nitin.

Read only

Former Member
0 Likes
1,174

hI

U need to set a watchpoint for IT_BSEG-BELNR = 1500023411

Max

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,174

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

Read only

naveen_inuganti2
Active Contributor
0 Likes
1,174

Hi,

[Watch Point Can solve your Problem|;

Read only

Former Member
0 Likes
1,174

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.

Read only

Former Member
0 Likes
1,174

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.

Read only

Former Member
0 Likes
1,174

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

Read only

Former Member
0 Likes
1,174

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.

Read only

Former Member
0 Likes
1,174

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.

Read only

0 Likes
1,174

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!

Read only

0 Likes
1,174

Hi Isaac,

Check this link for how to set watchpoint in new debugger...

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6f9c88ed-0601-0010-269f-a7269504...

Sachin