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

Entries in Select-Options Range

Former Member
0 Likes
759

Hi Experts,

I am experiencing short dump if i give more no of entries in select option (in range)

can any one please suggest a solution to this?

Points will be awarded.

Thanks

Dany

Hi Experts,

I am experiencing short dump if i give more no of entries in select option (in range)

can any one please suggest a solution to this?

Points will be awarded.

Thanks

Dany

5 REPLIES 5
Read only

former_member194669
Active Contributor
0 Likes
729

Hi,

May be because of number entries in the select-options ,As far as I know the limit is determined by the length of the whole sql statement and is about 8k(aprox)

Please see the note : 635318

Thanks

aRs

Read only

Former Member
0 Likes
729

Hi Dan,

Please try to use ranges instead of select option.

DATA: R_MATNR FOR MARA-MATNR.

R_MATNR-SIGN = 'I'.

R_MATNR-OPTION = 'BT'.

R_MATNR-LOW = ...

R_MATNR-HIGH = ...

APPEND R_MATNR.

...

Regards,

Ferry Lianto

Read only

0 Likes
729

Hi Ferry,

Thanks but i need to use select options or some way to show my selection for that field on the the screen or any GUI.

Could you help me in some way?

Hi Ars : I dont know how to see the OSS notes basically and what does note 635318 says?

Thanks

Dany

Read only

former_member194669
Active Contributor
0 Likes
729

Hi,

Can you please paste first few lines of your short dump here?

Thanks

aRs

Read only

Former Member
0 Likes
729

Maximum number of entries in select options is only around 1630, you cannot give more than that

i guess it is around 1600 - 1700

chk this program , if u increase the do loop to 1800 it will give dump

REPORT ychatest LINE-SIZE 350.

TABLES : mara.

SELECT-OPTIONS : s_matnr FOR mara-matnr.

DATA : BEGIN OF itab OCCURS 0.

INCLUDE STRUCTURE mara.

DATA: END OF itab.

DO 1600 TIMES.

s_matnr-sign = 'I'.

s_matnr-option = 'BT'.

s_matnr-low = ''.

s_matnr-high = ''.

APPEND s_matnr.

CLEAR s_matnr.

ENDDO.

SELECT * FROM mara INTO TABLE itab WHERE matnr IN s_matnr.

WRITE : 'hi'.

Message was edited by:

Chandrasekhar Jagarlamudi