07-17-2008 1:37 PM
Hi all
I want to comapare like this.
if f1 = 'x' or 'Y' or 'z'.
delete test.
endif.
But i am getting error , can any one tel me how to do this??
Thanks in Advanc
07-17-2008 1:38 PM
hi,
you'll need 3 separate comparisons:
IF f1 = 'X'
OR f1 = 'y'
OR f1 = 'z'.
...
hope this helps
ec
07-17-2008 1:38 PM
hi,
you'll need 3 separate comparisons:
IF f1 = 'X'
OR f1 = 'y'
OR f1 = 'z'.
...
hope this helps
ec
07-17-2008 1:41 PM
HI Please check it.
data: f1 type char01.
f1 = 'z'.
if f1 = 'x' or f1 = 'Y' or f1 = 'z'.
write: 'delete test.'.
endif.
07-17-2008 1:41 PM
if f1 = 'x' or 'Y' or 'z'.
delete test.
endif.
you can do this
if f1 = 'x'
or f1 = 'Y'
or f1 = 'z'.
delete test.
endif.
07-17-2008 3:04 PM
here's one more:
data:
matcher type ref to cl_abap_matcher,
input type string value 'Y'.
matcher = cl_abap_matcher=>create(
pattern = 'x|Y|z'
ignore_case = ''
text = input ).
if matcher->match( ) = 'X'.
write: / 'delete thread'.
endif.
07-17-2008 3:07 PM