‎2007 Jun 04 8:45 AM
Hi,
When i execute the below code, the output is displayed without any problem.
<b>tables lfa1.
select * from lfa1 order by lifnr.
write / lfa1-lifnr.
endselect.</b>
But however when i debug this piece of code, i get an error as below.
ShrtText - Invalid interruption of a database selection
Runtime Errors - DBIF_RSQL_INVALID_CURSOR
Exceptn - CX_SY_OPEN_SQL_DB
Can anybody help me with the reason for the occurence of this problem.
‎2007 Jun 04 9:06 AM
‎2007 Jun 04 8:50 AM
‎2007 Jun 04 8:59 AM
Hi,
select .. endselect. dumps the first time only when in debugging mode!
Regards,
Sooness
‎2007 Jun 04 9:01 AM
HI,
you cannot put break point inside SELECT and ENDSELECT.
Because system will miss the cursor index.
Regards,
Naveen
‎2007 Jun 04 9:04 AM
Hi
The reason may be You put a break-point between SELECT and ENDSELECT..It will always gives you a Shortdump because you are trying to interrupt an SQL statement. Take out the Breakpoint from the middle of select endselect and try it somewhere else in the program. This time your debugger will work perfectly.Otherwise if you want to use Debugger in between the Select and Endselect use it after an appending.
Reward All Helpfull answers....
‎2007 Jun 04 9:06 AM
‎2007 Jun 04 9:08 AM
Hello Vijay
You can debug a SELECT - ENDSELECT loop but you have to use <b>F6 </b>(and not F5) for step-by-step debugging.
Regards
Uwe