Skip to Content
0
Former Member
Jan 25, 2007 at 06:29 AM

Dyanamic Where with IN Clause

13 Views

Hi,

I have written the following query

SELECT (list) FROM (t_condtables-tabname)

INTO CORRESPONDING FIELDS OF TABLE <dyn_table>

FOR ALL ENTRIES IN itab_kschl

WHERE kschl = itab_kschl-kschl AND

(lt_table).

when I passing the dyanamic where clause as folows

lt_table means ( KAPPL = ' V ' and vkorg in s_vkorg and kschl in s_kschl )

I am getting the error in "IN" clause , Please suggest how to pass "IN" clause in the above senario as the sap understand IN clause as Fieldname in (o1,o2,o3) like but I have to pass as select option (Select options I have already declared)

thanks