Skip to Content
0
Former Member
Oct 29, 2007 at 08:07 AM

How can I detect a certain text within a field within CASE using IF

14 Views

Dear all,

for a transformation / generation of values receiving from R/3 into BW I try to

manupulate three fields. I have a problem detecting a string in a field.

I am using a CASE with several WHEN clauses on one field. Depending on the

value, an IF is integrated. There I look into another field evaluating, if it contains

a certain string. E.g. IF STRING CP 'xyz' OR 'abc'.

System gives error for the locigal expression. I also tried CS, but same error.

How can I detect a certain text within a field and which is the right logical

expression.

Many thanks in advance!!!

Claudia