Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to convert one data type to another data type in ABAP programing

Hi expert,

I am facing the problem while data is moving is from one data type(I, P, F) to CHAR data type then I am getting '#' and not getting proper value.

So how to get the proper value ?

either any Function module for conversion exit avilable or any other alternate avilable.

Could anyone suggest me on this.

Waiting for quick response.

Best Regards,

Bansi

Former Member
Former Member replied

Hi,

To Convert Float value to char value to send in final file use following FM:

CALL FUNCTION 'FLTP_CHAR_CONVERSION'
          EXPORTING
            decim = 2
            expon = 0
            input = char_value
            ivalu = 'X'
          IMPORTING
            flstr = v_char.

In input youu can specify value with float data type

Regards

Shrila

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question