Select options excessively large
I'm having a performance problem with this select
SELECT matnr mtart FROM mara INTO CORRESPONDING FIELDS OF TABLE it_materiais WHERE matnr IN s_matnr AND lvorm NE 'X'.
S_matnr is a select option, and when it's excessively large I get a dump.
The addition FOR ALL ENTRIES only works for internal tables...
Any idea how can I solve this issue?
Thanks in advance for any help.