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

concatenation

Former Member
0 Likes
792

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
Read only

Former Member
0 Likes
763

hi shobna,

Instead of concatenate use write

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

it u can use offset for ur purpose.

regards,

Santosh

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.

4 REPLIES 4
Read only

Former Member
0 Likes
764

hi shobna,

Instead of concatenate use write

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

it u can use offset for ur purpose.

regards,

Santosh

Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
763

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

Read only

Former Member
0 Likes
763

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.