07-31-2009 4:11 PM
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,
08-01-2009 10:24 AM
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
07-31-2009 4:15 PM
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)
08-01-2009 10:24 AM
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
08-01-2009 5:00 PM
you can use
OPEN DATASET gv_file FOR INPUT IN TEXT MODE ENCODING NON-UNICODE
WITH SMART LINEFEED.
08-02-2009 5:33 AM
08-03-2009 6:24 AM
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..
08-03-2009 7:02 AM
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