cancel
Showing results for 
Search instead for 
Did you mean: 

Need help on Field Routine

former_member184624
Participant
0 Kudos
109

Hi ABAP / BW Experts,y

My requirement is ZFIELD is having the data

R*ahdn

Radhd

*Rfkkk

R%pwew

If the text contains R* or *R or R% then pass the data as R Else it has to pass NO R. I wrote the below line, but i am getting the error message as "E:Relational operator "OR" is not supported."

And also i need to check if two characters are R* OR *R OR R%, then display R else NO R.

IF SOURCE_FIELDS-/BIC/ZFIELD CS '%R' OR '*R*' OR 'R*'.
RESULT = 'R'.
ELSE.
RESULT = 'No R'.

Please suggest.

Thanks.

Sandra_Rossi
Active Contributor

I think it's explained in the ABAP documentation. Press F1 in the editor.

You must repeat the variable name:

IF var CS 'R%' or var CS 'R*' or var CS '*R'.
...
ENDIF.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184624
Participant
0 Kudos

Thank you very much. It is working as expected.