‎2008 Jan 15 9:27 AM
hi,
i have 600 rows in my internal table which contains material no.s and its related data.i want to debug the data for 400th row .how can i go directly to 400th row in debugging instead of going each row in 'LOOP AT' statement.please suggest.
‎2008 Jan 15 9:29 AM
Set a Watchpoint on sy-tabix = 400.
Or add some coding within your loop:
If sy-tabix = 400.
breakpoint.
endif.
Regards,
Michael
Please mark question as answered if so...
‎2008 Jan 15 9:29 AM
Set a Watchpoint on sy-tabix = 400.
Or add some coding within your loop:
If sy-tabix = 400.
breakpoint.
endif.
Regards,
Michael
Please mark question as answered if so...
‎2008 Jan 15 9:46 AM
‎2008 Jan 15 9:50 AM
When you are in the debugging mode there is a button that says "create watchpoint". (Or hit Shift-F8)
A popup will show where you enter the field name (here: sy-tabix), the comparison operator ('EQ') and the comparison value ('400').
That´s it.....
‎2008 Jan 15 9:51 AM
Hi
Start your code in debugging mode
Press the button Watchpoint there in Application bar
The give value in field name
then give the relational operator
then the comaprison operator
then it will stop when u will be at 400th row
regards
hitesh
reward if helpful
‎2008 Jan 15 9:34 AM
Hi
Please check with sy-tabix
if sy-tabix = 400
regards
hitesh
‎2008 Jan 15 9:36 AM
‎2008 Jan 15 10:08 AM
2. Watch Point.
If you want to interrupt a program when the contents of a field or structure change, use a watchpoint. You can set up to five watchpoints, including watchpoints for strings.
(For this, we have to give some
VARIABLE NAME & VARIABLE VALUE - with relational operator)
When this CONDITION gets satisfied,
(anywhere during the execution of the program),
the system will AUTOMATICALLY STOP THERE.
(EG when the value of matnr reaches the specified value)
That is the purpose of WATCHPOINT
(the system will WATCH it, like a dog)
Please go through this link:
http://help.sap.com/saphelp_nw04/helpdata/en/c6/617cdce68c11d2b2ab080009b43351/content.htm