A string is stored as a literal which contains the characters for an embedded expression.
For example:
'HELLO { sy-uname }!'
When the string is retrieved, I'm looking for a way for it to be processed as a string template. From my attempts no luck so far - but I'm hoping someone has an idea:
data(literal) = 'Hello { sy-uname }'. "or '|Hello { sy-uname }|'.
data(string1) = |{ literal }|. "or data(string1) = |\|{ literal }\||.
cl_demo_output=>display( string1 ).