Skip to Content

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

Can you define "single quote" character as a constant

Hello all,

I want to do something like this:

CONSTANTS: q type c value ' .   " << thats a single quote character
DATA: final_string type string,
          VAL1(12) type c,
          VAL2(12) type c. 

concatenate q val1 '-' val2 q into final_string. . 

How can I define the single quote character as a constant?



Hello Vik,

If you read Rainer's blog on character v/s string processing,

' ' => character processing, ` ` => string processing.

I forgot about this Anyways i have even more elegant solution,

Declare ' as a text-symbol :-D


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