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: 

field change

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

8 REPLIES 8

Former Member
0 Kudos

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

0 Kudos

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

Former Member
0 Kudos

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

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

Hi, all you need to do is define the decimals in the WRITE statement.



report zrich_0001 .

data: field type lips-lfimg  value '1234.000'.


write:/ field.

<b>write:/ field decimals 0.</b>

Regards,

Rich Heilman

Former Member
0 Kudos

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

0 Kudos

Funny That's exactly what I said.

Regards,

Rich Heilman

Former Member
0 Kudos

rich i dont mind swapping the values of the scores ..

:):):)

vijay

0 Kudos

I'm not worried about I'm just messing around.

Have a good one.

Regards,

Rich Heilman