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

function module to convert utf-8 to assci

Former Member
0 Likes
2,415

Hi, Any body know a function module to convert data from utf-8 format / any code page to ascci ??

Thanks a lot for any reply,

1 ACCEPTED SOLUTION
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
974

Hi,

Check the class CL_ABAP_CONV_OBJ.

You can get the code page number for any language using the FM SCP_CODEPAGE_FOR_LANGUAGE.

Then you need to pass the incode and outcode while creating the object of the class.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

2 REPLIES 2
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
975

Hi,

Check the class CL_ABAP_CONV_OBJ.

You can get the code page number for any language using the FM SCP_CODEPAGE_FOR_LANGUAGE.

Then you need to pass the incode and outcode while creating the object of the class.

Regards,

Sesh

Message was edited by:

Seshatalpasai Madala

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
974

Hi,

Also check FM TREX_UTF8_TO_TEXT_LANG. And check other FM's that belong this Function modules function group.

Regards,

Sesh