Chinese characters in EXCEL

Hi Friends,
I am facing problem regarding EXCEL download with Chinese Language character. I am using following code to download internal table contains Chinese character on presentation server.
  CALL METHOD cl_gui_frontend_services=>gui_download
    EXPORTING
      filename              = lv_fullpath
      write_field_separator = 'X'
      filetype              = 'ASC'
     CODEPAGE              = '8400'
      fieldnames            = lt_header
    CHANGING
      data_tab              = <fs_gt_table>.
*<fs_gt_table>
But after download EXCEL shows # in place of Chinese characters. Please suggest solution on that.
Thanks

Hi Friends
I solve my problem using below code.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = p_file
filetype = 'DAT' "tried ASC and not working as well
codepage = lv_char_cpage "8404 in this case tried 8400 and same result
replacement = '#'
write_field_separator = 'X'
TABLES
data_tab = i_data_cnvr "table content
fieldnames = i_data_head "table header

Similar Messages

  • Data upload Vendor Master Chinese character from Excel does not upload

    Hi Gurus,
    We are trying to upload Vendor Master from Excel sheet.
    The Chinese characters in excel sheet is not getting uploaded.
    After upload, we see in SAP as ????? for these Chinese character.
    Could any one inform what setting I may need to change?
    Thanks and Best Regards,
    Mohan

    Hi Bala,
    Goto he Initial screen of SAP and click the ALT+F12    costomizating of local setup.the choose the options-->choose the I18N Tab in that POP up and check the Activate the multi byte support.
    press Apply and OK.
    close the  SAP Log on and Re-loag on.if u r not closing the Logon screen the changes wiil not effect.
    or
    click on the log on SAP and choose the server  name -->right click ->Properties>chose the log on language as chanies .-->Apply and Logon.
    Now u can eassily Upload to the Excel in checnies language.
    Thanks & REgards,
    Nelson.

  • How to configure my Firefox thus allowing me to input Chinese characters into the search box by using PenPower writing pad while this problem doesn't exist when I am using Internet Explorer?

    I am using the electronic writing pad made by PENPOWER Inc. to input Chinese characters onto my PC programs (e.g. Winword, Internet Explorer, Excel, etc.) But I can not make it happened on Firefox, please advice what I have to do with the configuration of the Firefox or using any other method to make it work. Thanking you guys in advance for helping me to solve this problem.

    cor-el,
    Thank you very much for your advice. The new software of Penpower works rightaway after I installed it on my pc. Thanks again.
    十分感激你的幫忙!

  • Report Generation Toolkit using Chinese Characters

    I am trying to use the Report Generation Toolkit for Microsoft Office under LabVIEW 8.0.  I would like to use Chinese characters for the headings of the columns using a 2D array of the headings and the Excel Easy Table.  When I generate the report, the text of the headings appears to be jumbled and not encoding correctly.
    For example:
    仪器编号 becomes êNhV÷S
    采前初重(g) becomes Ç‘MRRÍ‘ÿg
    Any insights here? Thanks

    Hi,
    what you describe reminded me of a bug fix in the Report Generation Toolkit 2012 :
    339092
    Using the "Append Table to Report" VI to add strings of Cyrillic font to a table in an MS Word report results in gibberish being added to the report.
    http://digital.ni.com/public.nsf/allkb/09D6DE5170B3C0BD86257A2B004CFD20
    I know that Cyrillic and Chinese characters are different but they are often confronted to the same problems...
    Aurelie

  • Error in opening a file with name in chinese characters with Runtime.exec

    The issue at hand is when I try to open a file with file name containing chinese characters in a localized environment in Windows through the following java code:
    Runtime.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}");
    the following error is thrown by windows.
    Cannot open file "C:\??.txt".
    with the exception
    java.io.IOException: CreateProcess: [Ljava.lang.String;@f5da06 error=2
            at java.lang.Win32Process.create(Native Method)
            at java.lang.Win32Process.<init>(Win32Process.java:66)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at java.lang.Runtime.exec(Runtime.java:364)
            at java.lang.Runtime.exec(Runtime.java:326)
            at Launcher.main(Launcher.java:26)
    When I try to use the same command (shown below) from the Windows Run command, the file opens sucessfully
    rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}
    Please suggest.
    Thanks in advance

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • Problem with chinese characters while sending mail with .CSV attachment

    Hi,
    i am sendin .CSV file as an attachment with mail using "SO_DOCUMENT_SEND_API1" FM,
    whle opening the mail attachment the chinese characters are not displaying properly.
    currently i am using ECC 5.0
    can any body help in this regard.
    Thanks,
    Rahim

    Hi Kang Ring,
    please convert the content of the attachement into the binary format and then add it as a mail attachment.
    LOOP AT i_data ASSIGNING <wa_data>.
    if s_output is INITIAL.
    CONCATENATE <wa_data> cl_abap_char_utilities=>cr_lf into s_output.
    else.
    CONCATENATE s_output <wa_data> INTO s_output SEPARATED BY cl_abap_char_utilities=>cr_lf.
    endif.
    ENDLOOP.
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
    EXPORTING
    text = s_output
    IMPORTING
    buffer = x_output.
    CALL FUNCTION 'SCMS_XSTRING_TO_BINARY'
    EXPORTING
    buffer = x_output
    TABLES
    binary_tab = imail_att.
         OR
    please use ABAP-Object classes like CL_BCS , CL_document_BCS.....
    please findthe below sample code.
      cl_bcs_convert=>string_to_solix(
              EXPORTING
                iv_string   = s_output
                iv_codepage = '4103'          "suitable for MS Excel, leave empty
                iv_add_bom  = 'X'               "for other doc types
              IMPORTING
                et_solix  = s_output_binary  "(of type solix_tab)
                ev_size   = size ).
    attachment->add_attachment(                       "attachment of type ref to cl_document_bcs
              i_attachment_type    = 'xls'                     
              i_attachment_subject = l_subject    
              i_attachment_size    = size
              i_att_content_hex    = s_output_binary ).
    you need to write the code for adding the receipents, subject and adding this "attachment " as an attachment to the mail.
    Hope this will helps to you....,
    thanks,
    Rahim.

  • Get Directory name in Chinese and Chinese chars to Excel

    Hi,
    <b>Question:1</b>
    I use "cl_gui_frontend_services=>directory_browse"
    to get the Directory name from the presentation server.
    It works good for the directory names in English.
    However I need to perform a similar operation when the
    user has logged in "<b>Chinese</b>" at OS level,
    say Chinese Version of Windows. In this case this FM
    doesn't get properly the directory names in chinese.
    This might be  because the directory name is of type
    string. is there any other way to achieve this?
    SAP Ver: 4.7
    <b>Question:2</b>
    I need to download chinese description to an excel file from an internal table. I could able to achieve this when I use Chinese version of windows and log into SAP in <b>'ZH'</b>.
    I agree that to see the chinese characters properly we may need to log in the chinese version of Windows. But I don't understand the reason that why do we need to log into chinese version of SAP? i.e 'ZH'. I have decla=red the description field as character in the internal table declaration and in the FM 'GUI_DOWNLOAD', I specify the file type as <b>'ASC'</b>. Any clues on this to get this executed being logged in <b>EN</b> version of SAP?
    Thanks,
    Siva

    Hey there KCR875015,
    It sounds like like you need to change the language your iPad is set to, but you cannot understand the language it currently is. The following article should help you do that:
    iOS: How to change the language when it's set to one you don't understand
    http://support.apple.com/kb/ht2371
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • Unable to read Simplified Chinese in downloaded excel

    Hi,
    We are running an MDMP Simplified Chinese SAP system.
    After extracting some data with both English and Simplified Chinese and saving it as excel file, we are not able to view the Simplified Chinese characters when it is opened in MS Excel.  "Garbage" are being displayed in place of Simplified Chinese.  English display is ok.
    The PC already has Simplified Chinese fonts installed (Control Panel->Regional & Language Options->Language tab->Install files for East Asian languages), and Windows XP is an English version.
    In addition, we are able to key in Simplified Chinese via the keyboard using Hanyu Pinyin.
    I am suspecting that the issue is with MS Excel which doesn't know how to convert the Simplified Chinese. 
    Does anyone know how to overcome this problem?
    Thanks

    Hi,
    as far as I know you need to set the system locale (Language for Non-Unicode programs) of Windows in the control panel to Chinese.
    In addition in a standard  MDMP system it is mandatory to logon with language Chinese if you want to download Kanji characters.
    Best regards,
    Nils Buerckel

  • How to use a select statement with chinese characters?

    I am currently developing a java servlet<using tomcat 4.x> which allows me to use select statement to retrieve results from the Microsoft SQL Server 2000 database. I am using a simple form to get the parameter for querying. The main problem i'm facing is that there are chinese information in the SQL database, but i can't retrieve it through the sql statement with the chinese characters input<thru the form with the help of NJ STAR>in the WHERE condition. When i execute the statement, it returns me no results even though the rows are present in the database.
    Does anyone have the solution to using chinese words in the WHERE clause of the select statement to retrieve results with columns which contains chinese characters? Please help me. Thanks everyone. :)
    PS: when i cut and paste those characters in the sql database and paste onto java.. it is ??? in questionmarks.. but when i paste them into excel 2000.. its shown as chinese chars again..
    please heelppp~~

    Greetings,
    PS: when i cut and paste those characters in thesql
    database and paste onto java.. it is ??? in
    questionmarks.. but when i paste them into excelThis is why the SELECT is not returning any results.
    You need to set the character encoding set on your
    statement and parameters for the characters to be
    properly translated. Refer to the charsetName
    parameter in the String class constructor in your API
    docs and also to
    $JDK_DOCS/guide/intl/encoding.doc.html in your JDK
    documentation.
    2000.. its shown as chinese chars again..Because Office programs are performing the same kind
    of character translation with the appropriate MS APIs.
    please heelppp~~Regards,
    Tony "Vee Schade" Cookis it possible for you to show me some coding examples? i don't really understand what is to be done in order to set the char set and what does it really do.. tried reading up but still dun understand.. :(
    pardon my shallow knowledge of java..
    ok..
    The thing is when i used an insert statement with chinese characters of GBK format hardcoded into the java servlet and then i use the insert statement to insert the chars into the database, it cannot be seen as a chinese word when i off the NJStar. and then it can be searched out with my current form of servlet.. below is my coding of the servlet..
    note: i've set my html file to charset = GBK
    //prototype of Search engine...
    //workable for GBK input and output...
    import java.io.*;
    import java.io.OutputStream;
    import java.io.IOException;
    import javax.servlet.http.*;
    import javax.servlet.ServletException;
    import java.util.*;
    import java.sql.*;
    import java.nio.charset.Charset;
    public class SearchBeta extends HttpServlet {
         private Vector musicDetails = new Vector();
         private String query = "";
         public void service (HttpServletRequest req, HttpServletResponse res) throws IOException, ServletException, UnsupportedEncodingException {
              query = req.getParameter ("T1");
              System.out.println("before:"+query);
              String type = req.getParameter ("D1");//type
              query = req.getParameter ("T1");
              //query = "������";
              System.out.println("after:"+query);
              getResults(type,query);
              System.out.println("locale = :"+req.getLocale());
              res.setContentType ("text/html;charset=GBK");
              PrintWriter out = res.getWriter();
              out.println("<html>");
              out.println("<head>");
              out.println("<body bgcolor = \"black\">");
              out.println("<font face = \"comic sans ms\" color=\"Cornsilk\">");
              if (query.length()==0)
                   out.println ("Please key in your search query.");
              else if (musicDetails.size()==0)
                   out.println ("Sorry, no results matching your search can be found.");
              else {
                   out.println("<center>");
                   out.println("<table cellspacing = \"50\">");
                   int i = 0;
                   //Display the details of the music
                   while (i<musicDetails.size()) {
                        Results details = (Results)musicDetails.get(i);
                        String dbArtist = "";
                        String dbAlbum = "";
                        String dbTitle = "";
                        String dbCompany = "";
                        dbAlbum = details.getAlbum();
                        dbTitle = details.getTitle();
                        dbCompany = details.getCompany();
                        dbArtist = details.getArtist();
                        try{
                             dbAlbum = new String(dbAlbum.getBytes("ISO-8859-1"),"GBK");
                             dbTitle = new String(dbTitle.getBytes("ISO-8859-1"),"GBK");
                             dbCompany = new String(dbCompany.getBytes("ISO-8859-1"),"GBK");
                             dbArtist = new String(dbArtist.getBytes("ISO-8859-1"),"GBK");//correct translation.
                        catch(UnsupportedEncodingException e){
                             System.out.print(e);
                             e.printStackTrace();
                        String dbImage_loc = details.getImage();
                        out.println("<tr>");
                             out.println("<td><table>");
                                  out.println("<img src=C:\\Program Files\\Apache Group\\Tomcat 4.1\\webapps\\examples\\ThumbNails\\"+dbImage_loc+">");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Artist: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbArtist+"</font></td>");
                             out.println("</tr>");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Title: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbTitle+"</font></td>");
                             out.println("</tr>");
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Company: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbCompany+"</font></td>");
                             out.println("</tr>");
                             System.out.println("album: "+ dbAlbum);
                             out.println("<tr>");
                                  out.println("<th><font color=\"violet\"> Album: </font></th>");
                                  out.println("<td><font color=\"Cornsilk\">"+dbAlbum+"</font></td>");
                             out.println("</tr>");
                             System.out.println("company: "+ dbCompany);
                             out.println("</table></td>");
                        out.println("</tr>");
                        i++;
                   out.println("</table>");
                   out.println("</center>");
              out.println("</font>");
              out.println("</body>");
              out.println("</head>");
              out.println("</html>");
              out.close();
              //to remove all the elements from the Vector
              musicDetails.removeAllElements();
         //get Searched Music Details and store in Results object which is stored in musicDetails vector
         public void getResults (String type, String searchQuery) {
              try {
                   Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver");
                   Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=music","sa","kokkeng");
                   Statement stmt = con.createStatement();
                   String query = "SELECT * FROM MusicDetails WHERE "+type+" = '"+searchQuery+"'";
                   ResultSet rs = stmt.executeQuery(query);
                   while (rs.next()) {
                        String artist = rs.getString("Artist");
                        String title = rs.getString("Song");
                        String company = rs.getString("Company");
                        String album = rs.getString("Album");
                        String image_loc = rs.getString("Image");
                        Results details = new Results (artist,title,company,album,image_loc);
                        musicDetails.add(details);
                   stmt.close();
                   con.close();
              catch (Exception e) {
                   System.out.println(e.getMessage());
                   e.printStackTrace();
    with the above servlet i created, i can search out the data in the database which i've inserted through the insert statement. I still can't search for things i've keyed into the database directly using NJStar..
    thank you so much for helping.. really hope any one else who knows the answer to this will reply too... thank you all so much...
    -KK

  • Chinese characters in Data.

    Hello, can FDM Import chinese characters from an excel file?
    currently, I convert to .csv to load. Chinese becomes ????. When I do an excel import, I get this error,
    Detail: No [ups] range name found in file!
    I am using Excel 2007
    thanks,
    Tyson

    Do you have a named range in your excel file that starts with ups prefix? Excel imports have to be in a specific format as well
    Also when saving your file as a csv are you setting the Enconding to Unicode and not ASCII?
    Edited by: SH on Jun 26, 2012 4:20 PM

  • Read SAP table content through VBA  why  Chinese characters display as '#'

    Hi ,
    I meet a problem . I want to get sap table content through RFC in excel  VBA. now  i have solve it . It can got table content . when  i change a new  system , it can get table content ,but chinese characters display as '#' ( it works well in sap 4.6c Chinese characters can display , when upgrate to ecc 6.0 it can't works well )
    some VBA code as below :
    Set ofun = CreateObject("SAP.FUNCTIONS")  ' create a FUNCTION object
       '  Connect  has create and conneted to SAP system
    Set ofun.Connection = Connect                     ' "connect"has create connetion sucess
    Set func = ofun.Add("RFC_READ_TABLE")    ' set RFC object to call function
        func.Exports("QUERY_TABLE") = "T179T"   ' set table name for get table content
        func.Tables("OPTIONS").DATA = "SPRAS   =   'ZH'"    ' set condition of language of  'ZH'
    If func.Call = True Then
            Set oline = func.Tables.Item("DATA")       ' set table content which get from table T179T to object "oline"
    endif
    who can give me some suggestion about this ?  Thanks .
    Edited by: Chris Xu on Oct 31, 2008 6:51 AM

    Hi Chirs,
    I am facing the same problem but i am using c sharp and this is a windows application.
    I tried to change the CodePage attribute by simply setting connection.codepage = "8040";
    But i get an exception.
    attempted to read or write protected memory.
    I cant seem to change this. What should i do. Also do we have to set this at the point of connecting to the Sap system or when i'm calling the RFC. I tried both instances but none worked. Could you please help me out.
    i am using VS 2008.
    Thanks,
    Yohan

  • Reg : Pull Chinese characters into XLS

    Hi Experts,
    I have to generate a report by pulling from tables to an Excel sheet.
    But i'm getting the Chinese characters as junk.
    FYI - I'm using PERL script for this report generation.
    Any idea regarding this ?
    TIA.
    Best Regards,
    Ranit B.

    ranitB wrote:
    Hi Experts,
    I have to generate a report by pulling from tables to an Excel sheet.
    But i'm getting the Chinese characters as junk.
    FYI - I'm using PERL script for this report generation.
    Any idea regarding this ?
    TIA.
    Best Regards,
    Ranit B.is problem a data storage issue or data presentation issue?
    SELECT ASCIISTR(CHINESE_COL) FROM YOUR_TABLE WHERE ID = 1;

  • Chinese characters become garbage characters after reinstall  Essbase

    I reinstalled Essbase but I found the Chinese characters become garbage characters in the EAS. And I set ESSLANG=SimplifiedChinese_China.MS936@Binary, but it still didn't work.
    I ran the command:ESSUTF8 -a. It shows:
    Failed on GCSetLocale(). Please set proper ESSLANG environment.
    Is it related to Oracle characters set? My one is SIMPLIFIED CHINESE_CHINA.AL32UTF8. I heard the shared service console maybe can solve it, but I didn't find the solution in it.

    Hi,
    NOTE: If any of the following Action Points are already done, I would recommend you to implement again.
    1. On the client machine, add the following Environment Variable under System Variables and User Variables. Add ESSLANG as system variable name and User Variable name and put SimplifiedChinese_China.MS936@binary as variable value.
    2. On client Machine, Verify the Regional and Language Options.
    In the Control Panel, navigate to Regional and Language options. Under Regional Options tab, verify if the option "Select an Item to match its preferences, or click Customize to choose your own formats:" has been set to "English (United States)". If yes, set it to "Chinese (PRC)".
    3. On Client Machine, verify if the Unicode font is installed. The font “Arial Unicode MS Font” supports Unicode characters.
    4. Verify the problem in SpreadSheet Add-in(Essbase Add-in). Navigate to Tools->Add-in in Excel, do you see "Hyperion Essbase OLAP Server DLL (Unicode)”. If No, uncheck the option then close Excel. Open Excel again and then navigate to Tools->Add-ins and browse to Hyperion/Analytics/Bin and select the .xll file
    Hope it helps...
    KosuruS

  • Cannot read chinese characters

    I have a file which has chinese characters. Reading it via READ DATASET is giving some junk characters. I tried Legacy mode. But to no avail.
    Any clues?

    HI Aishi,
    Please could you explain me how did you solve this issue...as I am also facing similar issue !!
    I am using 4.7 version ........ and Using BDC I need to upload some data in Chinese language , I have the exact
    Chinese language in notepad / Excel but when I upload it ..... its getting changed to some other unreadable script.
    Please advice
    Karthik.R

  • Standard text  -chinese characters!

    hi all ,
    I am trying to set up chinese standard texts in cic9,copying chinese script from excel file . When i copy the text looks fine , but when i save and open the text, it display only boxes or funny characters. Can any one help on this .. I tried giving both EN and ZH as Langs.
    Thanks in Advance
    Rakesh

    Hello Madan,
    Does your Adobe Reader where you open the PDF file have the Chonese language pack installed? This is necessary.
    Regards,
    Aidan

Maybe you are looking for

  • 'JS Callback error while executing script' in 4.7

    hello everyone, When I was installing SAP 4.7 after the Database load jobs I am getting an error like ' JS Callback error while ecevuting script'.... Jobs are loading but after thatI was having this error... I tried several times but the error is the

  • About Using Magnetic Lasso Tool In Photoshop CS3 Extended

    Hi All I seem to be having a problem using the Magnetic Lasso Tool In Photoshop CS3 Extended as when I get half way around an egales beak zoomed in at 66.67% and start to single click around the tight corners the photo is covered over with a white ba

  • Add carriage return in XML file

    Hi, I found a topic that correspond to my requirement : [Add carriage return in XML file|https://wiki.sdn.sap.com/wiki/display/XI/HowtoappendCarriageReturnintheendofeachtagofxml+file] But i don't know where created this udf, which input parameter pas

  • JDBC with MSSQL7

    I am having trouble connecting to my MSSQL7 DB. I am using WebLogic 5.1 and when run the following code, I get a "Error 500--Internal Server Error" message. Class.forName("weblogic.jdbc.mssqlserver4.Driver"); java.sql.Connection connection = java.sql

  • Adjusting brightness of graphics in .pdf files.

    How do I adjust the brightness level of my color graphics in my .pdf files in Acrobat 9 Pro? All graphics are printing way too dark. Printer is a brother 9840 MFC color laser. Thank you.