Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to pass selection option in dynamic where clause

I have to pass select option in dynamic where clause(i_where) of a select query in 4.6c as follows.

SELECT kschl

FROM <Database table>

INTO TABLE ITAB

WHERE (i_where).

In the program, i_where is getting populated as below

WHERE MATNR IN S_MATNR and

VKORG IN S_VKORG.

But its giving short dump in select query, If I hard code the select option values, it is working fine. How to pass selection options in dynamic where clause as required above.

Thanks in Advance for your help!!!

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question