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

Conversion to UTF-16 format

Former Member
0 Likes
539

Hi,

i have a requirement where i need to convert data in my internal table which is in text format to UTF-16 format before downloading it to a file,

is there any function module which can be used .

Regards,

Raghavendra

2 REPLIES 2
Read only

Former Member
0 Likes
392

Hi Raghavendra,

As per my knowledge it is not possible to directly to convert to UTF-16. But there is a way to download into application server.

  • Write data to file

open dataset DSN in text mode for output encoding utf-16.

transfer STRUC2 to DSN.

close dataset DSN.

After converting like that you can download the data.

Regards,

Ameer Baba.

Read only

former_member611006
Active Participant
0 Likes
392

Hi,

I think you can use the class CL_ABAP_CONV_OUT_CE.

Regards,

David