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

spaces between fields

Former Member
0 Likes
700

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 report

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

i cant use concatenate here since it wil remove the spaces

so wat exactly i should do 2 preserve that space

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
665

Hi Amit,

You can use contacatanate by using space by passing the variable by not the values.

Regards,

Ameer Baba.

4 REPLIES 4
Read only

Former Member
0 Likes
666

Hi Amit,

You can use contacatanate by using space by passing the variable by not the values.

Regards,

Ameer Baba.

Read only

Former Member
0 Likes
665

Hi,

see this code.

data:name(15).

concatenate 'my' ' ' 'name' into name <b>respecting blanks</b>.

write:/ name.

<b>reward if helpful</b>

rgds,

bharat.

Read only

Former Member
0 Likes
665

Hi

You can use " SEPARATED BY SPACE", in the concatenate statement

this will add a single space after each of your variable.

Cheers

Ravish

<i>

Reward if useful</i>

Read only

Former Member
0 Likes
665

Hi amit,

its simple just declare those two variable as type N(numeric text). If it does not contains any values, it holds only spaces. I have checked it is working....

<i><b>Reward points without fail</b></i>

Regards

Sreenivasa K.