SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP ABAP

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with doing SELECT sub query within the SET of an UPDATE statement Zoom SAP ABAP 2 01-17-2012 08:41 PM
Problem with BKPF SELECT. Lala SAP ABAP 2 01-04-2012 11:10 PM
Where and Why do we use "for all entries" in select statement nblogs News in SAP blogs 0 12-29-2011 06:52 PM
not getting actual value in loop on select statement SAPMM SAP ABAP 2 03-26-2011 11:19 PM
Select statement not working on table ADRC? Mirna SAP ABAP 2 02-16-2011 11:53 PM

Aprenda SAP!
Reply
 
Thread Tools Display Modes
  #1  
Old 01-25-2012, 07:29 PM
Micro Micro is offline
Senior Member
 
Join Date: May 2010
Location: Boston
Posts: 306
Default Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S

Hi Experts,

I am facing the problem in the select statement where it giving the short dump
DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S.

I have searched many forms, but i found that the select option s_matnr have the limitaion 2000 entreis, but i am passing same s_matnr to other select statement with more than 2000 entries but it is not giving me any short dump.

But i am facing problem with only one select statement where if i pass select option s_matnr more than 1500 entris also giving short dump.

My select statement is:

Code:
SELECT * FROM bsim 
INTO CORRESPONDING FIELDS OF TABLE g_t_bsim_lean 
FOR ALL ENTRIES IN t_bwkey WHERE bwkey = t_bwkey-bwkey
AND matnr IN matnr
AND bwtar IN bwtar
AND budat >= datum-low.
in the internal table g_t_bsim_lean internal table contain all the fields of the table bsim with 2 fields from other table.

Please let me know whether i need to change the select statement or any other solution for this.

Thanks in advance,
Micro
Reply With Quote
Sponsors
  #2  
Old 01-25-2012, 07:31 PM
Portal Portal is offline
Senior Member
 
Join Date: May 2010
Location: Miami
Posts: 791
Default Re: Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S

Hi Micro,

Read the short dump and figure out what you've done wrong....maybe here?

Code:
AND budat >= datum-low.
datum-low is probably initial, since the data is in a table and not in the header of that table...this should be:

Code:
and budat in datum.
Regards,
Portal
Reply With Quote
  #3  
Old 01-25-2012, 07:32 PM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: Facing problem in select statement dump DBIF_RSQL_INVALID_RSQL CX_SY_OPEN_S

Hello Micro,

This is because in your case the WHERE clause is sent to DB with double number of where clauses, as you use also BWTAR field as second range in WHERE clause. So the DB is requested with following selects

Code:
...where ( matnr = mat1 AND bwtar = x1...) OR
         ( matnr = mat1 AND bwtar = x2...) OR
         ( matnr = mat1 AND bwtar = x3...) OR
         ( matnr = mat2 AND bwtar = x1...) OR...
 etc

Try selection on the matnr first and then limit the BWART in a loop at where.

Regards,
Golfi
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:09 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno