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: 

Needed a Funtion Module to convert FLTP to decimal

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

4 REPLIES 4

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Yamini,

You can also check the following link:

http://www.scc.com.au/wwwboard/sapboard/message.shtml?322

Sudha

Former Member
0 Kudos

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

0 Kudos

try using FLTP_CHAR_CONVERSION_FROM_SI