How to convert Unicode characters to Non-unicode

Hi! Gurus,
How can I convert a unicode character into a non-unicode character?
We have an ABAP program in 4.5B that writes a file with a 15 character fixed length that is passed to another application.  When upgraded into mySAP we encountered issue on the length of the the strings when japanese or chinese character are included in the string, it exceeded the 15 character length.

Hi,
Try this link
[Conversion of Non Unicode to Unicode system]
Regards,
Surinder

Similar Messages

  • Wht is the difference between unicode program and non unicode program ?

    Hi guru,
    wht is the difference between unicode program and non unicode program ?
    Regards
    Subash

    About brief idea about unicode
    In the past, SAP developers used various codes to encode characters of different alphabets, for example, ASCII, EBCDI, or double-byte code pages.
    ASCII (American Standard Code for Information Interchange) encodes each character using 1 byte = 8 bit. This makes it possible to represent a maximum of 28 = 256 characters to which the combinations 00000000, 11111111 are assigned. Common code pages are, for example, ISO88591 for West European or ISO88595 for Cyrillic fonts.
    EBCDI (Extended Binary Coded Decimal Interchange) also uses 1 byte to encode each character, which again makes it possible to represent 256 characters. EBCDIC 0697/0500 is an old IBM format that is used on AS/400 machines for West European fonts, for example.
    Double-byte code pages require 1 or 2 bytes for each character. This allows you to form 216 = 65536 combinations where usually only 10,000 - 15,000 characters are used. Double-byte code pages are, for example, SJIS for Japanese and BIG5 for traditional Chinese.
    Using these character sets, you can account for each language relevant to the SAP System. However, problems occur if you want to merge texts from different incompatible character sets in a central system. Equally, exchanging data between systems with incompatible character sets can result in unprecedented situations.
    One solution to this problem is to use a code comprising all characters used on earth. This code is called Unicode (ISO/IEC 10646) and consists of at least 16 bit = 2 bytes, alternatively of 32 bit = 4 bytes per character. Although the conversion effort for the R/3 kernel and applications is considerable, the migration to Unicode provides great benefits in the long run:
    The Internet and consequently also mySAP.com are entirely based on Unicode, which thus is a basic requirement for international competitiveness.
    Unicode allows all R/3 users to install a central R/3 System that covers all business processes worldwide.
    Companies using different distributed systems frequently want to aggregate their worldwide corporate data. Without Unicode, they would be able to do this only to a limited degree.
    With Unicode, you can use multiple languages simultaneously at a single frontend computer.
    Unicode is required for cross-application data exchange without loss of data due to incompatible character sets. One way to present documents in the World Wide Web (www) is XML, for example.
    ABAP programs must be modified wherever an explicit or implicit assumption is made with regard to the internal length of a character. As a result, a new level of abstraction is reached which makes it possible to run one and the same program both in conventional and in Unicode systems. In addition, if new characters are added to the Unicode character set, SAP can decide whether to represent these characters internally using 2 or 4 bytes.
    A Unicode-enabled ABAP program (UP) is a program in which all Unicode checks are effective. Such a program returns the same results in a non-Unicode system (NUS) as in a Unicode system (US). In order to perform the relevant syntax checks, you must activate the Unicode flag in the screens of the program and class attributes.
    In a US, you can only execute programs for which the Unicode flag is set. In future, the Unicode flag must be set for all SAP programs to enable them to run on a US. If the Unicode flag is set for a program, the syntax is checked and the program executed according to the rules described in this document, regardless of whether the system is a US or an NUS. From now on, the Unicode flag must be set for all new programs and classes that are created.
    If the Unicode flag is not set, a program can only be executed in an NUS. The syntactical and semantic changes described below do not apply to such programs. However, you can use all language extensions that have been introduced in the process of the conversion to Unicode.
    As a result of the modifications and restrictions associated with the Unicode flag, programs are executed in both Unicode and non-Unicode systems with the same semantics to a large degree. In rare cases, however, differences may occur. Programs that are designed to run on both systems therefore need to be tested on both platforms.
    You can also check out these official SAP locations on the SAP Service Marketplace:
    http://service.sap.com/unicode
    http://service.sap.com/unicode@SAP
    http://service.sap.com/i18n
    Regards,
    Santosh

  • Sending special characters to non-unicode non-sap system: user exit

    Hello All,
    We are sending data from a SAP unicode system to a non-sap non-unicode system via IDOC. The idoc is standard idoc GLMAST which contains gl account information.
    Some text fields contained in this idoc can contain special Polish characters. If they are sent unchanged to the non-unicode system, they give problems in the destination system.
    What we would like to do is to build a user exit to convert these special characters, for example : 'é' becomes 'e', ....
    We used enhancement object ALE00001, function EXIT_SAPLBD11_001 and implemented it, but it seems this exit is not called. Can this user exit be used for this functionality?
    We also tried to change in SM59 the type of system of the destination to non-unicode, so that SAP replaces those special characters by #. But, than the error 02. Codepage not found is given in the idoc. Note: the link to the external system is not set up yet, so no actual connection is possible. Is this why we receive this error, and will this functionality work in the end with a non-sap system?
    Thanks for helping.
    Kind Regards,
    Bart Pelsmaekers

    I faced this problem in many project i implement below logic.
      DATA: c_splchar(2) VALUE '90',
            c_defaultchar(1) type c VALUE '#'.
    You have to move one by one character to this function module
              CALL FUNCTION 'URL_ASCII_CODE_GET'
                   EXPORTING
                        trans_char = spl_char
                   IMPORTING
                        char_code  = spl_code.
    All non unicode(Better you check) are always greater than 90.
             if spl_code is gt c_splchar.
                move c_defaultchar to c_splchar.
             endif.       
    "Reward points if usefull"
    Thanks,
    Narayan

  • Unable to load German characters in NON Unicode Essbase Cube

    Hi Guys,
    This is what we want to do:
    Build a Cube for Germany on our Essbase server in US. Our users will access cube using Excel Add-In from Germany. But since the Essbase server is in US, system environment variable ESSLANG is set to English_UnitedStates.Latin1@Binary.
    The version of Essbase we are using is 7.1.3.
    What we tried & failed:
    To load German characters from our dimension build Text file, we added a header: //ESS_LOCALE German_Germany.Latin1@Default
    at the beginning of the dim build Text file hoping the rule file will understand that the file contains German characters & load it correctly. Then using EAS I load the dimensions using its corresponding rule file.
    Essbase loads the dimensions correctly, with NO Error, but when it encounters German characters it Replaces it with a Question Mark "?"
    Some of the German characters are:ß Ü ü Ö ö Ä ä Å Ä Ö
    Lastly, the reason we do not want to build Unicode cube is because Excel Add-In will not work with Unicode cubes.
    Its urgent. Please help.
    Thanks.

    The simple and easy way to check
    non-unicode character sets are not supported on unicode system any longer. Am I right?
    Transaction code i18N
    Select
    trouble shooting --> printing  test --> smartforms --> multiple scripts, select your output device and see print preview. it will display all supported characters.
    I guess, above information will be useful for closing the thread.
    Regards,
    SaiRam

  • How to setup the connection between non-unicode client and unicode server?

    hi.
    we played the program in 4.6x that call a data from unicode server (ECC6.0) to non-unicode server.  ( not played in the unicode server.)
    When a program ended that English Character was normal, but Korean Chinease... was unknown text.
    I think conversion from unicode to non-unicode is a main reason.
    General Notes are issued for the unicode side rfc connection configuration.
    but, i want to know how to setup into the non-unicode system to interface with unicode system.
    I hope your great answer.

    Hi,
    For taht you have to deploy korean and chinese langauges seprately on non unicode system.Then try to connect to the unicode system.It will work for you.
    Regadrs
    Vijay kumar

  • How to Convert From HEX to Java Unicode

    String hexString = "81698a94816a93fa97a790bb8dec8f8a814083478393835e815b83768389834383598354815b836f8e968bc69594814083568358836583808c9f8fd8835a8393835e";
    I have an hex string as shown above. Could please some one tell me how to convert to java unicode.

    Divide it into four-character pieces and for each piece to this:char c = (char)Integer.parseInt(thePiece, 16);That converts the four-character piece (e.g. "8a94") to the corresponding Unicode character (\u8a94). String those chars together into a char array or a String or whatever you need.

  • Unicode vs. Non-Unicode with MI

    Hi all,
    We are looking at doing an installation of MI. We are currently Non-Unicode on our ERP system, although a Unicode conversion project is not too far away.
    According to the document: "How To Design a SAP NetWeaver Based System Landscape" (NW 7.0, ver 1, March 2008) on pg 15, it says:
    "It is required that an MI system with AS ABAP has the same Unicode type as the MI back-end system: If your MI back-end system is a Unicode system, also install a Unicode MI system (that is, both AS ABAP and AS Java on Unicode); if your MI back-end system is non-Unicode, install an MI system with non-Unicode AS ABAP (that is, AS Java on Unicode and AS ABAP on non-Unicode).
    Recommendation
    For new installations, it is recommended to install a Unicode based system for all SAP applications and SAP NetWeaver deployments that require an AS ABAP usage type based system (AS JAVA is only available in Unicode). In future all new installations from SAP will be Unicode only."
    This is clearly conflicting...We are an English-only shop, we have a Unicode conversion imminent, and SAP's direction is clearly Unicode.
    Should we even consider a Non-Unicode install?
    Thanks,
    Troy

    Hi,
    install a unicode middleware system for the following reasons:
    - Soon the BE will be unicode enabled.
    - The MI client is anyway unicode enabled, this means the end users can enter unicode characters anyway. After Unicode conversion of the backend your MI server would be the only non unicode component.
    - having the mw as unicode does not harm, even if the BE is non unicode (apart from the bigger DB size due to the code page)
    Best Regards,THomas

  • Client Copy between unicode system and non-unicode system

    Hello,
    we have to build up a new system for japan. It is planned to install a new 4.7Ext200 unicode system and then make a client copy from a non-unicode 4.7Ext200 (language= german, english) system to the unicode system. I don't think that this is possible way, but I can't find information regarding client copies from non-unicode to unicode. I would advice the project to convert the existing non-unicode system to unicode, make a system copy for the new system and then install japan languages. Any information, which can help me.
    Regards,
    Alexander

    Hi,
    without conversion client copy is not possible
    look at following
    Re: Client copy between unicode and Non-unicode
    regards,
    kaushal

  • Unicode ERP and non-unicode Dealer Business Management 5.00(DBM)

    Hi All,
    We are going to adapt SAP Dealer Business Management 5.00(DBM)industry-specific solution to our local(serbian)language.For this we need following install steps:
    1.ERP ECC 5.0
    2.DIMP ECC 5.0
    3.DBM 5.0
    Is it possible to proceeds on sach way because we have Unicode ERP ECC 5.0, but on other hand DBM 5.0 is non-unicod?
    In case it is possible, please give me some ideas on it.
    Thanks in advance
    Predrag

    Hi Predrag,
    How is DBM installed?  In the same system as an add-on or a separate system?  If it's an add-on, then they would have to have the same codepage.  If it's in a separate system, then there are some possible data loss "issues" when the sending system is Unicode and the receiving system is non-Unicode.  If the sending system sends a character that is not on the recieving system's codepage, the data is "garbage".  There are no such problems with Unicode->Unicode and non-Unicode->Unicode communication.
    Best Regards,
    Matt

  • Can Unicode system  have Non Unicode Database

    i have installed Nw2004 Unicode .
    But if i install NW2004 unicode the database is also unicode or not

    Hi,
    Unicode and non unicode depends on how many bytes are reserved at database
    if itis 1byte it is non unicode supports only english and germany
    2 bytes it is non-unicode
    so the DB is created with an Unicode Characterset once you install sap as unicode system
    Samrat

  • Creating RFC Destination For UNICODE system From NON-UNICODE system

    hi
    how can i create RFC Destination For UNICODE system( XI ) From NON-UNICODE (R/3) system.
    thanks and regards
    Mithlesh Kumar Jha

    Hi,
    Check these blogs , Hope u would be getting some idea
    <b>/people/thomas.jung3/blog/2004/06/24/bsp-150-a-developer146s-journal-part-v-xml-for-rfcs
    /people/thomas.jung3/blog/2004/11/15/bsp-150-a-developer146s-journal-part-xiii-developing-abap-webservices
    /people/sap.user72/blog/2004/06/19/how-i-started-with-sap-web-development</b>
    Regards,
    Sridhar Reddy

  • How to convert special characters in ABAP to XML?

    Hi All.
    We have a scenario where from XI (exchange Infrastructure), a BAPI is called which returns an XML. From that XML, a PDF is generated.
    Now, if the XML contains any special characters, it will fail.
    So if any CHinese char or >, # etc signs are there, it fails.
    Can you please tell me how to convert my string in ABAP to a proper XML?
    I am new to it and I was trying the following code
    DATA: today TYPE string,
          result TYPE string.
    today = 'This is testing'.
    CALL TRANSFORMATION ID
         SOURCE today = today
         RESULT XML result.
    IF sy-subrc = 0.
      WRITE result.
    ENDIF.
    But it does not return me anything.
    Thanks in adv.

    hi
    good
    go through these links,hope these would help you to solve your problem
    http://www.sap-press.de/download/dateien/792/sappress_abapreference_2edition.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/c2567f2b-0b01-0010-b7b5-977cbf80665d
    thanks
    mrutyun^

  • Non Unicode R3 to non Unicode BI

    Hi,
    We have a Non Unicode R3 system. My question is, should I install a non Unicode BI system or a Unicode BI system while installing NW2004s. We only have English language. What is SAP recommended. What are the pros and cons of installing unicode or non-unicode BI when we have a non-unicode R3 system.
    Thanks

    Go for Unicode BI if you just have one langauge. Sooner or later, R/3 wull be upgradedd by the client, which would be unicode compatible then!
    Regards
    Prakash

  • Unicode installation versus none Unicode

    Hello every one:
    My system is 4.7 retention 200 nonunicode system. Finally my installation CD's have arrived and I was hopeful I have everything in place. However, As I am starting the upgrade (Prepare phase) it is complaining that my system is not unicode system and prepare shuts down.
    I thought I have option for upgrading the system to ECC6 without moving to Unicode. Sure thing when I checked the Master upgrade DVD all the files inside is unicode. Is this mean I have to upgrade to unicode system for ECC6?
    Also, I am checking the software download depot, I do not see any upgrade package for none unicode system. Can some one shed some light on this issue?
    Regards,
    KG

    Thanks every one for the reply. However, I am not sure if that is freezable in our environment since English is the only language we will be using. Also I found a Q&A regarding Unicode versus none unicode. In this note basically it is saying none unicode version of ERP2005 will be supported.
    Can you please answer this question, I have 2 sets of installation CD's, One is netweaver 2004S and the other ERP2005. This is confusing me as which upgrade CD's I should be using?
    The only media list I am finding is for netweaver2004S. I undrestand ERP2005 technology is based on  netweaver2004, but why 2 sets of different installation DVD's?
    I want to upgrade from 4.7 extention 200 to ECC6, which installation CD's and installation Guides do I use?
    Regards,
    KG

  • How to convert the local file into unicode file?

    Hi All,
    I need read local file (GUI_UPLOAD) and save it as unicode file?
    I've found class CL_ABAP_CONV_OUT_CE but I've no idea how to use it.
    Should I read file in binary mode and then convert it into unicode? AT the and save it (GUI_DOWNLOAD) ?
    Thanks
    Adam

    Hi,
    Check these classes, will help you
    CL_ABAP_CONV_IN_CE : Reading binary data
    CL_ABAP_CONV_OUT_CE : exporting binary data
    CL_ABAP_CONV_X2X_CE : reading and exporting binary data and changing the format
    Regards,
    Satish

