09-11-2008 8:44 AM
Hi Experts,
I have a simple problem Regarding floating point to decimal number.
DATA : w_mittelwert TYPE p DECIMALS 4.
Actually, Mittelwert field is type Float.
Now i want to display this floating number to decimal number.
w_mittelwert = wa_qasr-mittelwert. I initializes like this.
Question: Is it correct or not?
Is it take decimal value from floating point value?
Please help me in this regard?
Advanc appriciate to all !!!!!
Regards
Sai
09-11-2008 8:48 AM
09-11-2008 8:51 AM
09-11-2008 10:33 AM
Hello Sai Babu,
it is faster to type this in a small (local) program and debug it then to write this question in this forum.
Best Regards,
Guido
09-11-2008 10:35 AM
Hi Sai,
There is FM existing that can be used to convert Float number to Packed...
Try searching FLOATPACKED* in SE37. You will get your answer.
Regards,
Kunjal
01-13-2009 9:29 AM
05-23-2013 8:52 PM
Hi Babu,
Try class CL_ABAP_DECFLOAT. The static method READ_DECFLOAT34 converts float to decimal.
Regards