Application Development 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: 

Error "conversion of a text from codepage '4102' to codepage '1100' "

Former Member
0 Kudos

Hello,

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

codepages;

- or it was detected that this conversion is not supported

The running ABAP program 'ZREPRISE_TEXTES' had to be terminated as the

conversion

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

1 ACCEPTED SOLUTION

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

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

Best regards,

Nils Buerckel

2 REPLIES 2

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

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

Best regards,

Nils Buerckel

0 Kudos

Thanks very much Nils for your answer which solved the problem.

Regards,

Julien