09-29-2005 3:48 PM
Hi,
I have a requirement where i have to fetch the value of toleranzob and toleranzun based on the condition. It contains exponentional value like 3.500000000e+02 or
3.500000000e+01 so on.
I have to convert this to decimal value.
Example : like 3.50 or 3.5
Kindly tell me which function module can be used for this conversion.
Thanks & Regards,
Yamini.
09-29-2005 4:04 PM
Hi Yamini,
You can use
QSS0_FLTP_TO_CHAR_CONVERSION
Input :
I_NUMBER_OF_DIGITS 2
I_FLTP_VALUE 3.5000000000000000E+02
I_VALUE_NOT_INITIAL_FLAG X
I_SCREEN_FIELDLENGTH 16
Output :
E_CHAR_FIELD 3.50000
After you can convert the Char field to Currency if needed.
Warm Regards,
Babruaj
09-29-2005 4:04 PM
Hi Yamini,
You can use
QSS0_FLTP_TO_CHAR_CONVERSION
Input :
I_NUMBER_OF_DIGITS 2
I_FLTP_VALUE 3.5000000000000000E+02
I_VALUE_NOT_INITIAL_FLAG X
I_SCREEN_FIELDLENGTH 16
Output :
E_CHAR_FIELD 3.50000
After you can convert the Char field to Currency if needed.
Warm Regards,
Babruaj
09-29-2005 4:06 PM
Hi Yamini,
You can also check the following link:
http://www.scc.com.au/wwwboard/sapboard/message.shtml?322
Sudha
09-29-2005 4:14 PM
Hi,
The unction module that Babu gave above is correct.
<b> QSS0_FLTP_TO_CHAR_CONVERSION</b>
Give the same parameters.
But the correct answer that the FM gives out is <b>350</b> and
<b>not 3.5</b> as you've expected.
Please reward points if this explanation useful.
Regards,
Siva
09-29-2005 4:15 PM