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: 

short dump like A character set conversion is not possible.

Former Member
0 Kudos

Hai ,

Please can any one give solution for this issue.

I am trying to upload data. Flat file in application server some characters having #(name for european customers) symbol, because of this dump is comming.

Runtime Errors CONVT_CODEPAGE

Except. CX_SY_CONVERSION_CODEPAGE

Date and Time 31.07.2009 15:58:19

Short text

A character set conversion is not possible.

What happened?

At the conversion of a text from codepage '4110' to codepage '4102':

- a character was found that cannot be displayed in one of the two

codepages;

- or it was detected that this conversion is not supported

The running ABAP program 'Z_CITIMC_CARDNO_INBOUND' had to be terminated as the

conversion

would have produced incorrect data.

The number of characters that could not be displayed (and therefore not

be converted), is 2. If this number is 0, the second error case, as

mentioned above, has occurred.

ERROR COMMING AT PLACE :

226 * UNIX

227 *----


228 IF w_filetype = 'U'. "<<<Use a UNIX file

229 DO.

230 CLEAR i_infile.

>>>>> READ DATASET p_unix INTO i_infile.

232 APPEND i_infile.

233 IF sy-subrc <> 0.

234 EXIT.

235 ENDIF.

236 ADD 1 TO g_read_count.

237 ENDDO.

238 CLOSE DATASET p_unix.

Thanks and Regards,

1 ACCEPTED SOLUTION

former_member555112
Active Contributor

Hi,

I assume that your are uploading from applcation server as I find the READ DATASET statement.

In your open dataset statement use the option ENCODING DEFAULT or ENCODING UTF-8 and check.

Regards,

Ankur Parab

6 REPLIES 6

Former Member
0 Kudos

I see two options for this problem: 1) find codepages that support that char and don't disrupt your whole program or 2) you could preprocess the file and change the symbol for one that doesn't give an error (if it's an external file)

former_member555112
Active Contributor

Hi,

I assume that your are uploading from applcation server as I find the READ DATASET statement.

In your open dataset statement use the option ENCODING DEFAULT or ENCODING UTF-8 and check.

Regards,

Ankur Parab

0 Kudos

you can use

OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING NON-UNICODE

WITH SMART LINEFEED.

venkat_o
Active Contributor
0 Kudos

Hey Murali, Check the below thread. It has same problem solved. [|] Thanks Venkat.O

sangeetha_sk
Participant
0 Kudos

Just check how they uploaded data into application server.. they should upload the data in ASC format . If they uploaded data in BIN format, the fields will be seperated by #. You can check that in application server.

Just try to uploaded data into application server in ASC format and then read the data from application server..

Former Member
0 Kudos

The file might be tab delimited. Try splitting the same at tab delimiter after reading the entry from application server, that should solve the problem.

Thanks,

Mahesh