Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

string concatenation

Former Member
0 Likes
590

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
569

Hi Pooja,

Do like this,

CONCATENATE ''''(4 '(Single Quotes) ) 'ABC' ''''(4 '(Single Quotes) ) into v_string .

Regards,

Raghav

4 REPLIES 4
Read only

Former Member
0 Likes
570

Hi Pooja,

Do like this,

CONCATENATE ''''(4 '(Single Quotes) ) 'ABC' ''''(4 '(Single Quotes) ) into v_string .

Regards,

Raghav

Read only

venkata_ramisetti
Active Contributor
0 Likes
569

Hi,

You can write like this...

CONCATENATE ''' 'ABC' ''' INTO V_FIELD.

THANKS

RAMAKRISHNA

Read only

Former Member
0 Likes
569

Hi Pooja,

data: var type char3 value 'ABC',

var1 type char5.

concatenate '''' var '''' into var1.

write: var1.

Reward points if this helps.

Manish

Read only

Former Member
0 Likes
569

Hi,

Here is the code.

REPORT ZTTTTTTTT.

data v_1(10) type c.

concatenate '''' 'ABC' '''' into v_1.

write v_1.