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: 

ALV Display for Quantity Field

former_member188724
Contributor
0 Kudos

Hi All,

I am working on ALV classes.

I have a quantity field which needs to be displayed without decimals.

When I declare the data type as type p decimals 0,It is displayed correctly but when I change the field with a value using the method handle_data_changed it gives a value multiplied by 10 always. i.e., when the new value is 5 it gives the value as 50.

I tried referencing the Unit value but it doesn't work.

Any views on suppressing the decimal values without getting the value multiplied by 10 is highly appreciated.

Thank you in advance.

Regards,

K.S.

3 REPLIES 3

SuhaSaha
Advisor
Advisor
0 Kudos

Hello,

Did you pass a unit reference field for this particular quantity field?

BR,

Suhas

0 Kudos

Hi Suhas,

Yes I did pass the ref_field as unit field which is the reference field of the BAPI.

Regards,

K.S

Former Member
0 Kudos

Hello Kandasamy,

Change the reference field that points to the ALV display field to a non decimal field and then use the Integer variable assignment for removing the decimals during teh BAPi or database fetch.

Hope this answers your question.

Thanks,

Greetson