Summary
This document gives a clear view of issues faced using double byte characters. Printing problems, Smartforms/Sapscripts/ PDF conversion of spool containing Double byte characters and the approach to solve the issues.
Author(s): Prashant Patil Company: Infosys Technologies Ltd. Created on: 23 January 2007
Author Bio
Prashant Patil is working as a Technical Consultant in Infosys Technologies Ltd. He has a total of 5 years work experience (2.6 years IT + 2.4 years Non-IT).
Table of Contents
Introduction ...................................................................................................................................... 3 Printing Double Byte Characters ..................................................................................................... 4 Follow the steps as listed below: ..................................................................................................... 4 1. 2. 3. 4. 5. The Font is not available for the printer.......................................................................... 4 Device type not supporting the font................................................................................ 6 SAP Level Multibyte setting......................................................................................... 7 At operating system level install the required Language................................................ 8 Suitable fonts for specific languages.............................................................................. 8
Introduction
In SDN Forum, I have seen many queries related to Junk characters being displayed in SAP. The replies given are absolutely fine, but sometimes there is not just a single approach which solves the problem. There are many settings and changes to be done in order to solve the Junk characters issue. This document covers all the steps required while using Double byte characters in SAP.
Follow the steps as listed below: Is the Font available on Printer Does device type/Spool Server support the font SAP level Multibyte setting in place Operating System Level Language setting in place Is appropriate font for the language used Upload the font Check applicable SAP Notes We will cover the above 7 steps in brief.
1. The Font is not available for the printer In such cases, the print preview displays the data as per our requirement. But when the print out is fired, the double byte characters are garbled. This is because if a Font which does not exist in SAP is assigned to the data which is to be printed, then when we execute the Smartform SAP checks the availability of the Font. If the font is not available, then SAP automatically converts the font and displays it in Print Preview. This is the reason why the data is correctly displayed on Screen. Whereas the Printer doesnt have the mentioned font and hence garbled output is printed. The same problem is also applicable when you convert the spool to PDF. In such cases, try changing the font. In order to check whether the Font specified is converted to some other Font by SAP during runtime, please follow the following steps: Goto SP01 transaction -> Enter the Spool Number -> Execute
Goto -> Display Requests -> Settings -> Change the DISPLAY MODE from Graphical to RAW and come back to Spool list screen
Click DISPLAY CONTENTS Now you can check the actual FONT used by SAP during printing
2. Device type not supporting the font The device type which sends the spool requests to the server doesnt support the Font or the Printer (Spool) server doesnt have the specified Font. In such case either change the Device type or install the Font on Printer Server. Goto Transaction SPAD and change the Device type or Spool server. a. Goto Transaction SPAD and click Output Devices
c. Change the Device type or Change the spool Server or Install Font on the Spool server
3. SAP Level Multibyte setting Click ALT + F12 Select Options -> I18N Tick Activate Multibyte functionality
4. At operating system level install the required Language Start -> Control Panel -> Regional and Language Options Install files for East Asian Languages If its already installed, then Add the language of the font which you are using in the Smartform 5. Suitable fonts for specific languages
ISO 8859-7 (Greek) ISO8859-8 (Hebrew) ISO 8859-9 (Turkish) Simplified Chinese Japanese
EL HE TR ZH JA
COUR_I7, HELV_I7, TIME_I7 COURIER, HELVE, TIMES COURIER, HELVE, TIMES CNHEI, CNKAI, CNSONG JPMINCHO, DBMINCHO, DBGOTHIC
KP ZF TH AR
KPBATANG, KPDODUM, KPGULIM , KPGUNGSE, KPSAMMUL TWDPHEI, TWMING, TWSONG THANGSAN, THDRAFT, THVIJIT ANDALE_J
Font not displayed properly in the spool / Upload the Font If the font is not displayed properly in spool, then you have to upload the necessary font. Upload the font using SE73 transaction
Click on Execute, provide the TR details and Save. User the Font (for eg. ZARIAL ) in the Smartform Style sheet
Misalignment of Double byte characters in Spool Normally, the device type supporting double byte characters has different settings because of which a Smartform which is displayed properly in ENGLISH logon might be misaligned when executed in JA or any other logon. This is because of the device type settings. In such cases, if the Smartform is never going to be executed in English Logon, then set the Smartform alignment as JA or required logon. If the requirement is to have Smartform in English as well as other language (JA/Chinese/Thai etc.) then create a copy of the Smartform and do the alignment as per the language. Call different Smartforms as per the Logon language. This can be done only if the other approach mentioned in this document doesnt solve the issue.
SAP Notes related to Fonts Also refer following SAP Notes related to double byte characters: a. 0000776507 SAPscript/SmartForms: Which fonts for which languages? b. 0000323736 Restrictions with "PDF print" through spooler c. 0000317851 Creating PDF format using the SAP spooler in 4.6C/4.6B/4.5B d. 0000012462 How can I define a new printer font? e. Note 62178 Device types for the Japanese version of the R/3 System
Related Links
www.sdn.sap.com www.sap.com