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

Unicode big endian format

Former Member
0 Likes
540

Hi,

i need to convert the internal table into unicode big endian format file and save it in a directory.

i have given

OPEN DATASET W_file  FOR OUTPUT IN LEGACY TEXT MODE  BIG ENDIAN IGNORING CONVERSION ERRORS.

in the w_file i have data .

but when i download this from the application server the format is ansii.

can any one help me in this?

Thanks,

Narmadha M.

Hi,

i need to convert the internal table into unicode big endian format file and save it in a directory.

i have given

OPEN DATASET W_file  FOR OUTPUT IN LEGACY TEXT MODE  BIG ENDIAN IGNORING CONVERSION ERRORS.

in the w_file i have data .

but when i download this from the application server the format is ansii.

can any one help me in this?

Thanks,

Narmadha M.

1 REPLY 1
Read only

Former Member
0 Likes
431

Hi,

I have used this func module.

CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
       EXPORTING
*         FIRST_LINE       = 0
*         LAST_LINE        = 0
*         MIMETYPE         = ' '
         ENCODING         = '4103'
       IMPORTING
         BUFFER           = w_test
        TABLES
          TEXT_TAB         = i_buffer_new1
*       EXCEPTIONS
*         FAILED           = 1
*         OTHERS           = 2
                .
      IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

now i am getting in utf-8 format.

but i need it in unicode big endian format..

can i use this class CL_ABAP_CONV_X2X_CE???