11-02-2006 2:22 PM
hi,
actually in spool for qty it is printing decimal places because of it's referring to lips-lfimg (lfimg have length 13 and decimal as 3 ). so that it is giving decimal if i refer that field whcih doesn't have decimal then i can remove that decimal. may i know that field from that table.
thanks
gopan
11-02-2006 2:35 PM
just execute the code ..
regards,
VIjay
.
-
report zex2.
data: val like lips-lfimg value '987.016'.
write:/ val decimals 0 left-justified.
write:/ val decimals 0 right-justified.
write:/ val decimals 0 centered.
there is no need to change the field in ur report output
<b>loop .
write:/val decimals 0 centered .
endloop.</b>
will do
Message was edited by: Vijay
11-02-2006 2:25 PM
hi gopan i think u r referring to scripts .
lips lfimg is 13 3
then do one thing
in ur form painter
script
change the value to &itab-value(C.0) "c dot zero
&lips-lfimg(5.0)
0r
&itab-lfimg(5.0)
<b>this will truncate the decimal ..</b>
dont change the value if this is in scripts ...
just follow the logic and do it and let me know
regards,
Vijay
Message was edited by: Vijay
11-02-2006 2:28 PM
hi vijay,
i am not using scripts now , this is in case of report only. can we use any other field other than that field which decimal place is not there
thanks,
gopan
11-02-2006 2:26 PM
Hi
U have to use UNIT option when you write the qty:
WRITE LIPS-LFIMG UNIT LIPS-VRKME
If the UNIT has't decimals, the system will automatically write the qty without decimal.
Max
11-02-2006 2:27 PM
11-02-2006 2:35 PM
just execute the code ..
regards,
VIjay
.
-
report zex2.
data: val like lips-lfimg value '987.016'.
write:/ val decimals 0 left-justified.
write:/ val decimals 0 right-justified.
write:/ val decimals 0 centered.
there is no need to change the field in ur report output
<b>loop .
write:/val decimals 0 centered .
endloop.</b>
will do
Message was edited by: Vijay
11-02-2006 2:42 PM
11-02-2006 2:48 PM
11-02-2006 2:58 PM