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: 

Problem in decimals display in ALV

Former Member
0 Kudos

Hello All,

I am having problem while displaying the contents in ALV. I am displaying quantity field LABST in the output. This is having 3 decimal places. But I want the display like this.

FYI... I am using REUSE_ALV

For ex: 12.000 it should display 12

If it is 12.100 it should display 12.1

Can you pls help me how to acheive this?

Thanks a lot for ur response.

Regards,

Prakash

3 REPLIES 3

JozsefSzikszai
Active Contributor
0 Kudos

hi Prakash,

in the fieldcatalog change the decimals to 1 for this field.

ec

Former Member
0 Kudos

Thanks for ur reply,

But here my actual problem is to suppress the zeros after the decimal point.

Thanks

Prakash

0 Kudos

sorry, overlooked, than I would suggest to copy the value of the field to a char type field and cut the zeros from teh end.