Fltp_char_conversion_from_si

Hi ,
I have requirement in which i have to convert this 1.7625600000000000E+08 to char using FM fltp_char_conversion_from_si, but no unit is given.
Please help me out .
Thanks in advance.

Hello,
Use following function module for FLTP to CHAR conversion:
Test for function group      MCP2
Function module              MC_FLTP_CHAR
Upper/lower case
  Import parameters               Value
  FC_A_FLD                        1.7625600000000000E+08
  FC_FIX
  FC_IVA                          X
  FC_NK                           0
  FC_SUPPRESS_PMZ
  Export parameters               Value
  FC_R_FLD                         176256000
Thanks,
Amol Lohade

Similar Messages

  • 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-

    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.

  • Problem in converting SI to char with 'FLTP_CHAR_CONVERSION_FROM_SI'

    hi friends i am using following code in one of my program but the output is comming as
    I have checked in the debugging mode.
    REPORT  ZTEST5.
    data : hexvalue like IMRG-RECDV,
          charval(4) type c.
    hexvalue = '2.6000000000000000E+04' .
              CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
              EXPORTING
              char_unit = 'EA'
              unit_is_optional = 'X'
              decimals = 0
              exponent = 0
              fltp_value_si = hexvalue
              indicator_value = 'X'
              masc_symbol = '_'
              IMPORTING
              char_value = charval
              EXCEPTIONS
              no_unit_given = 1
              unit_not_found = 2
              OTHERS = 3.
             write : 'charvalue',charval.
    i have to use char value further.Please guide me where is the problem

    Hi Achal,
    If it is solved, pl. mark is as closed/solved.
    Regards,
    Maharshi.

  • Parameters to FM FLTP_CHAR_CONVERSION_FROM_SI

    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.

    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

  • Dump in FM 'FLTP_CHAR_CONVERSION_FROM_SI'

    Hi all,
    While using the Fm FLTP_CHAR_CONVERSION_FROM_SI the output I get is in the format "20,00". So when proceeding aithematic operations, it is going to dump.
    Please help to change the output format from the FM.
    Regards,
    Daz

    Hi,
    Since the export parameter is of type char, you may not be able to perform arithmetic calculations. You could try this,
    data: var type p decimals 5.
    "After the call to FLTP_CHAR_CONVERSION_FROM_SI ,
    replace all occurences of ',' in out_char with space.
    var = out_char.
    Vikranth

  • ALV Report: How to pass the variable in Work area to the FM ? Please help !

    I want to pass the field in the work area which contains the floating point numbers to FM 'FLTP_CHAR_CONVERSION_FROM_SI'. This the correct FM, I have tested.
    If I specify the field with Tab name in FM , It says its not an internal table with header line.
    Please help me, How should can I proceed further and pass the field to FM and get it back in work area.
    And an other issue is I want to sum the particular field in the output.
    Is there a way to do using 'PF-STATUS', if so how ? or what is the alternative for this ?
    Please help me with my issues.
    I'm new to ALV reports.
    Thanks in Advance !

    Hi,
    For your FM issue, i think you are trying to pass the field in the FM as ITAB-field, while you should be taking the data in the work area first and then pass this work area in the FM as WA_ITAB-field.
    I hope this will resolve your prob.
    I mean loop at the table and take the values into work area, update the internal table with changed value. This way by the end of loop you will have all your fields converted.
    Please explain a little more about your second doubt, it is unclear(to me atleast).
    Edited by: DeepakNagar on Jul 28, 2011 6:08 PM

  • Window size for day, week, month

    In Tiger you could have a unique window size for the day view, week view, and month view. Is this option gone with Leopard? I liked viewing my day, week, and month in different size windows just by clicking on the buttons and having it go to that view.

    Hi..
    try below code.
      CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
    EXPORTING
    char_unit       = <W_MMPT-ZYKL1>
    decimals        = 0
    exponent        = 0
    fltp_value_si   = <W_MMPT-ZEIEH >
    indicator_value = ‘X’
    masc_symbol     = ' '
    IMPORTING
    char_value      = <res__number_days>.
    regards.
    laxman

  • Database View

    Hi Friends,
    Can we created calculated fields in a view.
    Can we create field in a view using function module.
    Please suggest ...
    Pankaj

    Hi Guru,
    I will give u my exact requirement.
    I have created database view from table imrg and selected the field counter reading ( CNTRR ) . This field is of  FLTP type. I want to show the value in this field in decimal.
    I have debuged sap program where they have used FM FLTP_CHAR_CONVERSION_FROM_SI to display data in decimal.
    My query is can I create field using above FM so that I could a display data in decimal.
    Pankaj

  • Here is how to use the no of months in warranty transaction BGM2

    REPORT  ZSDCONVERT
    data : char_value(10).
    data : fltp type f .
    data : fltp1 like fltp.
    data : decimals like t006-DECAN value 15 .
    from char to floating point
                   call function 'CHAR_FLTP_CONVERSION_TO_SI'
                    EXPORTING
                      CHAR_VALUE             = '3'
                      CHAR_UNIT              = 'MON'
                      UNIT_IS_OPTIONAL       = 'X'
                      DECIMALS_MAX           = decimals
                      FIELD_NAME             = 'FLTP'
                    IMPORTING
                      FLTP_VALUE             = fltp
                      FLTP_VALUE_SI          = fltp1
                      DECIMALS               = decimals
                    EXCEPTIONS
                      NO_UNIT_GIVEN          = 1
                      UNIT_NOT_FOUND         = 2
                      STRING_NOT_FLTP        = 3
                      OTHERS                 = 4
                   if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
                   endif.
    This is to convert from FLTP to char
    call function 'FLTP_CHAR_CONVERSION_FROM_SI'
      exporting
       CHAR_UNIT              = 'MON'
       DECIMALS               = 1
       EXPONENT               = 0
        fltp_value_si          = fltp1
       INDICATOR_VALUE        = 'X'
       MASC_SYMBOL            = '_'
    IMPORTING
       CHAR_VALUE             = char_value
    EXCEPTIONS
       NO_UNIT_GIVEN          = 1
       UNIT_NOT_FOUND         = 2
       OTHERS                 = 3
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

    ada

  • Which table contains the field CNTRC(Counter Reading)?

    Hi Guys,
    1) Can anybody tell me which table contains the field CNTRC (short description is Counter Reading) ?
    2) CNTRC is available in the structure RIMR0. In a situation like this, how do we identify the table name?
    Thanks in Advance,
    Vijay

    Dear Vijay
    The counter reading is available in IMRG table in field CNTRR. It is available in exponential form. you need to convert to decimal from using the FM FLTP_CHAR_CONVERSION_FROM_SI
    Please go through the below link for the
    same
    Link: [Re: Counter reading in IK11]
    Regards
    gajesh

  • PROBLEM WITH FLTP FM.

    I used following code ,still not getting actual value.
    DATA :   DTIME(50) TYPE C.
    CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
      EXPORTING
       CHAR_UNIT              = 'FLTP'
      UNIT_IS_OPTIONAL       = ' '
      DECIMALS               = 15
      EXPONENT               = 0
        FLTP_VALUE_SI          = ITAB-AUSZT
      INDICATOR_VALUE        = ' '
      MASC_SYMBOL            = ' '
    IMPORTING
       CHAR_VALUE             = ITAB-DTIME
    EXCEPTIONS
       NO_UNIT_GIVEN          = 1
       UNIT_NOT_FOUND         = 2
       OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Hi Varun,
    Refer to
    fltp_char_conversion_from_si
    Re: Convert Float to Char
    hope it helps you.
    Regards!

  • Total Counter in IK11

    Hi,
    I'm trying to get the total data counter in terms of getting this value and compare it with the new one;
    I know that imrg-recdv hold this value, with certain logic that involves fields totex, exchg, but I'm not 100% sure about how to get this value, because a point with just one document entered in the table, has a total different value in recdv, that the one displayed, not in the total data counter, but in the counter value when you enter zero in the difference (when you do this, de counter values fill the counter value with the main total counter value).
    greets.
    Felipe.
    ps: I'm writing the logic in IMRC0004 (user exit)

    Dear Makarand,
    As you said, the field CNTRR in the table IMRG is same as CNTRC.
    In this table IMRG output value for the CNTRR is displaying as 1.8000000000000000E+05 which I check the same in IK13 is 50.
    Is there any conversion routine for this.. i checked in the data element level, but no Routine is mention over there.
    I found one Function Module for this, but not able to get the proper output... FM which may convert this is: FLTP_CHAR_CONVERSION_FROM_SI
    do you know the input parameters of this FM.
    Regards,
    Anil.

  • BW - R/3 Funtions

    Hi,
    I want to use the function 'FLTP_CHAR_CONVERSION_FROM_SI' in BW system. This function exists in R/3 client.
    Can anyone please help on how to use this function. Because in BW, when trying to see the function through SE37, I am getting the message 'function module does not exist'.
    Is there any process to get the R/3 functions in BW. Please advise.
    Thanks
    Ramesh Ganji

    Hello,
    Try to use FLTP_CHAR_CONVERSION in BW.
    Have a look at the function documentation.
    Hope this helps.
    Carmen

  • Problem in Dcimal places

    Hi,
    I have an output value which is Rs.8,92,466.50.
    The issue is if am using the variable to display as character am getting the output as Rs.892466.50.(without commas).
    If i use float am getting an output as  8.9246650000000000E+05.
    If i use i am getting commas 8,92,466 but the end part is truncated.
    Please help me and suggest how 2 use the particular data type so that i can get my required output of <b>Rs.8,92,466.50.</b>
    With regards
    Vijay

    Hi,
       declare that variable as type p with decimals 2
    data : lv_var type p decimals 2.
    otherwis use FM
    *--Call function module to convert cycle & offset from floating to
    character
        CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
          EXPORTING
            char_unit       = v_unit
            decimals        = lc_dec
            fltp_value_si   = v_offset
            indicator_value = c_check
          IMPORTING
            char_value      = v_cycle
          EXCEPTIONS
            no_unit_given   = 1
            unit_not_found  = 2
            OTHERS          = 3.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    Regards,
    Prashant

  • Provide Logic for Day,week,month,year..

    Hi Experts,
    My Requirement is as follows...
    The field is for plant maintenance cycle in days/weeks/months/yrs. The table shows it as a floting number for MMPT-ZYKL1.
    But the transaction IP02 shows this field as a numeric field. There is some background method  being done on this field before display.Can i have the logic for Day,week,month,year..
    Could any one please provide logic for this...............will appreciated..
    Thanks ,
    vamsilakshman.p

    Hi..
    try below code.
      CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
    EXPORTING
    char_unit       = <W_MMPT-ZYKL1>
    decimals        = 0
    exponent        = 0
    fltp_value_si   = <W_MMPT-ZEIEH >
    indicator_value = ‘X’
    masc_symbol     = ' '
    IMPORTING
    char_value      = <res__number_days>.
    regards.
    laxman

