Skip to Content
0
Former Member
Nov 19, 2008 at 11:48 AM

'#' symbol in if condition

100 Views

Hi All,

I want to use '#' in if condition.

i have written the code like this.But it doesn't work for me.

data : test(1) type c value '#'.

CONSTANTS: k_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>HORIZONTAL_TAB.

*CONSTANTS: k_tab TYPE abap_char1 VALUE cl_abap_char_utilities=>HORIZONTAL_TAB.

*write : k_tab.

if test = k_tab.

write : k_tab.

endif.

Can you please teel how to use the # in condition.

Thanks,

Swapna.