Maybe you are looking for

  • Item Cost Is not Updated when using Data Object OinventoryGenEntry in DTW

    Hello Everyone,                I'm using data transfer workbench (OInventoryGenEntry) to send the production to sap-bo. All The info that I entered in the layouts Documents.csv and Document_Lines.csv are correctly loaded, except the info related to t

  • Boot Camp 3.3 fail to install on my iMac

    Hi, My iMac is running with Windows 7 Pro x64 wit Boot Camp 3.2. When I try to install Boot Camp 3.3 with Apple Software Update it ask me to reboot and I still have Boot Camp 3.2 running on my machine. If I download Boot Camp 3.3 and execute it manua

  • ISO7.1 - problem with opening apps

    Since I updated to ISO7.1 none of my social media apps will open (Facebook, Twitter etc.) - has anyone else had this?  how do I solve ? Thanks :-)

  • MF70-Plant authorization control object -reg

    Hi, While giving MF70 authorization to user we need to control based on Plant Once i give MF70 t code authorization its authorizing the user all plants by default is there any object to control plant (WERKS) in MF70 ? regards, madhu kiran

  • Java Web Server 6.1 & Pooled SQL Server 2000 JDBC Connections

    If anyone can shed some light on this problem I would greatly appreciate it. I am unsuccessfully trying to use a database connnection retrieved from a pool configured using Java System Web Server 6.1 with the SQL Server 2000 JDBC Driver. The backgrou