Skip to Content
0
Former Member
Dec 03, 2009 at 09:21 AM

open data set / nonsens in destination system

36 Views

Hello ,

I am sending file from sap system to printer server . File has data for licence tags meaning numbers and some text

that shoul be printed on licence tag with bar code .

Numbers are printed properly and text has errors when we a using some special characters that we found in German or

French alfabet like (éèçà ).

Data to be send is in table ( OUTREC )with one field type CHAR lenhth 8000.

file to be opened (g_filename ) on server is of TYPE string .

I am wondering shoul I use FOR OUTPUT IN BINARY MODE instead of actual code .

This is actual code

OPEN DATASET g_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

IF sy-subrc NE 0.

err_flag = 'X'.

RAISE lbl_create_err.

ENDIF.

LOOP AT outrec.

TRANSFER outrec TO g_filename.

ENDLOOP.

CLOSE DATASET g_filename.

Thank you