Unicode issues of class

Hi,
Iam using a class method cl_abap_conv_in_ce for page code
but iam facing problem with exceptions.
help me out please
thanks
jannat

Hi,
Check this links:
http://help.sap.com/saphelp_nw70/helpdata/en/ba/78d3c747b24546ab1c1499a054d8a5/content.htm
http://help.sap.com/saphelp_nw04/helpdata/en/79/c554afb3dc11d5993800508b6b8b11/content.htm
Re: creating a XML document for a posting via HTTP
check this,
first use create method:
conv = cl_abap_conv_in_ce=>create(
encoding = 'UTF-8' ).
and then the convert method:
conv->convert(
EXPORTING input = w_content
IMPORTING data = w_temp).
Search SDN forum with the key word cl_abap_conv_in_ce.
Regards
Adil

Similar Messages

  • Unicode issue jdbc receiver adapter

    Hi guys,
    I'm facing an unicode issue while trying to put some data into a MS database.
    The sender system is a SAP ERP 6.0 system.
    When we are trying to transfer some text in polish or korean or something else, this textes are not transferred correctly.
    I already checked the SAP Note 831162 FAQ: XI 3.0 / PI 7.0 / PI 7.1 JDBC Adapter
    and used the url parameter sendStringParametersAsUnicode=true
    Furthermore I changed my mapping to get the sql statements, so that I add the attribute hasQuot="no"
    and a leading N in front of the data string as described in the Note and in some threads in SDN
    Unicode problem in JDBC receiver adapter
    JDBC adapter , problem in inserting Korean Charaters in MS SQL
    but nothing solved my problem.
    any ideas?
    Do all the languages have to be installed on the XI system?
    Kind regards
    Jochen

    Hi Sarvesh,
    thanks for helping.
    Unfortunately I´m not sure what I should exactly do.
    If I get you wright I have to test the mapping using the test functionality in message mapping (test tab).
    I did this already
    The result message looks like this
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:IDOC_CDB_IMPORT_insert xmlns:ns0="http://endress.com/xi/sbo/cdb">
       <ns0:StatementName1>
          <ns0:dbTableName action="insert">
             <ns0:table>CFG.DBO.IDOC_CDB_IMPORT</ns0:table>
             <ns0:access>
                <ns0:IDOC>CHRMAS</ns0:IDOC>
                <ns0:SEGMENT>E1CABTM</ns0:SEGMENT>
                <ns0:ATNAM></ns0:ATNAM>
                <ns0:SPRAS>PL</ns0:SPRAS>
                <ns0:ATBEZ hasQuot="no">N&apos;D?ugo?? ca?kowita Tl; L:&apos;</ns0:ATBEZ>
             </ns0:access>
          </ns0:dbTableName>
       </ns0:StatementName1>
    </ns0:IDOC_CDB_IMPORT_insert>
    How to proceed?
    copy this message to notepad or ultra edit and then doing what?
    please specify clearly.
    this message will be send to the jbdc adapter and this will insert it to database.
    <ns0:ATBEZ hasQuot="no">N&apos;D?ugo?? ca?kowita Tl; L:&apos;</ns0:ATBEZ>
    will end up in a table entry like D?ugo?? ca?kowita Tl; L:
    has anybody an idea how I will get the wright characters in database, when I test my UDF in eclipse, the variable during debugging has the correct text.
    When output this variable via system.ou.print(text); the same issue occurs, the special characters are shown as ?.
    I appreciate for your help, unfortunately my polish colleagues hustle a little bit.
    kind regards
    Jochen

  • Unicode issue for custom CLASS

    Hi Experts,
    we have a custom CLASS 'Z_ADD_INN_SALES' as part of unicode conversion i have corrected all the unicode compliants found in the UCCHECK transaction associated with the CLASS and also marked unicode check in the properties of the class. But still it is saying it is not compatible for unicode. I am not able to activate the object because of this error. Kindly let me know whether i need to do any thing else which i have missed for unicode check.
    Regards,
    Ram

    Hello Ram
    Apparently there is a coding-related Unicode error in the class. Check it with UCCHECK and analyze the error message.
    For more details refer to:
    [ABAP and Unicode|http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/content.htm]
    Regards
      Uwe

  • JCo - Unicode issue

    Hi,
      Recently, we migrated SAP to unicode version. Due to this, we are getting the below error when we try to connect from SapJCo to SAP. The version of JCo used is 2.1.6. SAP is hosted on Unix and Java applications are hosted on Windows. We tried with jco.client.codepage= 4103; we are getting different error(RFC_ERROR_LOGON_FAILURE: >> unknown RFC error, no error log found <<) when we give the codepage property.
    Please let us know how to resolve the below issue:
    Exception in thread "main" com.sap.aii.proxy.framework.core.BaseProxyException: Conversion error between two character sets., error key: RFC_ERROR_SYSTEM_FAILURE
          at com.sap.aii.proxy.framework.core.AbstractProxy.send$(AbstractProxy.java:150)
    At the SAP side, we are getting the below errors
    Error analysis
    The error probably occurred when installing the
    R/3 system.
    The termination was triggered in function "RfcExtendedReceive"
    of the SAP kernel, in line 301 of the module
    "//bas/700_REL/src/krn/rfc/abrfcrcv.c#5".
    The internal operation just processed is "FUNC".
    Internal mode was started at 20101124144800.
      CLUDE INCL_INSTALLATION_ERROR
    Edited by: manohar mirle on Nov 26, 2010 2:03 PM

    This got resolved.
    We had to make changes to the XML which is embedded in the java code of R3Connector classes. Changed the encoding type and data types in the XML. It went through.

  • Performance issues with class loader on Windows server

    We are observing some performance issues in our application. We are Using weblogic 11g with Java6 on a windows 2003 server
    The thread dumps indicate many threads are waiting in queue for the native file methods:
    "[ACTIVE] ExecuteThread: '106' for queue: 'weblogic.kernel.Default (self-tuning)'" RUNNABLE
         java.io.WinNTFileSystem.getBooleanAttributes(Native Method)
         java.io.File.exists(Unknown Source)
         weblogic.utils.classloaders.ClasspathClassFinder.getFileSource(ClasspathClassFinder.java:398)
         weblogic.utils.classloaders.ClasspathClassFinder.getSourcesInternal(ClasspathClassFinder.java:347)
         weblogic.utils.classloaders.ClasspathClassFinder.getSource(ClasspathClassFinder.java:316)
         weblogic.application.io.ManifestFinder.getSource(ManifestFinder.java:75)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.application.utils.CompositeWebAppFinder.getSource(CompositeWebAppFinder.java:71)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.utils.classloaders.MultiClassFinder.getSource(MultiClassFinder.java:67)
         weblogic.utils.classloaders.CodeGenClassFinder.getSource(CodeGenClassFinder.java:33)
         weblogic.utils.classloaders.GenericClassLoader.findResource(GenericClassLoader.java:210)
         weblogic.utils.classloaders.GenericClassLoader.getResourceInternal(GenericClassLoader.java:160)
         weblogic.utils.classloaders.GenericClassLoader.getResource(GenericClassLoader.java:182)
         java.lang.ClassLoader.getResourceAsStream(Unknown Source)
         javax.xml.parsers.SecuritySupport$4.run(Unknown Source)
         java.security.AccessController.doPrivileged(Native Method)
         javax.xml.parsers.SecuritySupport.getResourceAsStream(Unknown Source)
         javax.xml.parsers.FactoryFinder.findJarServiceProvider(Unknown Source)
         javax.xml.parsers.FactoryFinder.find(Unknown Source)
         javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
         org.ajax4jsf.context.ResponseWriterContentHandler.<init>(ResponseWriterContentHandler.java:48)
         org.ajax4jsf.context.ViewResources$HeadResponseWriter.<init>(ViewResources.java:259)
         org.ajax4jsf.context.ViewResources.processHeadResources(ViewResources.java:445)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:193)
         org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
         org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
    On googling this seems to be an issue with java file handling on windows servers and I couldn't find a solution yet. Any recommendation or pointer is appreciated

    Hi shubhu,
    I just analyzed your partial Thread Dump data, the problem is that the ajax4jsf framework ResponseWriterContentHandler triggers internally a new instance of the DocumentBuilderFactory; every time; triggering heavy IO contention because of Class loader / JAR file search operations.
    Too many of these IO operations under heavy load will create excessive contention and severe performance degradation; regardless of the OS you are running your JVM on.
    Please review the link below and see if this is related to your problem.. This is a known issue in JBOSS JIRA when using RichFaces / ajaxJSF.
    https://issues.jboss.org/browse/JBPAPP-6166
    Regards,
    P-H
    http://javaeesupportpatterns.blogspot.com/

  • How to Convert a HEX value to CHAR value...Unicode Issue...

    Hi,
    How can I convert HEX value to CHAR value.
    The Code in <b>non Unicode</b> system is:
    DATA: t_text LIKE tline OCCURS 0 WITH HEADER LINE.
    constants:   c_hex_20a5(2) TYPE x            VALUE '20A5'.
    t_text-tdline = 'seller of the item so listed.  A legend of the Seller Code(s) is as'.
          TRANSLATE t_text-tdline USING c_hex_20a5.
    The same code give error in <b>Uni-Code</b> system:
    <b>error is "c_hex_20a5 must be an character type object (C, N, D, T or String type)."</b>
    If anyone know, what is the solution, please let me know.
    Thanks!
    Puneet.

    Hi,
    Try declaring the Hex chars using the ABAP char utilities. This is just a sample piece of code on how to declare and use:
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA:  ws_lf TYPE c VALUE cl_abap_char_utilities=>cr_lf.
    data:    c_newline           TYPE x VALUE '0D'.  [ it is zero D, for carriage return ]
    ws_lf = c_newline.
        CONCATENATE it_tab-maktx
                    ws_lf
                    ws_template
                    INTO it_notificatn-template.
    Hope this helps...
    Regards
    Subramanian

  • Windows 8.1 Pro Non-Unicode Issue: CS6 Standard

    I use WIndows 8.1 Pro English, I installed the CS6 Standard in Spanish, I changed the language for the non-unicode programs to spanish but still cannot use the Illustrator, I am having issue only with the Illustrator, noting that in the installation I was prompt for Spanish(Latin America) or Just Spanish, I clicked on Spanish(Latin America), but in the non-Unicode languages there is no Spanish(non-Unicode) they have Spanish per countries.

    I have the same problem did you manage to find the solution? is impossible to contact adobe helpers, they just hide all contact

  • Issue with class loading -  Java concurrent Program

    Hi ,
    We are facing a strange issue for one of our customer.
    Scenario :
    We have a Java Concurrent Program (A.java ) which refers another Java class (B.java) , we modified the file B.java for a fix and created a patch. after applying the patch and bouncing the apache ,we found that B.java is loaded the old version of the class file.
    We asked them to restart the concurrent manager and related services, still we see that old version of B.java is loaded. (confirmed by adding code throwing exception - throw new Exception from a specific line and found that its not getting thrown at run-time)
    Any clue on this?.
    Thanks
    Joseph George

    Deployed this file both tier - Database server tier and Application server tier.
    I have face same issue, Concurrent program not picking file application server tier. its picking file from database server tier.
    Thanks, Avaneesh

  • Java JCo SAP XI RFC SAP R/3 6.C ... Unicode issue

    Hello,
    My scenario is very simple. I'd like to connect a Java program to a SAP R/3 (MDMP) for RFC calls (in both direction), using SAP XI (some of the RFC calls will redirected to some other systems). I use SAP JCo v2.1.8 and tried with Java 1.4.2_09 and Java 6.0.
    It works well when the Java program is calling a function module, but when SAP R/3 is doing it, the returned texts looks like: S#A#P# #J#C#o# #v#2#.#1#.#8# #(#2#0#0#6#-#1#2#-#1#1#)# (the text should be SAP JCo v2.1.8).
    It looks like an issue with Unicode. Although I didn't check the Unicode checkbox in the RFC sender adapter (the RFC receiver one doesn't offer the possibility to specify unicode or not).
    Do anyone have a solution ? Is it a code in the Java program or something to set in SAP XI / SAP R/3 ?
    Thanks in advance for your help.

    This is a workaround solution. In the case of this prototype it is ok, but the final plan is to migrate a web based application. It was directly connected to one SAP R/3, but now we would like to connect it to SAP XI because a few RFC calls will be re-directed to some other systems, but the majority of them will we'll still be sent to the SAP R/3. We don't want to make development on this part for cost reason (and time). Plus on some text there are the "#" character that is legitimate.

  • Post Goods Issue - error : Class type does not exist - Message no. VK662

    Hi,
    I am trying to do Post Goods Issue and getting this error: Class type does not exist
    When double click on the error, it shows it is a message no vk662.
    Any help to resolve it is appreciated. Thanks in advance.
    -Sri

    Sri
    There is a problem in batch determination.
    The batch you assigned to the material does not have a class or if it has a class, that class does not exist.
    Display the batch from the delivery item  using MSC3N and go into the Classification tab. You should have a class of class type 22.  See if that class exists in CL03 and its status in basic data tab. Work on these lines and revert.
    Hope this helps.

  • ABAP Unicode issue...

    ABAP gurus,
    We are in the process of upgrading our SAP from 4.6C to ECC 6.0. I am trying to pass some of the programs from UCCHECK. I got following exceptions:
    "XK_HEX00" must be a character-type data object (data type C, N, D, T or STRING)
    "XK_HEX09" must be a character-type data object (data type C, N, D, T or STRING)
    "XK_HEXLF" must be a character-type data object (data type C, N, D, T or STRING)
    We have following statements in the program:
          xk_hex00(1)   type x value '00',      "binaer null
          xk_hex09(1)   type x value '09',      "Steuerzeichen Tabulator
          xk_hexcr(1)   type x value '0D',      "Steuerzeichen CR
          xk_hexlf(1)   type x value '0A',      "Steuerzeichen LF
    Please help.
    Thanks.
    Rajesh.

    Please help how to convert hexadecimal values '00', '09', '0D' and '0A' in type C for unicode validation. I know there is a class called CL_ABAP_CHAR_UTILITIES. But I don't know what attribute to use for what ?
    Thanks.
    Regards,
    Rajesh.

  • Help: Unicode issue in Snow Leopard not in Leopard?

    Hello All,
    I've finally switched from Leopard to Snow Leopard.
    I'm loving the improvements.
    But, I do have one issue.
    I like to keep things tidy and orderly on my computer.
    In Leopard I had been using a number of characters from the Unicode Miscellaneous Symbols and Pictorgraphs block (U+1F300-1F3FF) in the names of my folders and files, to make them easy to organise and quickly identify (a book for books, a family for family, a plane for travel, etc).
    Under Leopard, this system worked very well.
    Under Snow Leopard, it's not working at all. Even though I've placed the correct font in the System folder (Symbola).
    Is there something I can do to fix the problem?
    Why did it work under Leopard and not work under Snow Leopard?
    I'm including a screenshot of the problem in just one folder on my computer.
    But the problem is everywhere.
    Incidentally, the airplane is actually from a different Unicode block (well within the BMP).

    Looks like a bug.  You can report here:
    http://www.apple.com/feedback/macosx.html

  • Unicode Issue - Corrupted long texts in Plant Maintenance Work Orders

    we're having an issue regarding corrupted texts in a Unicode system. here's the scenario:
    - long text came from 4.5b wherein, of course, the japanese characters are viewable either in EN or JA logon
    - now, this long text when viewed in our acceptance/testing system which is already, take note, already in unicode long text is garbled. both in EN and JA logon long texts are garbled. we are expecting that since the system is already in unicode it can now support code page for japanese.
    (here's the tricky part -- the one seen in the field is properly displayed but when trying to view the complete long text, those that are not in the field are garbled.)
    - we also have some scenarios that came from 4.5b, when viewed in the testing system while not unicoded - it's garbled in EN. this is normal since it's still non-unicoded. and of course when viewed using JA logon it's not corrupted anymore. we're expecting that this will also be the same with the issue above. but it's not.
    please see link for screenshots. [http://img16.imageshack.us/img16/9760/unicodeissuee.jpg|http://img16.imageshack.us/img16/9760/unicodeissuee.jpg]

    i know it's weird.
    but then i talked to a friend, she's an abaper. she said that those that can be converted or properly viewed are texts elements in database tables and those that are like free texts or comments can not. and there's no possible way for this but to manually retype everything.
    makes sense right.

  • Flex Mobile Unicode issue

    I am building an application for android using flash builder 4.6. I am trying to display unicode character as in this xml "http://www.bbc.co.uk/hindi/index.xml"  Characters are displayed correctly when run on simulator in flash builder but when installed on android, it displays square boxes [][][][][][][][][]. How can i go about resolving this issue so that font embeds correctly *

    Sounds like you are missing mobilecomponents.swc

  • Http_get encoding - unicode issue

    Hi all,
    i have an was nw2004s unicode system and I want to use function http_get to see the contents of a file.
    with se37 testing i get english characters correct, but greek characters come wrong.
    I performed tests with creating a file with  notepad and saving it in all availbale formats (ansi,unicode,utf8).
    Can you help?

    What version of OSB/ALSB you are using? Because the support for HTTP verbs, is a new feature introduced as described in article 'Using REST with Oracle Service Bus' at http://blogs.oracle.com/jamesbayer/osb/
    AquaLogic Service Bus 3.0 (as well as 2.x releases of ALSB) supports GET and POST use cases, but does not have developer friendly support for HTTP verbs PUT and DELETE out of the box. For GET requests, pertinent information is available in the $inbound/ctx:transport/ctx:request/http:relative-URI variable. To parse query string information, use $inbound/ctx:transport/ctx:request/http:query-string. A common pattern for HTTP GET is to use XQuery parsing functions on that variable to extract extra path detail, but the $body variable will be empty. For POST requests, the same applies, but the $body variable may have a message payload submitted as xml, text, or some other format.
    I have heard from product management that first class support for HTTP verbs such as PUT and DELETE is planned in the next release of OSB, which is scheduled sometime in the Fall of 2008. For customers that require PUT and DELETE verb support immediately, OSB does have a transport SDK, which could be used to add inbound and outbound REST support. That approach would require some development. There are other inbound options besides the transport SDK, such as a basic approach of deploying an HTTP servlet with doDelete() and doPut() implemented. This servlet could be deployed on OSB instances and forward to specific proxies to provide PUT and DELETE support. An outbound option would be to use a java call-out to invoke a REST style provider.

Maybe you are looking for