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

Write statement tab space is not getting deleted

Former Member
0 Likes
1,464

Hello Experts,

The tab spaces in the output is not getting deleted in the write statement. Here's my code:

I've tried CONDENSE, SHIFT - LEFT DELETING .., but it is still the same.

Here's the output:

Please do help.

Thanks & Regards,
Sowmya

2 REPLIES 2
Read only

former_member209120
Active Contributor
0 Likes
912

Hi Sowmya,

try like this

DATA: w_num TYPE I VALUE 10,
       w_char TYPE string.

MOVE w_num TO w_char.

CONDENSE w_char.



WRITE :/1 w_num,

       /1 w_char.


Read only

Former Member
0 Likes
912

Hi Sowmya,

all fields in write command will be written in output length of that field.

If you want to condense it, concatenate all these fields into a new field for the output line, condense it and write this line field instead of the single fields. But then the lines will no longer be formatted in the same way.

Regards,

Klaus