Skip to Content
0
Former Member
Jan 02, 2008 at 09:52 PM

Type range of

12305 Views

Hi,

I am trying to create a range object using type range of decalration in a class, but when trying to select data using the range object as one of the condition the program throws an error stating "The in operator with it_pernr-low is followed be neither by an internal table nor by a value list".Listed below is the sample code

data: it_pernr type range of p0001-pernr,

wa_pernr like line of it_pernr.

wa_pernr-low = '343243'.

wa_pernr-sign = 'I'.

wa_pernr-option = 'EQ'.

append wa_pernr to it_pernr.

wa_pernr-low = '12343'.

append wa_pernr to it_pernr.

select * from pa0001

into table it_p0001

where pernr in it_pernr.

If I cannot use the "in it_pernr" because it does not have a header line then what would be the alternative efficient solution. All answers wud be awarded suitably.

Thanks

Vick

This is a duplicate post, I accidentally posted it in the wrong place. Will close both the posts once answered

Edited by: vick vennav on Jan 2, 2008 10:58 PM