‎2007 Jul 16 5:31 AM
result string 'hello'
is it possible to concat <b>'</b> ( apostrophie) and text and again<b> '</b> programatically.
kris.
‎2007 Jul 16 5:35 AM
try this
data : text(10).
concatenate '''' 'hello' '''' into text.
write : / text.
regards
shiba dutta
‎2007 Jul 16 5:33 AM
Hi,
DATA text type string.
CONCATENATE '''' 'hello' '''' into text.
Single quote can be concatenated by typeing it twice.
Here '''' are required as you need to put a character between two quotes '' and to display ' you need to escape its special behaviour by typing it twice.
Regards,
Sesh
‎2007 Jul 16 5:34 AM
data : str type string.
concatenate str '''' 'hello' '''' into str.
write str.
Regards,
Himanshu
‎2007 Jul 16 5:35 AM
Try this
data: text1(10) value 'hello'.
data: text2(10).
concatenate '''' text1 '''' into text2.
write:/ text2.
‎2007 Jul 16 5:35 AM
try this
data : text(10).
concatenate '''' 'hello' '''' into text.
write : / text.
regards
shiba dutta
‎2007 Jul 16 5:41 AM
hello kris,
followin is the code....
DATA: t1(10) TYPE c VALUE 'hello',
t2 TYPE c VALUE '''',
result type string.
CONCATENATE t2 t1 t2
INTO result SEPARATED BY space.
write:/ result.
Regards,
Roshani
‎2007 Jul 16 5:43 AM