‎2006 Nov 01 10:46 AM
Hi
I want concatenate quotes to a value.
Ex: 'ABC'
here ABC is a variable. I want to put its value in quotes.
I am using CONCATENATE for this purpose.
CONCATENATE ''' ABC ''' into ........
Can someone tell me the escape sequence for ' ?
Thanks and Regards,
Pooja
‎2006 Nov 01 10:47 AM
Hi Pooja,
Do like this,
CONCATENATE ''''(4 '(Single Quotes) ) 'ABC' ''''(4 '(Single Quotes) ) into v_string .
Regards,
Raghav
‎2006 Nov 01 10:47 AM
Hi Pooja,
Do like this,
CONCATENATE ''''(4 '(Single Quotes) ) 'ABC' ''''(4 '(Single Quotes) ) into v_string .
Regards,
Raghav
‎2006 Nov 01 10:48 AM
Hi,
You can write like this...
CONCATENATE ''' 'ABC' ''' INTO V_FIELD.
THANKS
RAMAKRISHNA
‎2006 Nov 01 10:48 AM
Hi Pooja,
data: var type char3 value 'ABC',
var1 type char5.
concatenate '''' var '''' into var1.
write: var1.
Reward points if this helps.
Manish
‎2006 Nov 01 10:50 AM
Hi,
Here is the code.
REPORT ZTTTTTTTT.
data v_1(10) type c.
concatenate '''' 'ABC' '''' into v_1.
write v_1.