‎2008 Oct 31 9:16 AM
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
‎2008 Oct 31 9:23 AM
Try like this;
&wa-variable(CZ)&This will suppress Zero and spaces.
‎2008 Oct 31 9:18 AM
hi,
use some logic in your program for that field.
for ex:
loop at itab.
if itab-field = '0.00'
itab-field = ' '.
endif.
endloop.
‎2008 Oct 31 9:18 AM
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
‎2008 Oct 31 9:23 AM
Try like this;
&wa-variable(CZ)&This will suppress Zero and spaces.
‎2008 Oct 31 9:23 AM
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.