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

Runtime errors : CONVT_CODEPAGE

Former Member
0 Likes
715

Dear ABAPers,

I have used a small abap report to filter the error records from orginal source file(.txt) and made a error free records in the new file and used GUI_DOWNLOAD FM to download same as .txt file.

Now am trying to use the new .txt file to upload master data Thru LSWW developed for it. But i ahve run time error as belwo.

-


What happened?

While a text was being converted from code page '4110' to '4102', 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.

The running ABAP program, 'Z_RWEL_CTC_DISCOUNT' had to be terminated, since the

conversion could cause incorrect data to be generated.

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

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

-


Can somebody quickly help about this.

Do i need to specify any value for CODEPAGe parameter in FM GUI_DOWNLOAD.

Thanks for your help.

best regards, Jilan

3 REPLIES 3
Read only

Former Member
0 Likes
573

Hi,

Yes the error is because of Code page.

Pass the necesary code page and the error would be solved.

Note: Code page would vary according to the character set in the file which you are uploading

Best regards,

Prashant

Read only

Sougata
Active Contributor
0 Likes
573

Hi there,

you can CATCH the exception CONVT_CODEPAGE and then handle it in your program to avoid short-dump. See the ABAP help with CONVT_CODEPAGE .

Read only

uwe_schieferstein
Active Contributor
0 Likes
573

Hello Jilan

I am not sure if my comment will help to solve your problem but please note that the function modules for upload and download to the presentation server (i.e. local PC) are marked as obsolete with respect to <b>Unicode compatibility</b>. Instead use the corresponding static methods GUI_DOWNLOAD and GUI_UPLOAD of class <b>CL_GUI_FRONTEND_SERVICES</b>.

Regards

Uwe