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?


  • SAP Moderator

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