2016 Jul 13 6:10 AM
hi all,
when i am uploading a file through tcode CG3Z the special charterer are converted to # in ECC 6 . can someone suggest how to avoid this?
the file is txt file .
2016 Jul 13 6:22 AM
try fm 'SF_SPECIALCHAR_DELETE' to delete the special characters or identify the special characters and replace them with the right characters using 'replace all occurences of'
2016 Jul 13 9:19 AM
First of all, it is not an ABAP question (but it's technical).
# is the character SAP is using when a "code point" (byte(s) storing one character) has no meaning in a target code page. You should use CG3Z with "text mode", which corresponds to a OPEN DATASET ... IN TEXT MODE ENCODING DEFAULT (refer to the ABAP doc for more info). If your SAP system is Unicode, it means that the file must be UTF-8. If your file is not UTF-8 (for instance Latin 1, ...), some bytes cannot be interpreted and are converted to #.
2016 Jul 14 6:00 AM
2016 Jul 14 8:06 AM
Sorry, my answer was incorrect, OPEN DATASET was about writing the file, but the issue was about reading the file. SAP reads the file and interprets its bytes according to the code page of the frontend. There would be a mismatch if some of the characters of the file were encoded in another code page, which would then be replaced with #. Another problem could have been that your SAP system is not Unicode, so it cannot store all Unicode characters and replace them with #.
2016 Jul 13 1:09 PM
Hi,
would be easier if you could provide an example like
the word Złoty in the file becomes Z#oty in the system ...
Best regards,
Nils
2016 Jul 14 5:59 AM
thanks for the answers.
example of charterer that is converting are Ö , Ä
2016 Jul 14 6:03 AM
hi
the issue is solved. we have written an custom upload program instead of using CG3Z.
using FM GUI_UPLOAD.