cancel
Showing results for 
Search instead for 
Did you mean: 

space between fields

Former Member
0 Kudos

hello friends,

i have to concatenate the value of material classification which im gettin through a function module together in a variable and display it in the smf

there r 6 fields which i have to concatenate in an particular manner only

like ab/c+de/f

now if say 'b' and 'e' are initial then the output should be like

a* /c+d* /f , that space which b and e r taking should be there,

i cant use concatenate here since it wil remove the spaces

so wat exactly i should do 2 preserve that space

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi amit,

before concatenating jsut check for the value as not initial and then concatenate...

hope this may be usefull...

please reward.

regards,

prashant

Answers (1)

Answers (1)

Former Member
0 Kudos

CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}

INTO result

[IN {BYTE|CHARACTER} MODE]

[SEPARATED BY sep]

[RESPECTING BLANKS].

use the respecting blanks option

Former Member
0 Kudos

CONCATENATE {dobj1 dobj2 ...}|{LINES OF itab}

INTO result

[IN {BYTE|CHARACTER} MODE]

[SEPARATED BY sep]

i am only able to use these only

i cant use respecting blanks, even in help im not able to c respecting blanks

does it depend on the version ur working

Former Member
0 Kudos

Yes that could be the issue ,im looking at 6.0

Here is another way to do this.

In every variable do a

replace space by some character u know will not be valid data.

Concatenate the values.

and then do a replace all with space.