I have a report which would upload a unicode file and then update the vendor master data accordingly.
The file contains greek characters too.
when the file is being read in the code, some special characters are being added up to the vendor number which is the first entry. The special characters are not included in the file , but are added up only to the first vendor number and not any other vendor numbers.
The logic that is being used is as follows :
TRY. IF unicode IS INITIAL. IF codepage IS INITIAL. *--> For backward compatibility where this FM might be called from * other dependent objects (FMs/dynamic subroutines) * which donot have access to user's input w.r.t Unicode parameters OPEN DATASET filename FOR INPUT IN LEGACY TEXT MODE MESSAGE msg REPLACEMENT CHARACTER repl_char IGNORING CONVERSION ERRORS FILTER filter. ELSE. *--> System in non-unicode and Unicode Environment (Phases I and II) OPEN DATASET filename FOR INPUT IN LEGACY TEXT MODE CODE PAGE codepage MESSAGE msg REPLACEMENT CHARACTER repl_char IGNORING CONVERSION ERRORS FILTER filter. ENDIF. ELSE. *--> Extract File in Unicode format - Phase III OPEN DATASET filename FOR INPUT IN TEXT MODE ENCODING UTF-8 MESSAGE msg FILTER filter. ENDIF. IF sy-subrc NE 0. MESSAGE e001(zuni) WITH filename sy-subrc RAISING file_open_error. ENDIF.
the unicode parameters used are : codepage = 8000.
An early reply is most appreciated.