Label printing issue with chinese characters (SAP script)

Hi ,
I have a requirement to print chinese characters on label print out.
Here are the steps already tried:
1) Created a new device type which is copy if ASCIIPRI and character set 8400
2) Font ANDALE_S, CNHEI, CNSONG are assigned to device type, same fonts called in SAP script.
3) During the print, it is picking ANDALE_S font(observed in spool RAW data), but preview is good.
4) I put ZPL codes CW1,B:MSUNG.FNTFS in beginning of script and also ^A@N,50,50,B:MSUNG.FNT while prining actual chinese text in SAP script.
5) also tried other device types assigned to printer LZEBU2, LB_ZEB2 etc.,
6) already checked at printer DIMM level, SIMSUN, ANDALE_S fonts are already installed
7) Character set on printer is same as in SAP
So far no option worked, it default to Courier fonts while printing and it results garbage characters.
If anyone has ideas, please advice.
thank you,
Anil

Hi,,
If the ZPL commands are correct for switching to the printer's internal CHinese font and character set, it may work to add the fonts via SE73 -> Printer Fonts -> ASCIIPRI . In here you need to add the commands in the print control SFxxx for your created font.
Another possibility is to print via windows and device type CNSAPWIN. Here it should not be necessary to add any font.
Regards,
Aidan

