‎2008 Nov 16 4:44 PM
Hi Experts
I want to write a dynamic select , with a dynamic where clause that get the data from a reange table.
the ranges table looks like :
sign option low high
I NE 103
I BT 100 105
I EQ 100I try select with IN in the where clause but it doesn't work :
SELECT * FROM pa0003
INTO TABLE pernr_table
WHERE pernr IN range_emp.Where range_emp is the name of the ranges table .
any help pls
‎2008 Nov 16 4:58 PM
‎2008 Nov 16 4:58 PM
‎2008 Nov 16 5:06 PM
‎2008 Nov 16 5:18 PM
The third entry isn't necessary - there is a logical OR between entries in a range. Assuming the data actually exists, chances are you need to convert to leading zeros.
look at function modules
CONVERSION_EXIT_ALPHA_INPUT
CONVERSION_EXIT_ALPHA_OUTPUT
matt
‎2008 Nov 23 8:08 AM