‎2009 Dec 03 10:02 AM
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
‎2009 Dec 03 10:18 AM
Hello,
Check with OPEN DATASET IN BINARY MODE and even if that's not working, try to explicitly mention the code page for the special characters using
OPEN DATASET....IN LEGACY TEXT MODE CODE PAGE 'xxxx'.
Vikranth
‎2009 Dec 03 10:29 AM