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: 

Added fixed spaces in output columns

Former Member
0 Kudos

Hello experts,

how to add fixed spaces in between columns?

i am using concatenated statement.

concatenate... into line separated by... (here i want 8 spaces).

I am uploading data on application server.

how to add fixed spaces??

Thanks in advance.

Saurabh

5 REPLIES 5

Former Member
0 Kudos

Hi,

declare a variable like:

v_space(8) type c value ' '.

Then use concatenate f1 f2 into fn separated by v_space.

Thanks & Regards,

Navneeth K.

Former Member
0 Kudos

Try using OFFSET operations.

~Eswar

Former Member
0 Kudos

>

> Hello experts,

>

> how to add fixed spaces in between columns?

> i am using concatenated statement.

> concatenate... into line separated by... (here i want 8 spaces).

>

> I am uploading data on application server.

>

> how to add fixed spaces??

>

> Thanks in advance.

>

> Saurabh

If you give 8 space characters it would not work. Try '########' or any other character and then use replace statement to replace '#' with ' '. It will work.

Regards,

Prashant.

rainer_hbenthal
Active Contributor
0 Kudos

concatenate `Hello` `        ` `World` into s in character mode.
write:/ s.

Note thate the literals are enclosed in back quotes and not in apostrophes, this makes them to strings which can contain spaces at the end.

Former Member
0 Kudos

hello saurabh kulkarni ,

You use this solution just know i tryed in this way...

example:

DATA: y_v_message TYPE char1024,

y_v_char TYPE char8 value ' '. i.e. y_v_char is 8 spaces.

CONCATENATE '0009090909' ' ' '89389383'

INTO y_v_message

SEPARATED BY y_v_char.