I want to delete entries from an internal table, which has not a "+" in one column. Now, if I want to delete it like this:
DELETE internal_table where field1 <> '+'.
it doesn't work. This means, it takes the "+" as a regex and just selects any character with length 1.
Now I've tried several things:
DELETE internal_table where field1 <> '\+'.
DELETE internal_table where field1 <> |\+|.
DELETE internal_table where field1 <> `\+`.
Nothing of this works. With the String template |\+| I get the error "Unmasked symbol '\' in string template.
Field 1 is a character field with length 1. How can I escape the "+" that only the lines, which have a "+" in field1?
[+]- tstcs(contains string) command?WHERE field1 cs '+'- koks der drache'\\+'- trincotfield1 <> '+'doesn't work if "Field 1 is a character field with length 1"? Can you please post a Minimal, Reproducible Example? - Sandra RossiTYPES: begin of ty, field1(1) type c, end of ty. DATA internal_table type standard table of ty. internal_table = value #( ( field1 = 'A' ) ( field1 = '+' ) ). DELETE internal_table WHERE field1 <> '+'.The line containing A is deleted as expected. - Sandra Rossi