Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

problem with select....where IN statement

$
0
0

Hi,

 

i have the following select-statement in my z-abap:

 

  DATA: s_kostl    TYPE RANGE OF cosp-objnr,

  DATA: s_kstar    TYPE RANGE OF kstar,

.

.

.

 

  SELECT (lv_feldname) INTO lv_betrag

                  FROM coss WHERE lednr = '00' AND

                             objnr IN s_kostl AND

                             gjahr = gjahr AND

                             kstar IN s_kstar AND

                             wrttp = '04' AND

                             versn = '000'.

 

now i get a dump, because s_kostl and/or s_kstar contains about 11.000 entries (DBIF_RSQL_INVALID_RSQL).

 

how can avoid this ? or how i have to 'rewrite' my SQL statment that the ranges-tabs s_kostl AND s_kstar can be processed

correctly ?

 

br, Martin


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>