Similar Messages

  • GUI Download Issue with Chinese characters

    Hello,
    Currently we are upgrading from 4.7 to ECC. I'm using GUI_DOWNLOAD
    function module to download the data from SAP to desktop. I do have an
    issue with Chinese characters while downloading the file from SAP to ECC.
    In 4.7 the Chinese characters are being downloaded (I haven't used any
    code page) perfectly, but where as in ECC the downloaded file has junk
    characters instead of Chinese.
    Is there any change in the GUI_UPLOAD FM.
    For your reference below is the code present in the program
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
          FILENAME             = Z_FILENAME
    *****DCDK900543 - Begin of fixing for Unicode conversion ****
         FILETYPE             = 'WK1'
          FILETYPE             = 'ASC'
          WRITE_FIELD_SEPARATOR = ABAP_TRUE
    *****DCDK900543 - End of fixing for Unicode conversion ****
        CHANGING
          DATA_TAB             = I_TAB_TMP
        EXCEPTIONS
          FILE_WRITE_ERROR     = 1
          NO_BATCH             = 2
          INVALID_TYPE         = 3
          UNKNOWN_ERROR        = 4
          OTHERS               = 5.
    Regards,
    Bharath.

    Hi bharat,
    please check whether you ecc 6.0 is uni coded or not (as you upgraded).
    If it is not uni coded then you will not be able to print the Chinese characters.
    You can see whether it is uni coded or not by the following
    in your app toolbar under system click on status.
    There you can see whether your ecc6.0 is uni coded or not.
    Regards,
    koolspy.

  • Issue with Chinese characters while sending IDOCs from PI to SAP system

    Hi,
    We are working on File to IDOC scenario where in some of the fields are having Chinese characters. In SAP system, we noticed that the Chinese characters are getting replaced with # where as in PI output payload we are able to see the correct Chinese characters. The systems involved are PI 7.4 and SAP ECC -6.0.

    Like in dual stack where we have an option to choose unicode/ non-unicode, i don't see any option in single stack.
    However not sure if it works but you can give a try..
    I assume you have created the RFC destination in NWA.
    Go to RFC destination ->Specific Data -> Advanced Settings - here we have an option to mention the code page.
    You might want to mention the code page for chinese char and see if it helps..
    Before doing this, do checkMark's suggestion.

  • Issues with Chinese characters via HTTPRequest

    We have the below scenario:
    http --> PI --> IDOC
    Before the message arrives to PI we do the conection with the below code:
    String urlString  = WDConfiguration.getConfiguration("local/AIB_PAD").getStringEntry("HTTPURL");
         java.net.URL url = new java.net.URL(urlString);
         HttpURLConnection connection = (HttpURLConnection)url.openConnection();
         connection.setDoInput(true);
         connection.setDoOutput(true);
         connection.setUseCaches(true);
         connection.setRequestMethod("POST");
         connection.connect(); //(http connection is made)
    this conection transform all chinese characters to  "?" 
    Does anybody knows what is missing to receive the chinese characters to PI correctly?
    Thanks.
    Edited by: Israel Toledo on Sep 29, 2011 1:27 AM

    Hi Mark,
    Thanks for your answer.
    We are sure that both systems support chinese characters, because when we see the outbound XML generated on the source system(JAVA SAP Portal) it looks good. Also, when we send an XML to PI via HTTP client using Java script, it works good.
    The issue is when we make the connection to PI. I thing some parameter is missing. could be the text code (UTF, unicode), but we are not sure how to change that in the Java code.

  • Printing address in chinese char- sap script

    Hi
    I have a requirement to print address in chinese(ZH language).
    currently we need to write down the Chinese address manually on envelop if mailing address is in China.
    we would like to have the logic for the output. if there is Chinese name/address maintained in customer master, then use Chinese name/address. otherwise, use original English name/address to print on statement.
    in sap script they are passing address number to get this address
    /:   ADDRESS PARAGRAPH AF PRIORITY P LINES 10
    /:     ADDRESSNUMBER &DKADR-ADRNR&
    /:     FROMCOUNTRY &T001-LAND1&
    /:   ENDADDRESS
    Anyone help me out
    Regards
    Kumar

    Hi,
    you can use this with this format
    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: PERSON name of natural person [TITLE form of address]
    /: PERSONNUMBER number of the personen
    /: DEPARTMENT department
    /: STREET street name HOUSE house number
    /: LOCATION additional location information
    /: POBOX po box [CODE post code / zip code] [CITY city]
    /: POSTCODE post code / zip_code
    /: CITY city1[,city2]
    /: NO_UPPERCASE_FOR_CITY
    /: REGION county / state
    /: COUNTRY recipient country [LANGUAGE language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /: FROMCOUNTRY sender country
    /: ADDRESSNUMBER address number
    /: ENDADDRESS
    In detail
    COUNTRY_IN_REC_LANG
    This flag tells the system to use the recipient language for the country name.
    ( COUNTRY_IN_REC_LANG u2018Xu2018 )
    ( Default: Recipient language is not used: COUNTRY_IN_REC_LANG u2018 u2018 )
    LANG_FOR_COUNTRY
    Default = Space
    Use this parameter to explicitly set the language in which to print the country name of a foreign address. By default, the system uses the language of the sending country.
    LANGUAGE
    Language code of the language of the recipient country, if it differs from that of the recipient COUNTRY. Example: addresses in Switzerland. Standard SAP language codes are used; you can display these in the initial SAPscript text processing screen or in table T002.
    FROMCOUNTRY
    Specifies the language to be used for formatting the name of the recipient country. For most European countries, the recipient country is specified by placing the international car registration letters in front of the post code and separating them from the post code with a hyphen. You must always specify the sender country.

  • Smart form printing issue with LOCL and SAP printer

    Hi,
    The issues are as follows:
    1. the top portion of the Invoice and PO does not print when using the SAP printer (works when using LOCL)
    2. the shaded areas of the Order Confirmation and Invoice are black when printing to a SAP printer (works when using LOCL)
    In an attempt to correct the printing issue is was suggested that we change the SAP printer device type from HPLJ4 to POST2. This did address the problem where the shaded areas were black but then we received reports that other reports printed "garbage". Its possible that using POST2 device type causes issues when printing to HP compatible printers.
    Apparently all the testing was done using the SAP printer LOCL and not the SAP printer name and SAP spool system. LOCL uses the SAP GUI and Windows system to produce the output. Our production users at the plant site and Toledo are using SAP defined printers with the device type of HPLJ4. HPLJ4 is our standard here as OC for our printer definitions and we have HP compatible printers installed in our Toledo location and all of our remote sites. We need to be able to correctly print the Invoices, Purchase Orders, Sales Order Confirmations on our SAP printers.
    What can be done to the reports to allow them to print on our HPLJ4?
    Thanks, Prathap

    Hi Prathap,
    Check the background shading of the windows of the Smartform where you get the black boxes. If it is set something like this:
       Color: White
       Saturation: 100%
    this can be the problem.
    I know it is strange but some black and white printers cannot handle this setting. They only know one color black so the ignore the color setting and just take the saturation 100% setting.
    The reason it works with local and device type SAPWIN is that the print data is created in Windows and sent to the printer as graphic.
    Please change the shading for window MAIN -> tab 'Output Options' to:
       Color: Black
       Saturation: 0%
    and this should resolve the problem.
    Then create a new spool and check if the problem is resolved. See SAP Note #400050.
    Regards,
    Aidan

  • Discoverer Desktop 10g : Issue with Chinese Characters

    Hi ,
    Discoverer Desktop 10g client is having issue in displaying Chinese data. My report has chinese characters in it and the same does not get displayed properly when run from Discoverer desktop. However, when I export the report in html format and opened it in browser, it is displaying the chinese characters properly. Browser was set to Unicode(UTF-8) character set.
    I tried changing to different fonts in Discoverer Desktop, but couldn't get the chinese character issue resolved in Desktop.
    Could someone , please tell me how to fix this issue ?
    Please mail directly to [email protected]
    Thanks
    Venkatesh

    I am facing the same issue too. I think it is a problem with the fonts. Get back to you later if I find any solutions.

  • UNICODE Issue With Chinese Characters

    Dear Experts,
    I have chinese characters in my data. I want to downlaod this data on front end as ANSI file type and the chinese data should be convertable.
    Am able to download using 4120 unicode in gui-downalod. but am not getting fiel format of ANSI if I have chinese characters in my file.
    Please hep me.
    Thanks in Advance.
    Kiran.

    Hi
    You can get the code page of a language using function module NLS_GET_FRONTEND_CP.
    Import parameters               Value
    LANGU                          CH
    FETYPE                          MS
    Export parameters               Value
    FRONTEND_CODEPAGE               1160
    Then pass the code to you program and try.
    Shiva

  • SAP Adobe Print forms - Issue with Chinese characters

    Hi All,
    We are using SAP Adobe Print forms to create a business document. This is designed using Adobe Life Cycle Designer (ALD). The form is displayed in Chinese language. The requirement is to display captions for few fields in bold.
    When designing the form we have put the caption as BOLD but when the actual form is generated only few characters are displayed in bold.
    I am not sure if this is problem with Adobe Reader or should there be any specific fonts to be installed in the ADS server?
    Please let me know which all font packs needs to be installed in the local machine?

    Hi Pat,
    Thank you again for your reply.
    Now, I changed the font in the designer to "Adobe Song Std L" and made the text as "BOLD". Then I get a message
    The following is the Designer screen shot.
    Questions:
    1. Does "Adobe Song Std L" support characters in BOLD?
    2. Do I need to install any of those BOLD fonts? If so, where can I get them?
    3. I understand that the BOLD font needs to be installed in the local machine (where the design actually happens so that the font can be specified), the ADS Server (where the actual PDF is rendered) and also in the viewers local machine (where the PDF document is viewed). Is this correct?
    4. Is the font a freeware or will there be any licensing issues?
    Again, thank you for your responses till now.

  • EHS- WWI Label printing issues with Word 2007

    I was wondering if anybody was experiencing issues when printing WWI labels from transaction CG54
    when user has Microsoft Word 2007 ?  Our users our seeing delays/pausing between labels when they have
    Word 2007.  We do not see this pause on the users machines that have Word 2003.  I did not see any OSS Notes,
    does anybody have a solution/work around for this ?  Our desktop GUI is at Support Pack 21 and our
    server is at Support pack 22.  Any ideas ?

    Hello Carla
    no . This problem hasn't been detected yet using our configuration. May be these Notes might help:
    Note 907221
    Note 1012558
    Note 1431414
    Note 568302 and  Note 1487551. Recent WWI version is WWI SP 23.
    With best regards
    C.B.
    Edited by: Christoph Bergemann on Sep 4, 2010 8:13 PM

  • To print labels with barcodes in sap-scripts

    how to print labels with barcodes in sap-scripts . explain with example.

    Hi,
    What was wrong with the answers you were given the first time you asked this question?
    labels with barcodes in smart forms
    Why have you ignored their efforts and logged the same question again?
    Nick

  • Problems with Chinese characters

    I have a client experiencing 3 distinct problems with their Chinese-localized Fm files:
    The SimSun TTF font used in the source Fm files is "uninstalling" itself. This requires reinstallation of the font on a regular basis (every few days).
    The colons used in index markers in the Fm source files are not being parsed as Level1IX, Level2IX, etc. in the RoboHelp project. Instead, they are recognized as colons. In other words, the first level marker in Rh is XXXXXXXX:XXXXXXX:XXXXXXX. The same is true for the semicolons.
    The conversion settings for the Chinese project do not allow for mapping to individual CSS elements and classes. This means that all of the formatting is controlled via the supplemental CSS generated from the FrameMaker formatting. IOW, the formatting all uses the class="FM_ definitions.
    Has anyone had success working with Chinese characters in a FrameMaker to RoboHelp workflow (either linking or importing)?
    Anyone else seen any of these issues in Chinese or any other fonts?
    I'm thinking the first two issues are likely due to the TrueType font used, but can't find an Adobe OTF SimSans font to use as a replacement.
    However, the lack of mapping capability in the conversion process is a stumper...perhaps due to the double-byte font itself.
    Any thoughts or solutions are greatly appreciated by my client (whose deadline passed yesterday!)
    -Matt

    I dont think you can print chinese chars at the console on window
    to print the character codes to the console use someting like that
    char [] chars = request.getParameter("whatever").toCharArray()
    for(each chars){
    System.out.println((int)chars);
    then check if you got the corresponding chinese char

  • 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

  • Issue with Chinese Translations not picked up in Extended Notifications

    All Gurus,
    We are on ECC 6.0 with the below settings.
    SAP_BASIS     700     0015     SAPKB70015     SAP Basis Component
    SAP_ABA     700     0015     SAPKA70015     Cross-Application Component
    We have been using Extended Notifications for quite some time and it's working fine in EN. We now are working on generating the Outlook mails in Chinese Language. In these, there are some std. SAP texts (as mentioned in "General Settings" in transaction SWNCONFIG) are not getting picked up even though the corresponding Chinese translation exists. Specifically, the EN text
    "The following new work items require processing XXXXXXXX" corresponds to Dialog text "SWN_PROLOG_MULTI" maintained for parameter "TEXT_PROLOG_MULTI" in General settings.
    When the Outlook mail is generated in Chinese, the corresponding Chinese text is not getting picked up and says "Text Not Found". Similar issue existed for some other Dialog texts maintained for parameters "TEXT_GOTO_WI" and "TEXT_CONTACT_ADMIN" for which SAP suggested new Notes 1661893 and 1661894. For these texts, once Chinese text is maintained in SE63, its getting picked up in the Outlook mail.
    Has anybody faced similar issue with Chinese translations in Extend.Notif ? If yes, please let me know how to fix this issue.
    Also, anybody knows the message / Dialog text # for the text "Execute Work item.SAP" in the Link that is attached to the Outlook mail ?. Please tell me how to maintain the Chinese text for this EN text.
    Timely reply is really appreciated.
    Thanks in advance & Regards,
    venu

    All,
    SAP provided the translations in the Notes 1675156 & 1675157 and it resolved both the issues mentioned. Also, the "Execute Work Item.SAP" link is picked up from the Text Elements of the class "CL_SWN_NOTIF_WORKFLOW".
    As the issue is resolved, i'm closing this thread.
    Thanks
    venu

  • Emails arriving with Chinese characters

    Hello,
    I have a couple outside contacts that send emails to my users regarding travel. Flight itineraries and the like. Those emails usually have a PDF attached. Not sure if that is relavent or not. The emails display in my users Outlook client (2010) with Chinese
    characters and some other odd characters (like a smiley face and hearts).
    The research I've done points at the senders email server having the root issue. Perhaps they just had a patch applied and it changed the locale or they may be using a Lotus Notes server.
    Lately, we've been getting more in from another outside source with the same problem, so I'm wondering if it isn't actually on my Exchange server (2007). Does anyone have an idea of what I could check to verify that this is or is not on my end of the pipe?
    TIA

    Hi,
    According to your description, I recommend you use pipeline tracing to troubleshoot the issue.
    Please refer to the following article to understand pipeline tracing:
    Using Pipeline Tracing to Diagnose Transport Agent Problems
    Pipeline tracing is a diagnostic feature in Microsoft Exchange Server 2007 that enables you to capture diagnostic information about e-mail messages as they encounter transport agents registered on Simple Mail Transfer Protocol (SMTP) events in the transport
    pipeline. Exchange captures verbose information about the changes that each transport agent applies to messages in the transport pipeline in message snapshot files. If transport rules are configured, Exchange Server also records any actions that each transport
    rule takes on these messages.
    How to Enable Pipeline Tracing
    Hope this helps!
    Thanks.
    Niko Cheng
    TechNet Community Support

Maybe you are looking for