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

avoid printing zero values in smartforms

Former Member
0 Likes
2,965

hello All,

My smartform output is displaying 0.00 values in some cases which is not acceptable.

Kindly suggest how to avoid printing zero values while printing.

Regards,

Suny

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,797

Try like this;

&wa-variable(CZ)&

This will suppress Zero and spaces.

4 REPLIES 4
Read only

GauthamV
Active Contributor
0 Likes
1,797

hi,

use some logic in your program for that field.

for ex:


loop at itab.
if itab-field = '0.00'

itab-field = ' '.

endif.
endloop.

Read only

Former Member
0 Likes
1,797

Hi

In the conditions tab of the element..put a condition saying that the particular field should print when it is not equal to 0.00.

in conditions tab:

itab-xxx neq 0.00

Regards,

VIshwa.

Edited by: Vishwa Sri Hari on Oct 31, 2008 2:49 PM

Read only

Former Member
0 Likes
1,798

Try like this;

&wa-variable(CZ)&

This will suppress Zero and spaces.

Read only

Former Member
0 Likes
1,797

Hi Sunny,

Is this field of type "p decimal 2" ??

If this is of decimal type field then you have to first take character field for that and then check whether that character field contains 0.00.

data : temp(20) type c.

temp = your decimal field.

if temp = '0.00'.

clear temp.

endif.

use this temp field to display on the smartforms.