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

FLTP COnversion

kesavadas_thekkillath
Active Contributor
0 Likes
630

How to convert

1.2800000000000000E+02

to 128.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
465

Hi,

data : output  type p,
         fltp_fld  type f value '1.2800000000000000E+02'.

move fltp_fld to output.

write output.

Cheers,

jose.

Edited by: jose on Feb 8, 2008 5:42 AM

2 REPLIES 2
Read only

Former Member
0 Likes
466

Hi,

data : output  type p,
         fltp_fld  type f value '1.2800000000000000E+02'.

move fltp_fld to output.

write output.

Cheers,

jose.

Edited by: jose on Feb 8, 2008 5:42 AM

Read only

former_member156446
Active Contributor
0 Likes
465

hi you can also use some FM


CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
EXPORTING
char_unit = 'EA'
unit_is_optional = 'X'
decimals = 0
exponent = 0
fltp_value_si = lv_atwrt_temp
indicator_value = 'X'
masc_symbol = '_'
IMPORTING
char_value = lv_atwrt
EXCEPTIONS
no_unit_given = 1
unit_not_found = 2
OTHERS = 3.