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

TRANSLATE to code page '4110'

Former Member
0 Likes
1,937

I am working for Upgrade project. I need to remove non unique code statements.Can anybody help me to replace the below syntax.

TRANSLATE <string> to code page '4110'.

Thank you.

1 ACCEPTED SOLUTION
Read only

former_member259807
Active Participant
0 Likes
1,702

please use class CL_ABAP_CONV_OUT_CE. documentation can be found in the class.

I am working for Upgrade project. I need to remove non unique code statements.Can anybody help me to replace the below syntax.

TRANSLATE <string> to code page '4110'.

Thank you.

4 REPLIES 4
Read only

former_member259807
Active Participant
0 Likes
1,703

please use class CL_ABAP_CONV_OUT_CE. documentation can be found in the class.

Read only

0 Likes
1,702

HI Wallagh,

Shall i use this calss as below to replace TRNASLATE, please suggest me.

*TRANSLATE <string> to code page '4110'.

DATA: conv TYPE REF TO cl_abap_conv_out_ce.

conv = cl_abap_conv_out_ce=>create( encoding = '4110' endian = 'B' ).

CALL METHOD conv->write( data =<string> ).

Thank you.

Read only

retired_member
Product and Topic Expert
Product and Topic Expert
1,702

First of all, this is documented.

Then, I would recommend CL_ABAP_CODEPAGE, if available, because it is simpler to use.

Read only

Former Member
0 Likes
1,702

Hi All,

Pls suggest me, Shall i use this class (cl_abap_conv_out_ce) as below to replace TRNASLATE.

*TRANSLATE <string> to code page '4110'.

DATA: conv TYPE REF TO cl_abap_conv_out_ce.

conv = cl_abap_conv_out_ce=>create( encoding = '4110' endian = 'B' ).

CALL METHOD conv->write( data =<string> ).

Thank you.