Skip to Content
Former Member
Feb 26, 2007 at 04:07 PM

How escaping "_" in a cond_syntax


Hallo experts,

I have a dynamic query like

data: c_column(3) type c value 'row'.

data: l_condition type string.

data: l_help_val type string.

I fill for example l_help_val with l_help_vla = 'test_test%'.

concatenate c_column 'like l_help_val'

into l_condition_2 separated by space.

select * from table query

into wa_adzbegu

where (l_condition).

I want to escape only the character '_' in where condition. In sql I would say 'test_test%'. But it doesn't work.

In Abap documenation there I found something with 'escape esc' but don't know how to implement.

Thank you


Jürgen Löwenstein