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: 

WRITE STATEMENT

Former Member
0 Kudos

How can i avoid leading spaces with write statement?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

HI,

Use condense statement.

7 REPLIES 7

former_member184657
Active Contributor
0 Kudos

search

0 Kudos

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

Former Member
0 Kudos

use the command,

shift text left deleting leading ' '.

Thanks

Nayan

Former Member
0 Kudos

Hi,

you can refer this page,..

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

reward if useful

preet

Former Member
0 Kudos

Hi,

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

CONDENSE <VARIABLE NAME>

Regards

Sandipan

Former Member
0 Kudos

HI,

Use condense statement.

0 Kudos

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