CONCATENATE 3 fields

Question: Hi All,

Refer to my coding below:

DATA: String1(10) type c value 'SAP',
String2(5) type c value 'ABAP'
String3(15) type c.

Anyone know the coding to get String3 = 'SAP ABAP'? Meaning the string2 only concatenate after 10 char in front?

Thanks.

Regards,
Leow

Answer:
u can do this

String3 = string1
String3+10(10) = String2....here the first 10 is the position after which the string2 have to start and 10 in bracket is the length of the string2.

I hope this helps u....

Answer:
or you can always use structure:

or you can always use structure:

u can do this

String3 = string1
String3+10(10) = String2....here the first 10 is the position after which the string2 have to start and 10 in bracket is the length of the string2.

I hope this helps u....

About the only thing that does help him with is bad programming.
_________________
Regards

R


Abap KC
SFMDR

Answer:
How about this:
No offsets, no structures...

And not what is wanted

'SAP       ABAP'

m@t
_________________
TULY The quality of answers is roughly proportional to the quality of the question.

The downside of being better than everyone else is that people tend to assume you're pretentious.

Answer:
As always
Need time to improve my English
_________________
Best regards, Sergey Korolev
Copyright ?2007 - 2008 www.jt77.com