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: 

Parameters to FM FLTP_CHAR_CONVERSION_FROM_SI

Former Member
0 Kudos

Dear all,

I want to use this Fm FLTP_CHAR_CONVERSION_FROM_SI but i m unable to pass the required paarmetres .

My Unit IS KWH .

value 3.5561772000000000E+13

Please help me as soon as possible .

Thanks and regards,

Sonal.

1 REPLY 1

Former Member
0 Kudos

Hi Sonal,

apply coding as shown below.

DATA : L_UNITC LIKE RIMR0-UNITC value 'KWH',
       l_IODEC LIKE RIMR0-IODEC VALUE '4',
       l_IOEXP like RIMR0-IOEXP VALUE '0',
       l_READG like IMRG-READG VALUE '3.5561772000000000E+13',
       l_READGI like IMRG-READGI VALUE 'X',
       l_SYMBOL TYPE C VALUE '_',
       l_TOTAC like RIMR0-TOTAC.

  CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
       EXPORTING
            CHAR_UNIT        = l_UNITC
            UNIT_IS_OPTIONAL = 'X'
            DECIMALS         = l_IODEC
            EXPONENT         = l_IOEXP
            FLTP_VALUE_SI    = l_READG
            INDICATOR_VALUE  = l_READGI
            MASC_SYMBOL      = l_SYMBOL
       IMPORTING
            CHAR_VALUE       = l_TOTAC.

  WRITE l_TOTAC.

It will result in value '9878270.0000'.

Regards,

Maharshi