06-22-2007 7:25 AM
Dear all,
I've got a short dump while doing a
OPEN DATASET lv_filepath FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE '8000'
TRANSFER ls_data_file TO lv_filepath.
The dump says : " you can not convert the character set".
The conversion takes place from code page 4103 to 8000.
After investigations it looks like I have some french à characters and this cause the dump.
Any idea how to cope with this?
Regards.
06-22-2007 7:37 AM
Hi Nozome,
Try not giving CODE PAGE '8000' in your code and see if it works.
Regards,
hari krishna.
06-22-2007 7:37 AM
Hi,
How are you saving the file? notepad? If you save file in notepad with default option ANSI in japanese locale PC, windows uses Shift-JIS encoding.
You've mentioned that the code "open dataset p_ifile for input in text mode encoding non-Unicode " worked with japanese text when saved with ANSI. It worked because, Open dataset using codepage 8000 as the input file's encoding. SAP developed 8000 based on microsoft's Shift-JIS codepage CP932.
SAP unicode system chooses input codepage from table TCP0C when ENCODING NON-UNICODE option used. check the table for japanese language.
open dataset p_ifile for input in text mode encoding non-Unicode.
Take a look in below theard.
https://forums.sdn.sap.com/click.jspa?searchID=3353979&messageID=2760764
<REMOVED BY MODERATOR - REQUEST OR OFFER POINTS ARE FORBIDDEN>
Regards
Edited by: Alvaro Tejada Galindo on Dec 29, 2009 10:30 AM
06-22-2007 8:07 AM
OPEN DATASET lv_filepath FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE '8000'
IGNORING CONVERSION ERRORS.
12-29-2009 1:09 PM
Hi All,
We have copied code page 1100 and created a new code page .
LATIN CAPITAL LETTER Z WITH CARON (Ž) U+017D has been added to the new segment.
We are writing file on the application server.
The abap statement used is
OPEN DATASET lv_string FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE P_CODE MESSAGE lv_message.
The issue is that in quality system I am able to write data which contains Ž
but in production system it raises an exception cx_sy_conversion_codepage.
Please suggest what can be done to resolve it.
Best Regards
Shraddha