Application Development and Automation 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: 
Read only

Exception CX_SY_CONVERSION_CODEPAGE

Former Member
0 Kudos
2,197

we have requirement to downlaod Smartform to Application server in PDF format. getting below dump while executing

OPEN DATASET p_filename FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.

TRANSFER i_tline TO p_filename

.......

CLOSE DATASET p_filename.

if i add " IGNORING CONVERSION ERRORS " after ENCODING DEAFULT then i am not getting dump and pdf file is creating but i am not able to see LOGO in SAP Application server ( downlaoded back from application server to my pc and checked it).

DUMP:

here i am getting dump saying that : You cannot convert the character set

Runtime Error CONVT_CODEPAGE

Exception CX_SY_CONVERSION_CODEPAGE

What happened?

While a text was being converted from code page '4102' to '4110', one of

the following occurred:

- an character was discovered that could not be represented in one of

the two code pages;

- the system established that this conversion is not supported.

2 characters could not be represented (and thus could not converted).

If 2 = 0, a second or a different error has occurred.

Please Help.

2 REPLIES 2
Read only

former_member221770
Contributor
1,047

Hi Ramesh,

The system default codepage is 4110, but your document uses codepage 4102. When you try and open the dataset with the encoding set to "DEFAULT" the system expects your document to use codepage 4110.

Try the following:

OPEN DATASET p_filename FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE

Hope this helps.

Cheers,

Pat.

Read only

0 Kudos
1,047

Nice trick.

Thanks Ramesh.