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

Former Member
0 Likes
773

How can i avoid leading spaces with write statement?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
755

HI,

Use condense statement.

7 REPLIES 7
Read only

Former Member
0 Likes
755

search

Read only

0 Likes
755

hi

use no zero edition

NO-ZERO

This addition cannot be used together with the addition TIME ZONE.

Effect

If dobj has a numeric data type and contains the value 0, blanks are output for the length of the output. If dobj has the data type c, n, or string, leading zeroes are displayed by blanks.

Example

Output of 22 blanks with red background color instead of the standard output "0,0000000000000000E+00".

DATA float TYPE f.

SET BLANK LINES ON.

IF float = 0.

WRITE float NO-ZERO COLOR = 6.

ENDIF.

http://abaplovers.blogspot.com/2008/02/write-statement.html

regards

prasanth

Read only

Former Member
0 Likes
755

use the command,

shift text left deleting leading ' '.

Thanks

Nayan

Read only

Former Member
0 Likes
755

Hi,

you can refer this page,..

http://abaplovers.blogspot.com/2008/02/write-statement.html

reward if useful

preet

Read only

Former Member
0 Likes
755

Hi,

U can condense the variable if the variable contains leading Space.

CONDENSE <VARIABLE NAME>

Regards

Sandipan

Read only

Former Member
0 Likes
756

HI,

Use condense statement.

Read only

0 Likes
755

pls stop giving such ready made answers to the newbies.

encourage them to SEARCH, and if that doesnt help let them come and post their queries.

Just to earn some "worthless" points, pls dont go around creating an overhead on the SDN server by answering queries that has been answered comprehensively by some hundred other users before u.

pk