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: 

OPEN DATASET and TRANSFER it_table TO file error CX_SY_CONVERSION_CODEPAGE

Former Member
0 Kudos

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.

4 REPLIES 4

Former Member
0 Kudos

Hi Nozome,

Try not giving CODE PAGE '8000' in your code and see if it works.

Regards,

hari krishna.

Former Member
0 Kudos

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

Former Member
0 Kudos

OPEN DATASET lv_filepath FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE '8000'

IGNORING CONVERSION ERRORS.

Former Member
0 Kudos

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