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: 

problem in converting SI to char with 'FLTP_CHAR_CONVERSION_FROM_SI'

Former Member
0 Kudos

hi friends i am using following code in one of my program but the output is comming as

****

I have checked in the debugging mode.

REPORT  ZTEST5.
data : hexvalue like IMRG-RECDV,
      charval(4) type c.


hexvalue = '2.6000000000000000E+04' .
          CALL FUNCTION 'FLTP_CHAR_CONVERSION_FROM_SI'
          EXPORTING
          char_unit = 'EA'
          unit_is_optional = 'X'
          decimals = 0
          exponent = 0
          fltp_value_si = hexvalue
          indicator_value = 'X'
          masc_symbol = '_'
          IMPORTING
          char_value = charval
          EXCEPTIONS
          no_unit_given = 1
          unit_not_found = 2
          OTHERS = 3.

         write : 'charvalue',charval.

i have to use char value further.Please guide me where is the problem

2 REPLIES 2

Former Member
0 Kudos

srry friends i gt the problem

its the size of char value

which is 4.

0 Kudos

Hi Achal,

If it is solved, pl. mark is as closed/solved.

Regards,

Maharshi.