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

concatenating ' to a string.

former_member195383
Active Contributor
0 Likes
961

Hi all,

I have a requirement in which , I need to conver one string say XYZ to 'XYZ .

note that i want to concatenate ' .

Please suggest the needful, as I m unable to concatenate ' .

Regards

Rudra

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
933

Hi,

Create a text symbol with value '

and concatenate text-001 l_val into l_final.

Best regards,

Prashant

8 REPLIES 8
Read only

Former Member
0 Likes
933

Hi,

Try the below code

DATA: t1 TYPE c LENGTH 10 VALUE 'We',

t2 TYPE c LENGTH 10 VALUE 'have',

t3 TYPE c LENGTH 10 VALUE 'all',

t4 TYPE c LENGTH 10 VALUE 'the',

t5 TYPE c LENGTH 10 VALUE 'time',

t6 TYPE c LENGTH 10 VALUE 'in',

t7 TYPE c LENGTH 10 VALUE 'the',

t8 TYPE c LENGTH 10 VALUE 'world',

result TYPE string.

CONCATENATE t1 t2 t3 t4 t5 t6 t7 t8

INTO result.

...

CONCATENATE t1 t2 t3 t4 t5 t6 t7 t8

INTO result SEPARATED BY space.

Hope it will help you.

Regards,

Anki Reddy

Read only

Former Member
0 Likes
934

Hi,

Create a text symbol with value '

and concatenate text-001 l_val into l_final.

Best regards,

Prashant

Read only

Former Member
0 Likes
933

Hi ,

U can do like this

Var1 = XYZ

CONCATENATE ' ' ' ' Var1 into Var2.

Var2 = ' XYZ

Read only

Mohamed_Mukhtar
Active Contributor
0 Likes
933

HI,

DATA : lv_str1 TYPE string VALUE 'XYZ',
       lv_str2 TYPE string.

CONCATENATE text-001 lv_str1 INTO lv_str2.
" CREATE  a text element for text-001

Thanks & Regards

Read only

Former Member
0 Likes
933
concatenate '''' 'XYZ' to w_target.

or create a text symbol then use it

concatenate 'text-001 'XYZ' to w_target.

Regards,

Manoj Kumar P

Read only

former_member222860
Active Contributor
0 Likes
933

Hi,

use this

data: st(5) type c value 'xyz'.

data: sts type string.

concatenate '''' st into sts.

write:/ sts.

regards

Mahesh

Read only

Former Member
0 Likes
933

hi

try this fm CONVERSION_EXIT_ALPHA_INPUT

hope this helps

regards

Aakash Banga

Read only

Former Member
0 Likes
933

Hi,

data : l(4) type c.

concatenate XYZ ' ' ' into l.

Thanks & Regards,

Sateesh.