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: 

Do not print zeros if no values found .

Former Member
0 Kudos

Hi Friends ,

I have a tiny issue here . I am not sure how to go about it . I have defined an internail table itab with amt(10) , amt1(10) .

If i do not have any value in amt and amt1 it should not have anything . But now It is printing 0.00 and 0.00 .

I want this both to be empty when there is no data .

Please advise .

Thanks,

5 REPLIES 5

former_member194669
Active Contributor
0 Kudos

Hi,

While printing give your write statement as

write : / amt no-zero.

write : / amt1 no-zero,

0 Kudos

Thanks . But this is in an internal table.I am printing this on a sapscript form .

Message was edited by:

Hari G Krishna

0 Kudos

HI,

in script just do this..

define v_value.

if amt1 = '0.00'.

v_value = ' '

else

v_value = amt1.

endif.

print the v_value

0 Kudos

hi Hari,

do like this in SAPScript:

&FIELD(I)&

(I) will suppress initial values

hope this helps

ec

Former Member
0 Kudos

HI,

are you using ALV to dispaly then in field catalog you will have no_zero set this field to 'X' .

Thanks

Mahesh