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

debug

Former Member
0 Likes
556

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

5 REPLIES 5
Read only

Former Member
0 Likes
536

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

Reward points if useful.

Regards,

Atish

Read only

Former Member
0 Likes
536

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

Read only

Former Member
0 Likes
536

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 ...)

Read only

Former Member
0 Likes
536

Don't try to debugg the select st.

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

Read only

Former Member
0 Likes
536

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 ....)