Hi gurus,
simple, dumb question: how to use the SHIFT TO statement on a string which contains apostrophes as markers of the interest section?
Example: the string is the following:
This is just an example of text in which the significant part is = to 'THIS ONE'. More text can follow here...
I do this prelimary check: the string must contain an '=' sign.
I do this using shift too:
SHIFT string UP TO '='.
and checking subsequently the sy-subrc value.
Now, I have the substring:
= to 'THIS ONE'. More text can follow here...
and I'd like to shift to the first apostrophe.
I tried to use the escape sequence for the apostrophe in this way:
SHIFT string UP TO ''. " this should be the escape seq for '
but this doesn't seems to work, it just shift one char right.
Does anyone has a way to obtain this?
Btw, the task is to get the string
THIS ONE
Obviously, this string is dynamic (tried to check for pattern matching since this string satisfies the condition on being in the middle of single apostrophes, but again, no luck 😊.