Application Development 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: 

debug

Former Member
0 Kudos

why does it dump when we try to debug and select endselect?

5 REPLIES 5

Former Member
0 Kudos

Because you try to debug the SQL command which is not uspported by ABAP debugger.

Reward points if useful.

Regards,

Atish

Former Member
0 Kudos

Hi Kotireddy ,

The reason for it is given in the help for select statement .

Here is the reason specified.

<b>If a SELECT - ENDSELECT loop contains a statement that triggers a database commit, the cursor belonging to the loop is lost and a program termination and runtime error occur. Remote Function Calls and changes of screen always lead to a database commit.</b>

Hope this helps.

Regards

Arun

Former Member
0 Kudos

Hi Koti,

1.when the specified value not exist in the table ( where condition value)

2.even when u try to fetch huge records from database....it may goto shortdump...

3.datatype mismatch....

4. when INTO CORRESPONDING not used....

Regards..

Balaji ( assign points if this helps u ...)

Former Member
0 Kudos

Don't try to debugg the select st.

u can check sy-subrc or internal tables...

Former Member
0 Kudos

Hi koti,

I like to add one more point...

when a breakpoint is applied at select loops can cause an exception thru loss of databse cursor. The reason for this is that during debugging a database commit is triggered and cursor is lost...

Regards.

Balaji ( assign points if this helps u ....)