Skip to Content
author's profile photo Former Member
Former Member

Needed a Funtion Module to convert FLTP to decimal

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 03: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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 29, 2005 at 03:06 PM

    Hi Yamini,

    You can also check the following link:

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

    Sudha

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.