Hi Jerry,
Thanks for taking out some time to help me with my question. Actually i dont need to use the IN command but rather 'between' command because from the UI the end user would pass a range.
As you suggested I tried creating a input parameter and used it as:
AND B.MATNR = :ls_matnr_low
I created this parameter by choosing parameter type as column type and gave MATNR as refrenced column. This works if i pass only 1 matnr. But now the problem is i need to pass a range of matnr.
I tried creating 2 input parameters and changed the query in such a way
AND B.MATNR between :ls_matnr_low AND :ls_matnr_high
But now it is not working at all and does not return anything. I tried creating the parameter as direct or column type but no help.
Thanks,
Ashish