04-11-2011 2:04 PM
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.
04-11-2011 4:20 PM
Hello,
Did you pass a unit reference field for this particular quantity field?
BR,
Suhas
04-11-2011 7:36 PM
Hi Suhas,
Yes I did pass the ref_field as unit field which is the reference field of the BAPI.
Regards,
K.S
04-13-2011 10:43 PM
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