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: 

Function module to Convert integer to floating point

former_member799868
Participant
0 Kudos

Hi,

I have a field in the selection screen, which is of type character.

I need to convert the integer to floating point.

Is there any function module to do so?

Please help me...

Thanks.

Kranthi.

2 REPLIES 2

former_member799868
Participant
0 Kudos

I also need to know how to convert char to integer.

and then from integer to float

0 Kudos

Why dont you directly assign it -

data : var1(10) type c value '1021.11',

var2 type i.

var2 = var1.

You may look into FMs -

MOVE_CHAR_TO_NUM

CONVERT_STRING_TO_INTEGER

Regards,

Amit

Reward all helpful replies.