Skip to Content
0
Former Member
Dec 03, 2009 at 10:02 AM

open data set

33 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 but text has errors when we a using some special characters that we found in German or

French alfabet like (éèçà ). Other characters are like A B C are printed properly with no errors .

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

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

My question is should I use FOR OUTPUT IN BINARY MODE instead of actual code ,

to be sure that special characters will be printed in the way tey been send to printer ?

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