02-23-2011 1:29 PM
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
02-23-2011 4:10 PM
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
02-23-2011 4:10 PM
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