Error "conversion of a text from codepage '4102' to codepage '1100' "
If some could help me with this error while tryning to transfer a structure containning the character "u20AC" to a file:
OPEN DATASET p_fic FOR OUTPUT IN text MODE ENCODING non-unicode. [...] transfer wt_textes to p_fic. [...] close dataset p_fic.
wt_textes contains the a string with the character "u20AC".
This code dumps:
At the conversion of a text from codepage '4102' to codepage '1100':
- a character was found that cannot be displayed in one of the two
- or it was detected that this conversion is not supported
The running ABAP program 'ZREPRISE_TEXTES' had to be terminated as the
would have produced incorrect data.
The number of characters that could not be displayed (and therefore not
be converted), is 1. If this number is 0, the second error case, as
mentioned above, has occurred.
thanks in advance
Nils Buerckel replied
the problem is that code page 1100 (ISO-8859-1) does not support the u20AC-symbol. However the NON-UNICODE mode usually takes this code page if you logon with EN or DE (or any other Western European language).
As alternative, you could use OPEN DATASET ... LEGACY TEXT MODE... CODE PAGE 1160 ...
Code Page 1160 is the SAP number for MS 1252, which includes the u20AC-symbol.
The other alternative would be to download the file in UTF8 mode and then use the tools described in SAP notes 747615 or 752859 to convert the file content from code page 4110 to 1160 (code page 4110 is the SAP number for UTF-8).