‎2009 Feb 20 12:56 PM
How I can concatenate chracter ' to a string .
example-
string = 123
I want result as
string = '123'
Please suggest.
Edited by: Rohit Kumar on Feb 20, 2009 1:58 PM
Edited by: Rohit Kumar on Feb 20, 2009 2:00 PM
‎2009 Feb 20 1:00 PM
Hi,
As per ur ques,concatenate will delete the spaces.
so u can use like CONCATENATE S1 S2 into S3.
Regards,
jaya
‎2009 Feb 20 1:01 PM
Put the ' into a text element and use that with your CONCATENATE instead of '.
‎2009 Feb 20 1:03 PM
Hi,
Check the below code.
data: v_string type string value '123'.
concatenate '''' v_string '''' into v_string.
write:/ v_string.
Regards,
Sunil
‎2009 Feb 20 1:03 PM
Hi,
Use four '
So,
CONCATENATE '''' '123' '''' INTO W_FIELD
Regards,
Nick
‎2009 Feb 20 1:06 PM
Hi
you need to use 5 '
CONCATENATE ''''' '123' ''''' INTO ABC
This should work
‎2009 Feb 20 1:06 PM
Hi,
Use this
data: val type string.
VAL = 'ABC'.
REPLACE 'ABC' WITH '''ABC''' INTO VAL.
WRITE:/ VAL.
‎2009 Feb 20 1:14 PM
You can use Text Elements --> Text symbols.
In the Text symbols, create a new text-001 with open quotes '
string = 123.
CONCATENATE text-001 string text-001 INTO string.The result would be
string = '123'.Text symbol
Text-001 is 'Hope this will work..
‎2009 Feb 20 4:49 PM
Hi Rohith,
try with this below syntax .
concatenate '''' lf_str '''' into lf_str.
hope this will help you .
Regards
Babumiya Mohammad
‎2009 Feb 20 4:55 PM