Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

contains not only


I have a field with value '----' or '--+'. I want to check the values of the field with:

IF field cn '+-'.
*go on with further process.

what I want to have is that only values are consider which have not only '+-' as field value.

the problem is that he ignore the cn expression, so if my field has a value of '-' it jumps in the if expression?

Any idea how to solve this problem?

thanks a much.


You have declared your fieds as character with a length greater than 4 (or 1) and so it is looking at the trailing spaces. Declare your fields as string.


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question