2008 Feb 25 1:59 PM
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.
2008 Dec 04 10:19 PM
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.
2021 Jul 02 7:56 PM