cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a char to an FLTP

Former Member
0 Kudos

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!

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member183519
Contributor
0 Kudos

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

Former Member
0 Kudos

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