‎2009 Nov 11 5:59 AM
Hi,
This is regrardng the conversion of Exponential to Numeric values in ABAP.I have an exponential Value 4.8E+47 .I want to convert to numerical .If i use the Exponential Function ,It is agian yielding another Exponent value.
If the Power is more than 47,then there could be multiple steps and In all the case ,it is giving exponent values only.
But I need the numeric value which later should rounded off to 3 decimals.
Please guide me if there is any Function module or a way to resolve this issue.
Regards,
Kranti Yamparala.
‎2009 Nov 11 6:03 AM
declare a variable of type I.
and move the exponential value to this variable. this variable will have the numeric value.
‎2009 Nov 11 6:03 AM
Hi Kranti,
Use
data: Var type P with decimal 3.
move the value to Var.
it works for me.
regards
Aeda
‎2009 Nov 11 6:18 AM
Hi Aeda...
Thanks for your reply.
When i tried in the way it is working small exponentails and it is dumping for E+21.
Any pointer to this?
Regards,
KY.
‎2013 Mar 26 9:36 AM
Hi Kranti,
you just have to move once to a float variable. Rightafter you can move the float value to any variable you need.
Kind regards,
Yavuz
‎2013 Mar 26 11:46 AM
‎2013 Mar 26 12:04 PM
Yes - I did. Does it chance anything? Is there a rule not to reply to old postings?!
Old postings are also references for "new" problems - so it makes no sence to find unsolved postings. Or not?!
‎2021 Oct 22 10:18 AM
I agree with Yavuz, I came across this when looking for an answer to the same problem - 12 years later! It's sad to see that many users don't understand that a forum is here to help others with the same issue too and not only themselves.
‎2013 Mar 26 11:32 AM
Dear Kranti,
Please check at link http://scn.sap.com/thread/1271914 for same problem
with regards
vikas pandey
‎2013 Mar 26 11:56 AM
Hey Vikas,
did you ever try the given FM there? First of all there is no FM called "QSS0_FLTP_TO_CHAR_CONVERSION" in every system, as you maybe take notice of the prefix. There are just these FMs called " CHAR_FLTP_CONVERSION" or "FLTP_CHAR_CONVERSION". Maybe you mean them. But, nevertheless these are not easy to use FM. Maybe you should try and read the other postings in advance.
As I said in my post - and this is the fastest way - you just have to move. That's all. No FM, no Method no nothing ...
Just:
e_output = l_float = i_input.
Yavuz
‎2013 Jul 11 11:34 PM
Dear Kranti,
Please check this thread Simple routine to convert exponential values to float that solves this issue.
Regards,
Mohammed Mohsen