Maybe you are looking for

  • Disk repair failed / should I reformat my drive / how to format and restore

    I have a MacBook Pro late 2011 model and upgraded to Yosemite. The performance on my MB is ok, but just out of curiousity I ran a disk verify, and was told I needed to reboot, hold down CMD / R and run disk repair. I did so and the repair failed. I w

  • Why does my itunes work in the guest account but not my administrator account?

    I have tried to reset, retry, restart, reinstall and restore itunes on my pc to figure out why it won't work on my administrator account yet it's fine if I sign into my guest account. It worked fine one day and the next, just didn't work.  I have Win

  • Final cut studio can't start (boot up)

    I can't start up my final cut pro when I switch on my Mac. I tried reinstall the program for many times, but still did not work. Can anyone tell me how to make it work again? Thank you.

  • Command line render to quicktime (not animation)

    I'm trying to render to quicktime from the command line to a codec other than animation. I keep getting the following error... "error: - NRiCompressor - corrupted input data (length) A requested QuickTime codec could not be selected. The script speci

  • Spawning bookmarks in iPad need to be deleted by hundreds

    I have a huge amount of duplicate bookmarks...too many to remove one by one, and they seem to be in large groups.  How can I sort alphabetically and delete large amounts in bulk?  Probably these are being spawned by iCloud, and thats a separate issue