09-28-2008 10:35 PM
Hi ,
I am trying to use this
function Module "FLTP_CHAR_CONVERSION_FROM_SI" to convert Float to Char.
The parameters i am using are
CHAR_UNIT = KM
DECIMALS = 15
Exponent = 0
FLTP_VALUE_SI = 1.222222222222222E+06
Indicator VALUE = X
When I execute it , its giving me error message .
"please use number field for Input Value". If any one can tell me what I am using wrong. I really appreciate the time and full marks would be rewarded.
Thanks,
Mili-
09-29-2008 1:26 AM
Hi,
your input variable has to have some numeric type. Check this small example which works for me:
DATA: l_string(20) TYPE c,
l_float TYPE f VALUE '1.222222222222222E+06'.
CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
EXPORTING
char_unit = 'KM'
fltp_value_si = l_float
indicator_value = 'X'
IMPORTING
char_value = l_string
EXCEPTIONS
no_unit_given = 1
unit_not_found = 2
OTHERS = 3.
09-29-2008 1:26 AM
Hi,
your input variable has to have some numeric type. Check this small example which works for me:
DATA: l_string(20) TYPE c,
l_float TYPE f VALUE '1.222222222222222E+06'.
CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
EXPORTING
char_unit = 'KM'
fltp_value_si = l_float
indicator_value = 'X'
IMPORTING
char_value = l_string
EXCEPTIONS
no_unit_given = 1
unit_not_found = 2
OTHERS = 3.
10-08-2008 6:16 PM
Hi I tried this one but its not working. you can explain me step by step what to do?
10-08-2008 6:21 PM
I see this error "Literals that take up more than one line not permitted." when I try to execute it.
10-08-2008 6:29 PM
check some where you missed the quote or it extended to next line. make sure the quotes are in same line.
test = ' '.
post your code here.
10-08-2008 6:29 PM
declare string like this and pass it to fm
DATA: l_string(10) TYPE c.