Skip to Content
0
Former Member
Aug 05, 2011 at 03:55 AM

dynamic SQL

31 Views

hello Gurus,

i am working on dynamic sql and somehow i am not able to understand where my sqk is going wrong. please help

here is the scenario

query is

select ( v_list ) from ( v_from ) into table <table> where <v_where> group by <gb_where>

v_list = min( marcmatnr) marcwerks

v_from = marc

v_where = marc~matnr > '1001

gb_where = marc~werks

i have checked these values in Debug which looks correct to me but it is throwing me

CX_SY_DYNAMIC_OSQL_SEMANTICS this error

i have executed this sql without dynamic query and with actual value its going fine but not with dynamic

please help!!!!

regards,

Khushy