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

field change

Former Member
0 Likes
1,254

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
Read only

Former Member
0 Likes
1,171

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

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

8 REPLIES 8
Read only

Former Member
0 Likes
1,171

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

Read only

0 Likes
1,171

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

Read only

Former Member
0 Likes
1,170

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

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
1,170

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

Read only

Former Member
0 Likes
1,172

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

Read only

0 Likes
1,170

Funny That's exactly what I said.

Regards,

Rich Heilman

Read only

Former Member
0 Likes
1,170

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

:):):)

vijay

Read only

0 Likes
1,170

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

Have a good one.

Regards,

Rich Heilman