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

How do i write UTF convertor in ABAP sample code for ABAP please

Former Member
0 Likes
360

How do i write UTF convertor in ABAP

Regards,

Jagrut BharatKumar Shkla

1 REPLY 1
Read only

athavanraja
Active Contributor
0 Likes
308

you want to convert a string to utf format?

try this code

app_type = 'text/xml; charset=utf-8'.

call function 'SCMS_STRING_TO_XSTRING'

exporting

text = xml_string

mimetype = app_type

importing

buffer = xl_content.

concatenate cl_abap_char_utilities=>byte_order_mark_utf8

xl_content

into xl_content in byte mode.