![]() |
|
|||||||
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! |
|
|
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
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. Please let me know whether i need to change the select statement or any other solution for this. Thanks in advance, Micro |
| Sponsors |
|
#2
|
|||
|
|||
|
Hi Micro,
Read the short dump and figure out what you've done wrong....maybe here? Code:
AND budat >= datum-low. Code:
and budat in datum. Portal |
|
#3
|
|||
|
|||
|
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 |
| Entre a los Links relacionados |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|