2012 Oct 12 2:05 PM
Hi All ,
I am facing a problem while downloading a file using FM - GUI_DOWNLOAD.
While downloading the data from the internal table to text file the one of the field
vendor name in which some of the charcters are is in turkish character
ie ,Name = ARAS KARGO YURTİÇİ YURTDIŞI TAŞ.AŞ ,the characters I ,C,S are getting changed to #.
Can you please help me.
Please find the code.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = filename_string
filetype = 'ASC'
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
TABLES
data_tab = ta_download
2012 Oct 12 3:34 PM
Hi Murali,
Try to pass the relevant codepage in FM.
rgds
sandeep katoch
2012 Oct 12 3:34 PM
Hi Murali,
Try to pass the relevant codepage in FM.
rgds
sandeep katoch
2012 Oct 12 5:14 PM
Hi Sanddep,
Thanks for the quick reply .
Can you please tell me why TCP0F table is used.
also how to chec whether a language is non-unicode
Thanks & Regards,
Murali Krishnan
2012 Oct 15 5:37 AM
Hi Murli,
For table TCP0F pls check this
http://scn.sap.com/thread/1510734
For language languages that are nonunicode check this
Rgds,
Sandeep katoch
2012 Oct 12 3:36 PM
hi
may use this method. İt may work
To avoid this kind of errors use the extension IGNORING CONVERSION ERRORS to the OPEN DATASET statement.
Example:
DATA g_filename TYPE string VALUE 'D:/test.txt'.
OPEN DATASET g_filename FOR INPUT IN TEXT MODE ENCODING DEFAULT IGNORING CONVERSION ERRORS.
READ DATASET g_filename INTO g_chr.
IF sy-subrc EQ 0.
CLOSE DATASET g_filename.
ENDIF.
or you can use DOWNLOAD, WS_DOWNLOAD functions