How many entries can we put in the select options

Hi all,
As per  my requirement I am trying to store the data in the select-option( s_kunnt)  as below
select kunnr from kna1 into (l_kunnr) where
            and spart in p_spart.
  move 'I'         to s_kunnr-sign.
  move 'BT'        to s_kunnr-option.
  move l_kunnr to s_kunnr-low.
  move l_kunnr  to s_kunnr-high.
  append s_kunnr.
endselect.
Using s_kunnr in the select statement to fetch the data.
When the customer numbers are more than 1800 in the s_kunnr, select statment going to the dump. Is number of entries in the select options are restricted for some count( around 1800)?.
How many entries can we put in the select options?
Thanks
Regards
Raj.

Firstly, there is an error in your code. You should do the following instead:
move 'I' to s_kunnr-sign.
move 'EQ' to s_kunnr-option.
move l_kunnr to s_kunnr-low.
append s_kunnr.
To answer your original question, the limit depends on the field width you are using in the ranges. If the field width is small, you can have thousands of entries in the range table.
The limitation is in the length of the SQL statement string generated by the ABAP OPEN SQL engine. With the way I defined it above, the statement would have WHERE KUNNR IN ( 'value1', 'value2', 'value3'). With way you defined it, it would have WHERE KUNNR BETWEEN 'value1' and 'value1' and KUNNR BETWEEN 'value2' and 'value2'.
When the range table is so large that it results in a short dump, you should look into FOR ALL ENTRIES option of SQL.

