‎2007 May 07 4:46 PM
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
‎2007 May 08 9:01 AM
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
‎2007 May 08 9:05 AM
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 .
‎2007 May 08 9:08 AM
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