Application Development and Automation 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: 
Read only

Function Module to convert Exponential form into integer.

Former Member
0 Likes
10,235

Hi all,

when uploading the excel file into an Internal table, I need the values entered in Exponential form to be convered into Integer.

For example, 7.62E+14 must be convered to 762000000000000.

Is there any Function Module available for conversion.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
3,648

Hi,

Use FM *QSS0_FLTP_TO_CHAR_CONVERSION* for this purpose.

Pass the Floating point value to i_fltp_value and get the converted number in e_char_field.

-Rakesh

8 REPLIES 8
Read only

Former Member
0 Likes
3,648

download using OLE concept.

Check this

Reg,

Sachin

Read only

Former Member
0 Likes
3,648

do using OLE concept

Check thi link

Reg,

Sachin

Read only

Former Member
0 Likes
3,648

During upload, automatic conversion will take place, and there is not FM for this conversion.

manual conversion will have to be done using type-casting.

Regards,

Mansi.

Read only

Former Member
0 Likes
3,648

Hi sumitha,

Use the FM:

KKEK_CONVERT_FLOAT_TO_CURR

Regards,

Nitin.

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
3,648

Hi,

Refer FM C14W_NUMBER_CHAR_CONVERSION

Hope this helps you.

Regards,

Tarun

Read only

Former Member
3,649

Hi,

Use FM *QSS0_FLTP_TO_CHAR_CONVERSION* for this purpose.

Pass the Floating point value to i_fltp_value and get the converted number in e_char_field.

-Rakesh

Read only

Former Member
0 Likes
3,648

I would prefer, instead of using any Fm, Once you get the value to your field, move it to a variable

of type p.

Regards,

Nitin.

Read only

Former Member
0 Likes
3,648

the FM QSS0_FLTP_TO_CHAR_CONVERSION, is working fine. thanks a lot for everyone's effort.