Similar Messages

  • How many columns can be used in the SELECT Statment

    Hi all,
    How many columns can be used in the SELECT statement?
    Ex: SELECT x1,x2,....xn FROM <table_name>;
    Thanks,
    GowriShankar.N

    Let me join ;-)
    SQL> select * from v$version;
    BANNER
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - Production
    PL/SQL Release 9.2.0.6.0 - Production
    CORE    9.2.0.6.0       Production
    TNS for Linux: Version 9.2.0.6.0 - Production
    NLSRTL Version 9.2.0.6.0 - Production
    SQL> DECLARE
      2  l_sql varchar2(32000);
      3  begin
      4  l_sql := 'CREATE TABLE T(';
      5  for i in 1..999 loop
      6  l_sql := l_sql ||'C'||i||' NUMBER,
      7  ';
      8  end loop;
      9  l_sql := l_sql||'C1000 NUMBER)';
    10  EXECUTE IMMEDIATE l_sql;
    11  end;
    12  /
    PL/SQL procedure successfully completed.
    SQL> select count(*) from cols where table_name = 'T';
      COUNT(*)
          1000
    SQL> insert into t(c1) values(1);
    1 row created.
    SQL> select *
      2  from t t1,t t2;
            C1         C2         C3         C4         C5         C6         C7         C8         C9       
    ...   snipped
    C991        C992       C993       C994       C995       C996       C997       C998       C999         C1         C2         C3       C4         C5         C6         C7         C8         C9        C10       
    ...   snipped
    C990       C991       C992       C993    C994        C995       C996       C997       C998       C999
    ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ---------- ----------          1
                                                                                                                                        1
    SQL>
    SQL> select count(*) from (
      2  select * from t t1,t t2)
      3  ;
    select * from t t1,t t2)
    ERROR at line 2:
    ORA-01792: maximum number of columns in a table or view is 1000Obviously, inline view is obliged the same restrictions as a view, but select list is not constrained.
    Best regards
    Maxim

  • About how many CDs can I put on my hard drive before it effects the performance of me iMac/

    About how many CDs can I put on my hard drive before they effect the performance of my imac?

    Well, it depends on how much content is on the CD. You should have, at a minimum 10 - 15 GB of empty hard drive space at all times - more is much better. I do a fair amount of video/graphics editing and in order to render and burn properly, I need at least as much empty hard drive space as I have files in my current project, which usually means at least 150 GB or more. So, to be safe, my goal is to have a minimum of 250 GB empty space at all times - the OS will thank you if it has more room to work with.
    So, add up what you want to put there and keep watching your hard drive space diiminish - it's best to have space hogging files on an external hard drive to keep your internal working well.

  • How many song can you put on your ipod with 16 gb

    how many song can you put on a 16 gb ipod

    With overhead for the software, the 16GB Nano has 14.88GB useable. I have 1,968 songs on mine, using 9.5GB, leaving 5.4 free. Assuming that all 1,968 songs are approximately the same length and size (which of course they aren't ), that would leave me room for ~1,118 more songs for a total of 3,086 songs.

  • How many macs can i put logic on ??

    how many macs can i put logic on ??
    and can i extend the serial ??

    Welcome to Apple Support Communities
    If you purchased Logic in the Mac App Store, you can install it in all your Macs without any problem and paying once. Also, you can redownload it as many times as you want

  • How many computers can i put a copy of dreamweaver on?

    how many computers can i put a copy of dreamweaver on? I am wanting to put it on my home couputer, laptop and work computer
    Am i able to do this with one serial number?
    Thanks

    Can be installed on two computers using the same serial number.
    http://www.adobe.com/products/eulas/pdfs/Gen_WWCombined-combined-20080623_1026.pdf
    2.4 Portable or Home Computer Use. Subject to the important restrictions set forth in Section 2.5, the primary user of the Computer on which the Software is installed under Section 2.1 (“Primary User”) may install a second copy of the Software for his or her exclusive use on either a portable Computer or a Computer located at his or her home, provided that the Software on the portable or home Computer is not used at the same time as the Software on the primary Computer.

  • How many pictures can i put on my new ipad

    ON MY NEXT TRIP HOW MANY PICTURES CAN I PUT ON MY NEW PAD    DO I THEN DOWNLOAD TO A SD CARD?

    chasfaul wrote:
    ON MY NEXT TRIP HOW MANY PICTURES CAN I PUT ON MY NEW PAD   
    Theoretically - you can put as many photos on the iPad as you have storage capacity left. The number of photos will vary depending upon what else you have on the iPad.
    DO I THEN DOWNLOAD TO A SD CARD?
    If you have the CCK (camera connection kit sold by Apple) and that is what you want to do, that is one option. You can import the photos to your computer as well when you get home.
    Read this for more information on importing.
    http://support.apple.com/kb/HT4083?viewlocale=en_US&locale=en_US
    More information about the CCK
    http://support.apple.com/kb/HT4101
    http://store.apple.com/us/product/MC531ZM/A/apple-ipad-camera-connection-kit

  • How many computers can I put CS5 Production Premium on?

    How many computer can I put CS5 Production Premium on if I were to buy it for my company?

    frome Adobes "End-user license agreements - FAQ" - http://kb2.adobe.com/cps/195/tn_19592.html
    Can I use my software on two computers?
    If you own, or are the primary user of, a single-user or volume license Adobe product that is installed on a computer at work, you can also install and use the software on one secondary computer of the same platform at home or on a portable computer. However, you may not run the software simultaneously on both the primary and secondary computers.
    so the answer must be Yes :-)

  • How many itens can I put inside a JComboBox or JList?

    How many itens can I put inside a JComboBox or JList?
    Thanks
    Renato de Melo

    Lots. I have put 10,000 in one, for example. !!! ComboBox with 10,000 items how did you solved
    scrolling slow down problem in ComboBox.
    I'm trying for weeks to speed up JComboBox
    what I did was
    1) I've created custom model with sorted
    items and I'm using binarySearch for getting and setting
    items in model this greatly improved performance
    2) I'm using setPrototypeDisplayValue(Object obj)
    function
    but still scrolling with arrow keys and PgUp,PgDown
    is too slow especialy in the end of the list.
    Any ideas ?

  • How many songs can I put into iTunes?

    How many songs can I put into iTunes? I have about 100,00 tracks and I wnat the convenience of having them all in the library but not if it bogs down the software. Is there a limit to how many iTunes can handle?

    Not sure if you meant 10,000 or 100,000 but iTunes will cope with either. Obviously as the size of the library increases there will be some impact on performance. A key factor is the number playlists that you create as these often need to be revaluated each time you add, play or remove a track. Excessive playlists with a large library tends to slow things down.
    tt2

  • How many computers can i put all my ipod info on

    how many computer can i put all my ipod info on

    sandman619 wrote:
    You are allowed up to 5 devices to be associated with your iTunes account
    Not true...you can sync as many devices as you want to the same iTunes account, there is no limit.
    A device is an iPhone, iPad, iPod, Mac or windows PC
    Again, false...devices are NOT computers.
    You might want to educate yourself before posting wrong information.

  • On how many idevices can i put my icloud?

    on how many idevices can i put my icloud?
    the same user......

    All your devices.
    Good article >   http://www.macworld.com/article/160380/2011/06/icloud_what_you_need_to_know.html

  • How many devices can I put my PSE on?

    If I purchase the software, how many computers can I put PSE on?

    And if one of my laptops doesn't have a DVD drive, can I download and use the serial number?

  • How many threads can be running at the same time

    Hi!!
    Dows anyone knows how many Threads can be running at the same time in the JVM.
    I'm making a multi thread client-server app and I would like to know how much simultneous connections the JVM support. I'm using one Thread per connection.

    Hi, thanks to all for your answers.
    I think that I made the wrong question, as you said: "that means the number of threads currently created".
    I'm worry about this because my application is already online (It's a mail server -SMTP and POP3 server using ORACLE for the users database- ) and some other user post in the "multi-tread forum" that almost any JVM can only have 700 threads created at the same time, and I've never heard or read anything about this.
    what you mean with the stack space (memory??)
    I'm using the JavaWebServer 2.0 and a servlet to start the main Thread.
    Again Thanks to all for the answers but I think that the schapel answer is the one that solve my doubt...

  • How many times can you restore from the same backup?

    how many times can you restore from the same backup?

    As many times as you want till you delete or modify it.
    It's YOUR backup, a copy of all your stuff.
    Not some copyrighted, access controlled bunch of bytes representing a picture, a song or a movie, with a bunch of lawyers from the entertainment maff1a hellbent on restricting what you can do with it.

Maybe you are looking for