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: 

Concat String problem

Former Member
0 Kudos
95

Hello Guys,

I am struggling with a little problem. I don't have Authorization for ABAP Help. That's why I am posting in SDN.

I have to concatenate two string with space between them.

like two word Spell and Check.

when I cancatenate then the result I got is spellcheck. But I want Spell Check.

Can some one Please tell me what to do.

Regards

Swati....

1 ACCEPTED SOLUTION

Former Member
0 Kudos
63

Hi

Write as below

data: v1(5) type c value 'Spell', STR(11),

v2(5) type c value 'Check'.

<b>CONCATENATE V1 V2 INTO STR SEPARATED BY SPACE.</b>

<b>Reward points for useful Answers</b>

Regards

Anji

3 REPLIES 3

Former Member
0 Kudos
64

Hi

Write as below

data: v1(5) type c value 'Spell', STR(11),

v2(5) type c value 'Check'.

<b>CONCATENATE V1 V2 INTO STR SEPARATED BY SPACE.</b>

<b>Reward points for useful Answers</b>

Regards

Anji

Former Member
0 Kudos
63

Hi

check this sample one



data: it_message3 type standard table of solisti1 initial size 0
with header line.

data: it_message4 type standard table of solisti1 initial size 0
with header line.

***Give your select statement here for ur required coding part

then concatenate like this

concatenate 'Maturity After 2Days' 'for'  'G/L account-' it_message3
'--' IT_MESSAGE4  ',' 'Amount-' it_message2
    into it_message separated by space.

Reward all helpfull answers

Regards

Pavan

Former Member
0 Kudos
63

Hi,

You need to write like this

CONCATINATE FIELD1 FIELD2 into FIELD3 SEPARATED BY SPACE

Regards

Sudheer