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: 

concatenation

Former Member
0 Kudos
97

Dear All,

I have two texts ' Material ','Material description'.

If i concatenate them as

concatenate 'Material' 'Material description' into l_text seperated by space.

then l_text = Material material description

But what i want is after Material i need 10 spaces and after material description i need 19 spaces.

i.e l_text = Material Material description .

How to do this ?.

Or let me know is there any fm which gives all the field description in a single text field when we pass an internal table(not a standard table) into it.

Thanks in advance.

1 ACCEPTED SOLUTION

Former Member
0 Kudos
68

hi shobna,

Instead of concatenate use write

example write 'example' to text+(10).

it u can use offset for ur purpose.

regards,

Santosh

4 REPLIES 4

Former Member
0 Kudos
69

hi shobna,

Instead of concatenate use write

example write 'example' to text+(10).

it u can use offset for ur purpose.

regards,

Santosh

former_member223537
Active Contributor
0 Kudos
68

concatenate 'Material' ' ' 'Material description' ' ' into l_text.

Former Member
0 Kudos
68

Hi

declare 2 variables like

data: str(10) type C,

str1(19) type c.

string(70).

now do like this and see

CONCATENATE 'Material' str 'Material Description' str1 into STRING.

write: / STRING.

Regards

Anji

Former Member
0 Kudos
68

let a = 'material'.

b = 'material description'.

c = strlen(a).

d = strlen(b).

e = f = ' '.

do c-1 times.

concatenate ' ' e into e.

enddo.

do d-1 times.

concatenate ' ' f into f.

enddo.

concatenate a e b f.

Thats it.

Please reward if helpful.