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: 

How is it possible avoid zeros in the integer type and pass space?

former_member184119
Active Contributor
0 Kudos

i define as

DATA : A TYPE I .

DATA B TYPE I.

B = 2.

WRITE: A , B.

OUTPUT IS : 0 2.

I WANT a to be space ...as it is integer type default is zero is there any keyword to avoid zeros to output in integers type???

Expect output : (space) 2.

Sas

Edited by: saslove sap on Jul 20, 2009 10:57 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello


DATA : A TYPE I .
DATA B TYPE I.

B = 2.

WRITE: A no-zero , B.

3 REPLIES 3

Former Member
0 Kudos

Hello


DATA : A TYPE I .
DATA B TYPE I.

B = 2.

WRITE: A no-zero , B.

Former Member
0 Kudos

Hi,

Try this.

WRITE: A no-zero ,

B no-zero.

for this output.

OUTPUT IS : 0 2.

Regards,

Vijay

viquar_iqbal
Active Contributor
0 Kudos

Hi

use this code

DATA : A TYPE I .
DATA B TYPE I.

B = 2.

WRITE: A NO-ZERO , B.

Thanks,

Viquar Iqbal