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

funtion module

Former Member
0 Likes
587

hi ,

can anyone , plz help me with a funtion module which converts floating value to a int or char , i want to convert 2.0000000000000000E+05 to 200,000.00

feedback , is highly appretiated.

4 REPLIES 4
Read only

Former Member
0 Likes
558

Hi,

Try like below.......

data : v_result type p DECIMALS 2,
       v_input  TYPE f            VALUE '2.0000000000000000E+05'.

write   v_input.
move    v_input to v_result.
write / v_result.

Cheers,

jose.

Read only

Former Member
0 Likes
558

Found this function module.. But not sure how it works..

CEVA_CONVERT_FLOAT_TO_CHAR

Read only

ak_upadhyay
Contributor
0 Likes
558

Hi,

Check This Link....

http://www.abapcode.sapbrainsonline.com/2008/03/compute-abap-keyword.html

Reward points if useful....

Regards

AK

Read only

Former Member
0 Likes
558

hi,

Try with this FM

HRCM_AMOUNT_TO_STRING_CONVERT – Converts an amount to a character string

Hope this helps, Do reward.