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

Watchpoint help

Former Member
0 Likes
1,053

I am processing a internal table which has got more than 10 lakh records. When I executed the program in background i found that the control is getting struck at record 89,998 and its stuck for more than an hour from now. So I started debugging the program in foreground, and created a watchpoint for Sy-TABIX for the value 89,998. But the control is not going to the required postion. Can anyone explain to create a watchpoint so that I debug why the control is stuck over there.

Regards

Ganesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,016

Hi Ganesh

Try this:

IF SY-TABIX EQ '89998'.

BREAK-POINT.

ENDIF.

Place this in you LOOP AT <itab> statement.

Regards

9 REPLIES 9
Read only

Former Member
0 Likes
1,016

hi Ganesh,

Try placing even before that i.e, at 89,990 or 89,995.

Regards,

Santosh

Read only

0 Likes
1,016

I did that but putting at 88,000. But the control is not stopping.

Read only

Former Member
0 Likes
1,016

Hi!

You can enter values for the breakpoints in the abap debugger.

Go into debug mode with /h. Set a breakpoint into the LOOP.

Click on the breakpoints button. You'll see your breakpoint in the table. There's an empty fields beside your breakpoint, write the number into it (f.e. 89985) and press enter. Then F8 and your program will stop after the 89985th loop.

Regards

Tamá

Read only

0 Likes
1,016

did that just now.. no out come of that.

Read only

0 Likes
1,016

The control is still looping sequential rather than jumping the condition for which i have created the watchpoint.

Read only

Former Member
0 Likes
1,016

hi,

Can you try this.

pass the sy-tabix to a variable in the internal table and keep a watch point for the variable at your record number.

Br,

Laxmi

Read only

Former Member
0 Likes
1,017

Hi Ganesh

Try this:

IF SY-TABIX EQ '89998'.

BREAK-POINT.

ENDIF.

Place this in you LOOP AT <itab> statement.

Regards

Read only

0 Likes
1,016

I could have done that. But now the code is already in quality box (the only place where we are facing the problem, no problem with any of the settings everthing has been cross checked more than twice by the BASIS guys). I dont have rights to re-transport the program.

Read only

Former Member
0 Likes
1,016

I didnt had any choice, and took help of my colleagues to actually go to that record by debugging sequentially. I didnt had any other better solution.