Skip to Content
0
Former Member
Jun 07, 2006 at 06:02 PM

GUI_UPLOAD and Unicode

1462 Views

Hi,

I want to use GUI_UPLOAD to load an ASCII file with Czech Characters. I try to save my file in .txt format UTF-8. If i read the file with notepad then i have all my characters but when i load in SAP I lost some characters - Who have a solution - I'm in 4.6C - I put in SAPlogon page code 1404 and language CS .

DATA: BEGIN OF f1 OCCURS 0,

altkn(10) TYPE c,

bldat(10) TYPE c, "tt.mm.jj

rart(15) TYPE c,

  • insert michel

zuonr(18),

*

xblnr(20) TYPE c,

  • name1(40) TYPE c,

waers(5) TYPE c,

brutt(13) TYPE c,

fwbtr(13) TYPE c,

faedt(10) TYPE c,

zterm(4) TYPE c,

kunnr(10) TYPE c,

sgtxt(49) TYPE c, => i can find VANĚK

....

CALL FUNCTION 'GUI_UPLOAD'

EXPORTING

filename = pcfil

  • FILETYPE = 'BIN'

has_field_separator = fsepa

  • HEADER_LENGTH = 0

  • READ_BY_LINE = 'X'

  • DAT_MODE = ' '

CODEPAGE = 'UTF8'

  • IGNORE_CERR = ABAP_TRUE

  • REPLACEMENT = '#'

CHECK_BOM = 'X'

IMPORTING

filelength = rc

  • HEADER =

TABLES

data_tab = f1

EXCEPTIONS

file_open_error = 1

....

Thanks