Skip to Content
avatar image
-2
Former Member

TRANSLATE to code page '4110'

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jul 04, 2017 at 09:27 AM

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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • Jul 04, 2017 at 09:51 AM

    First of all, this is documented.

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 04, 2017 at 11:00 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded