Skip to Content
avatar image
Former Member

Convert a char to an FLTP

Hi all!

I'm a principiant and this is my first discussion.

I created a new DataSources from  FLAT FILE. My csv file has two columns that cointain data like '-0,4638%' (so they are char in default values tab when I created the DataSources -I used this option to get the PSA otherwise I had an error : no data-).

I have to obtain in my DSO FLTP key figures .

How can I do this?

Through an ABAP routine in transformation?

Through the function CHAR_FLTP_CONVERSION?

I have confused ideas!

I hope I was clear to explain my problem!

Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Nov 06, 2015 at 02:18 PM

    Hello ,

    You can have an ABAP routine in transformation that will help as well .
    It would be more better if you could be more clear with the issue .

    Regards,
    Pooja

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 09, 2015 at 05:47 AM

    Hello Silvia,

    Use FM:

    CALL FUNCTION 'CHAR_FLTP_CONVERSION'  "Format conversion: Character --> Floating point

      EXPORTING

       string =  <pass your  char value here>                   "CHAR input field for conversion to FLTP

      IMPORTING

        decim =                     "Number of decimal places determined

        expon =                     "Gross power of 10 determined

        flstr =                         "FLTP output field, from CHAR conversion

        ivalu =                        "Value in STRING flag

    .

    BR,

    Hitesh


    Capture1.PNG (12.5 kB)
    Add comment
    10|10000 characters needed characters exceeded