04-03-2008 3:22 PM
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
04-03-2008 3:56 PM
DATA : final TYPE string,
var(3) TYPE c VALUE 'HI'.
CONCATENATE ' '' ' var ' '' ' INTO final.
04-03-2008 3:25 PM
repeat it 4 times to get one '
Concatenate '''' 'test' into v_string.
04-03-2008 3:54 PM
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
04-03-2008 3:58 PM
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
04-03-2008 3:27 PM
Hi Anton,
To surround your string you can also use ` instead of ', this should avoid the problem.
Regards,
Nick
04-03-2008 3:56 PM
DATA : final TYPE string,
var(3) TYPE c VALUE 'HI'.
CONCATENATE ' '' ' var ' '' ' INTO final.