Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

# symbol issue in ECC6

bhagyashree_kar
Explorer
0 Likes
1,340

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 .

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 .

7 REPLIES 7
Read only

Former Member
0 Likes
1,251

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'

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,251

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 #.

Read only

0 Likes
1,251

its not in UTF-8

Read only

0 Likes
1,251

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 #.

Read only

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Likes
1,251

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

Read only

0 Likes
1,251

thanks for the answers.

example of charterer that is converting are Ö , Ä

Read only

bhagyashree_kar
Explorer
0 Likes
1,251

hi

the issue is solved. we have written an custom upload program instead of using CG3Z.

using FM GUI_UPLOAD.