Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

transfer problem

Hi ,

I tried to send the data to application server using the below code.

After the execution of below code it is resulting in dump.

I cannot use 'ENCODING UNICODE' option because the client system is nonunicode system.

Please reply me with solution .

DATA : out_file(120) TYPE c.

TYPES: BEGIN OF t_file,

data(1000) TYPE c,

END OF t_file.

DATA: i_file TYPE t_file OCCURS 0 WITH HEADER LINE,

w_file(1500) TYPE c.

START-OF-SELECTION.

i_file = 'Test by writing €'.

APPEND i_file.

out_file = '
tmp\interface.tmp11'.

OPEN DATASET out_file FOR OUTPUT IN TEXT MODE

ENCODING NON-UNICODE .

LOOP AT i_file.

MOVE i_file-data

TO w_file.

TRANSFER w_file TO out_file.

  • MESSAGE i000(00) WITH 'Conversion error'.

ENDLOOP.

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question