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: 

Hi regarding data conversions

Former Member
0 Kudos

Hi all,

Is there any FM available to convert char to float

5 REPLIES 5

Former Member
0 Kudos

Hi Ravi,

Try these FM. Chk if it satifies ur requirement.

CEVA_CONVERT_FLOAT_TO_CHAR

FLTP_CHAR_CONVERSION

Try this code also.

REPORT Z_Conv.

DATA : f TYPE f.

DATA : s(15) TYPE c.

f = '41'.

CALL FUNCTION 'FLTP_CHAR_CONVERSION'

EXPORTING

DECIM = 2

  • EXPON = 0

input = f

  • IVALU = ' '

  • MASKN = ' '

IMPORTING

flstr = s

.

WRITE 😕 f.

WRITE 😕 s.

<b>***Reward Points if Useful</b>

Regards

Gokul

Former Member
0 Kudos

try this fm

CONVERT_FROM_CHAR_SORT_RFW

regards

shiba dutta

0 Kudos

Hi shiba,

I dont know how to use this FM.

can u pls send me the sample code.

Regards,

Ravi

Former Member
0 Kudos

Hi,

Try using the following function modules.

<b>CEVA_CONVERT_FLOAT_TO_CHAR</b>

<b>CHAR_FLTP_CONVERSION</b> Format conversion: Character > Floating point

<b>FLTP_CHAR_CONVERSION </b> Format conversion: Floating point > Character

Reward if helpful.

Regards,

Sandhya

Former Member
0 Kudos

I got answer