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: 

CX_SY_CONVERSION_CODEPAGE: codepage '4102' to codepage '1401'

Former Member
0 Kudos

Hello together,

we are facing the following problem:

1) We read an IDOC file with hungarian characters from a non-unicode system (ISO-8859-2)

2) We open the file via: "open dataset dsn for input in text mode encoding non-unicode."

3) We export the data again into a file via: "open dataset dsn for output in text mode encoding non-unicode"

All of this runs in background jobs.

Step 3 terminates with runtime error CONVT_CODEPAGE, Exception CX_SY_CONVERSION_CODEPAGE

The problem seems to stem from codepoint "F5" in Codepage ISO-8859-2 whis is Codepoint "0151" in Unicode. After the unicode migration of the SAP system, these were correctly converted from "F5" (non-unicode) to "0151"(unicode).

We have a problem when reading from the IDOC file, though. Codepoint ISO-8859-2 seems to be imported as 00F5 (unicode). Codepoint 00F5 (unicode) doesn't exist in ISO-8859-2, though. As a result the job terminates with the above mentioned errors.

Thanks a lot for your help in this.

Best Rgs,

Thorsten

1 ACCEPTED SOLUTION

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Thorsten,

if you are working with "open dataset dsn for input in text mode encoding non-unicode.", then you need to make sure that the used logon language (sy-langu) is HU (or any other Eastern European language based on ISO-8859-2). In case of background jobs, you need to set the step language for all steps accordingly (EN would be not correct !).

Best regards,

Nils Buerckel

SAP AG

1 REPLY 1

nils_buerckel
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Thorsten,

if you are working with "open dataset dsn for input in text mode encoding non-unicode.", then you need to make sure that the used logon language (sy-langu) is HU (or any other Eastern European language based on ISO-8859-2). In case of background jobs, you need to set the step language for all steps accordingly (EN would be not correct !).

Best regards,

Nils Buerckel

SAP AG