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

Runtime error ..

former_member192432
Participant
0 Likes
702

Hi,

I am getting error message as "Error in module RSQL of the database interface. The SQL statement generated from the SAP Open SQL statement violates a restriction imposed by the underlying database system of the ABAP system." for below select query..

SELECT PSPNR entryno from zps_plan into TABLE gt_entryno1

WHERE pspnr IN r_pspnr

and rundate = sy-datum

and Vbukrs = p_vbukr

and stufe IN r_stufe .

sort gt_entryno1 by pspnr .

please tell me how to solve the problem .

Regards

chetan

Moderator message - Moved to the correct forum

Edited by: Rob Burbank on Dec 10, 2009 9:34 AM

1 ACCEPTED SOLUTION
Read only

nirajgadre
Active Contributor
0 Likes
661

Hi,

check the field sequence and data type of the selection and the internal table is same or not

4 REPLIES 4
Read only

nirajgadre
Active Contributor
0 Likes
662

Hi,

check the field sequence and data type of the selection and the internal table is same or not

Read only

Former Member
0 Likes
661

Please check if the internal table has the same field sequence and same number of fields as you use in select query.

Or use

into corresponding fields of.

Regard,

Lalit Mohan Gupta.

Read only

former_member192432
Participant
0 Likes
661

hi i used for all entries instead of RANGES , the problem is solved

Read only

Former Member
0 Likes
661

Hi Chetan,

This error occurs due to inconsistency in the physical definition at the DB level - usual reason being a problem with the table extents for the DB Table in consideration.

Please approach the concerned Basis team with the Table name and the Dump - the issue should be resolved.

Following this, the select will work fine.