Application Development 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: 

Concatenate Character '

Former Member
0 Kudos

Hi!

i need to concatenate a string with some ' characters. But abap thinks a string is starting oder ending.

So how can i concatenate this character in a string??

Regards,

Anton

1 ACCEPTED SOLUTION

Former Member
0 Kudos

DATA : final TYPE string,

var(3) TYPE c VALUE 'HI'.

CONCATENATE ' '' ' var ' '' ' INTO final.

5 REPLIES 5

Former Member
0 Kudos

repeat it 4 times to get one '

Concatenate '''' 'test' into v_string.

0 Kudos

Hi Chandrasekhar,

i tried to concatenate my string with ''''main_form'''' but my result on the html page is this


document.getElementById(''main_form'').submit();

but it should be


document.getElementById('main_form').submit();

Regards,

Anton

0 Kudos

Hi Anton,

I had tried and its working fine

REPORT YCHATEST MESSAGE-ID ZZ .

data : v_string(25).

concatenate '''' 'main form' '''' into v_string.

write : v_string.

May be you are tying to add to that something for HTML code, can i see the code for concatenation

Former Member
0 Kudos

Hi Anton,

To surround your string you can also use ` instead of ', this should avoid the problem.

Regards,

Nick

Former Member
0 Kudos

DATA : final TYPE string,

var(3) TYPE c VALUE 'HI'.

CONCATENATE ' '' ' var ' '' ' INTO final.