2014 Nov 27 11:09 AM
Hi Experts ,
I am debugging an Bapi Program with plenty of records ,my internal table has 250 records, i would like to debug 200th record , as i
know that error would be in that record , is there any direct method to jump to 200 th record,how can it be achieved?
Please suggest any other debugging techinques, points will be rewarded.
Thanks
Prakash .J
2014 Nov 27 12:24 PM
Hello,
You can still set up your watchpoint. If it gets triggered at every turn, the use the skip parameter in debugger:
In your case, put 200 in this field and it will not stop for the first 199 times.
2014 Nov 27 11:17 AM
Hi Prakash,
Try set a watching point when you debugging, condition is 'SY-TABIX EQ 200'.
regards,
Archer
2014 Nov 27 11:24 AM
HI Zhyang ,
Thanks for the answer , but my loop consists nested loops,watchpoint is getting triggered
for all nested loops, any more better way.
Thanks,
Prakash Rao
2014 Nov 27 12:05 PM
creation of watchpoint is the only option to jum to specific record. If you know unique valuen for that record, create a watchpoint for the same instead of creating on the basis of sy-tabix.
e.g. wa_mara-matnr = '2100000123'.
2014 Nov 27 11:59 AM
Hi,
Watch point is the better option if u can manage to put. Other way, may be u can delete all other entries by selecting them all in one go and then uncheck the one u want to keep and select delete entries button in new debugger.
2014 Nov 27 12:04 PM
Check the primary keys of the 200th record. Use conditional watchpoint for the workarea or table line variable writing those. You can write 'AND' conditions in watchpoint to get the exact entry.
2014 Nov 27 12:24 PM
Hello,
You can still set up your watchpoint. If it gets triggered at every turn, the use the skip parameter in debugger:
In your case, put 200 in this field and it will not stop for the first 199 times.
2014 Nov 28 2:13 AM
Just tested what you said, it works great. I like this 'Skip'. thanks.
regards,
Archer
2014 Nov 28 9:18 AM