Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2638

Pattern in Range to be used in Select Query

$
0
0

Hi All,

 

I have a requirement where I need to find a range of values for a particular pattern. The pattern is 41*001A*.

 

I have populated the range as follows :

 

CONCATENATE s_area-low '**' s_aisle-low s_binlvl-low '**' INTO lv_bin2.

       CONDENSE lv_bin2.

       r_bins_line-sign = 'I'.

       r_bins_line-option = 'CP'.

       r_bins_line-low = lv_bin2.

       APPEND r_bins_line TO r_bins.

       CLEAR: r_bins_line, lv_bin2.


I have used this in the select query as follows:

SELECT lgpla

         FROM lagp

         INTO TABLE it_bins

         WHERE lgnum = 'JBG'

           AND lgpla IN r_bins

           AND kzler NE 'X'.


However, I get only 6 values returned instead of 33.


Can you tell me how this can be modified?


Thanks in advance for your help.


Regards

S.Ram


Viewing all articles
Browse latest Browse all 2638

Trending Articles



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