Skip to Content
avatar image
Former Member

FLTP_CHAR_CONVERSION_FROM_SI "Parameters" issue

Hi ,

I am trying to use this

function Module "FLTP_CHAR_CONVERSION_FROM_SI" to convert Float to Char.

The parameters i am using are

CHAR_UNIT = KM

DECIMALS = 15

Exponent = 0

FLTP_VALUE_SI = 1.222222222222222E+06

Indicator VALUE = X

When I execute it , its giving me error message .

"please use number field for Input Value". If any one can tell me what I am using wrong. I really appreciate the time and full marks would be rewarded.

Thanks,

Mili-

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Sep 29, 2008 at 12:26 AM

    Hi,

    your input variable has to have some numeric type. Check this small example which works for me:

      DATA: l_string(20) TYPE c,
            l_float TYPE f VALUE '1.222222222222222E+06'.
    
      CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
        EXPORTING
         char_unit              = 'KM'
         fltp_value_si          = l_float
         indicator_value        = 'X'
       IMPORTING
         char_value             = l_string
       EXCEPTIONS
         no_unit_given          = 1
         unit_not_found         = 2
         OTHERS                 = 3.
    

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2008 at 05:16 PM

    Hi I tried this one but its not working. you can explain me step by step what to do?

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 08, 2008 at 05:21 PM

    I see this error "Literals that take up more than one line not permitted." when I try to execute it.

    Add comment
    10|10000 characters needed characters exceeded