Special characters in aggregate object mapping

I have the following code generated by oracle toplink workbench, any ideas? The
special -> breaks the query in Oracle. Any help appreciated. Thanks,
Code generated by toplink workbench:
===========================
AggregateObjectMapping currencyPairMapping = new AggregateObjectMapping();
     currencyPairMapping.setAttributeName("currencyPair");
     currencyPairMapping.setReferenceClass(com.integral.finance.currency.CurrencyPairC.class);
     currencyPairMapping.setIsNullAllowed(true);
     currencyPairMapping.addFieldNameTranslation("IdcBrokAdapProd.baseCrncId", "baseCurrency->baseCrncId_IN_REFERENCE_IdcFakeCrncPair_IdcInstr");
     currencyPairMapping.addFieldNameTranslation("IdcBrokAdapProd.varCrncId", "variableCurrency->varCrncId_IN_REFERENCE_IdcFakeCrncPair_IdcInstr2");
     descriptor.addMapping(currencyPairMapping);

Here is a more relavent aggregate object mapping:
RelationalDescriptor descriptor = new RelationalDescriptor();
     descriptor.descriptorIsAggregate();
     descriptor.setJavaClass(com.integral.finance.fx.FXBusinessCalendarC.class);
     // Descriptor Properties.
     descriptor.setAlias("FXBusinessCalendarC");
     // Query Manager.
     // Event Manager.
     // Mappings.
     DirectToFieldMapping lagMapping = new DirectToFieldMapping();
     lagMapping.setAttributeName("lag");
     lagMapping.setFieldName("lag->DIRECT");
     descriptor.addMapping(lagMapping);
     DirectToFieldMapping lagTypeMapping = new DirectToFieldMapping();
     lagTypeMapping.setAttributeName("lagType");
     lagTypeMapping.setFieldName("lagType->DIRECT");
     descriptor.addMapping(lagTypeMapping);
     OneToOneMapping holidayCalendar1Mapping = new OneToOneMapping();
     holidayCalendar1Mapping.setAttributeName("holidayCalendar1");
     holidayCalendar1Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     holidayCalendar1Mapping.useBasicIndirection();
     holidayCalendar1Mapping.addForeignKeyFieldName("holidayCalendar1->holCal1_IN_REFERENCE_IdcFakeBusCal_IdcHolCal", "IdcHolCal.id");
     descriptor.addMapping(holidayCalendar1Mapping);
     OneToOneMapping holidayCalendar2Mapping = new OneToOneMapping();
     holidayCalendar2Mapping.setAttributeName("holidayCalendar2");
     holidayCalendar2Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     holidayCalendar2Mapping.useBasicIndirection();
     holidayCalendar2Mapping.addForeignKeyFieldName("holidayCalendar2->holCal2_IN_REFERENCE_IdcFakeBusCal_IdcHolCal2", "IdcHolCal.id");
     descriptor.addMapping(holidayCalendar2Mapping);
     OneToOneMapping holidayCalendar3Mapping = new OneToOneMapping();
     holidayCalendar3Mapping.setAttributeName("holidayCalendar3");
     holidayCalendar3Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     holidayCalendar3Mapping.useBasicIndirection();
     holidayCalendar3Mapping.addForeignKeyFieldName("holidayCalendar3->holCal3_IN_REFERENCE_IdcFakeBusCal_IdcHolCal3", "IdcHolCal.id");
     descriptor.addMapping(holidayCalendar3Mapping);
     OneToOneMapping noLagHolidayCalendar1Mapping = new OneToOneMapping();
     noLagHolidayCalendar1Mapping.setAttributeName("noLagHolidayCalendar1");
     noLagHolidayCalendar1Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     noLagHolidayCalendar1Mapping.useBasicIndirection();
     noLagHolidayCalendar1Mapping.addForeignKeyFieldName("noLagHolidayCalendar1->noLagHolCal_IN_REFERENCE_IdcFakeBusCal_IdcHolCal4", "IdcHolCal.id");
     descriptor.addMapping(noLagHolidayCalendar1Mapping);
     OneToOneMapping noLagHolidayCalendar2Mapping = new OneToOneMapping();
     noLagHolidayCalendar2Mapping.setAttributeName("noLagHolidayCalendar2");
     noLagHolidayCalendar2Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     noLagHolidayCalendar2Mapping.useBasicIndirection();
     noLagHolidayCalendar2Mapping.addForeignKeyFieldName("noLagHolidayCalendar2->noLagHolCal_IN_REFERENCE_IdcFakeBusCal_IdcHolCal4", "IdcHolCal.id");
     descriptor.addMapping(noLagHolidayCalendar2Mapping);
     OneToOneMapping noLagHolidayCalendar3Mapping = new OneToOneMapping();
     noLagHolidayCalendar3Mapping.setAttributeName("noLagHolidayCalendar3");
     noLagHolidayCalendar3Mapping.setReferenceClass(com.integral.finance.dateGeneration.HolidayCalendarC.class);
     noLagHolidayCalendar3Mapping.useBasicIndirection();
     noLagHolidayCalendar3Mapping.addForeignKeyFieldName("noLagHolidayCalendar3->noLagHolCal_IN_REFERENCE_IdcFakeBusCal_IdcHolCal4", "IdcHolCal.id");
     descriptor.addMapping(noLagHolidayCalendar3Mapping);
     OneToOneMapping rollConventionMapping = new OneToOneMapping();
     rollConventionMapping.setAttributeName("rollConvention");
     rollConventionMapping.setReferenceClass(com.integral.finance.dateGeneration.RollConventionC.class);
     rollConventionMapping.useBasicIndirection();
     rollConventionMapping.addForeignKeyFieldName("rollConvention->rollConvention_IN_REFERENCE_IdcFakeBusCal_IdcCalc", "IdcCalc.id");
     descriptor.addMapping(rollConventionMapping);
     return descriptor;

Similar Messages

  • Special Characters in a Java Mapping

    Hello everybody,
    in our XI we have an Interface Mapping that uses a Java Mapping, this Mapping is doing a XSD-Validation of a XML-File.
    In one XML-File there is more than one special Character (ó, O², ü..). The XI-Parser hat no problems with these characters except one, eventhough this character (ó) exists more than once in the document, the parser doesn't recognize it in only one position (While Parsing the "ó" turns to a "��").
    I tested the Mapping in Eclipse and it works correctly. The question is, why the special character could not be interpreted in only one position in the document.
    I guess it is a bug in the XI-Parser.
    I will be thankful for your help.
    Best regards
    Adnane

    This ó has the same Hex-code as all the others and it is in the same environment.
    I definned in the source XML in the repository test the code Page in the XML-header as follows :
    <?xml version="1.0" encoding="UTF-8"?> and that works. But when I test the Process at the runtime the problem above occurs.
    I think that the interface Mapping is getting a source XML without a header, which defines the encoding as UTF-8, because when i test the Mapping in the repository with the XML-file without the Header information, the problem with the ó occurs.
    My question is, where can i define the Encoding of the source-XML of this Interface Mapping?
    regards

  • Special characters issue with Nokia Maps on N95

    Hi there,
    when using Navigation in conjunction with Nokia Maps on my N95, all streets and towns which contain any special character in their name (for example: é, è, ü, ä, ö, etc…) do appear as unreadable garbage on the screen of the N95.
    I only noticed the problem after having purchased the 3 years license Navigation upgrade (EUR 99.99) and immediately notified Nokia. That was back in October. Since then I have called them at least 10 times and ultimately I have asked for a refund as no solution is still available.
    In all these calls with Nokia, the only reasonable argument I heard was that maybe (!!!) the new software update version 20.0.015 released back at the end of November could solve the issue. Unfortunately, for my phone (which is a branded one) the update is not yet available.
    Today, after calling them again, I was told that Nokia’s policies do not foresee refunds and therefore my request has been rejected. I was told to bring my phone to a Nokia Store and see if they can help me (I don’t see how). I was also told that maybe I would have to send-in the phone for repair.
    This is soooo frustrating that despite the 3 months of patience and all the money spent for the N95 (not quite cheap), the navigation upgrade and the phone calls to Nokia, I still have the same issue. I will probably end up filing a complaint with a monthly consumer’s magazine in the hope they will publish my story.
    After all, it may not even be Nokia’s fault but rather the guys who are responsible for the maps, but if Nokia accepts to have a commercial venture with a vendor, than they also accept liability for the joint product. And by turning down my legitimate request for refund, they have proven not to give a **bleep** about people like you and me.
    Forgive me for the long post - needed to release some of the frustration...

    I have been using an N95-8GB since Nov.'07. From my experience with this phone that has a built-in mass memory besides the phone memory. I had trouble retrieving some of the softwares I have installed. For eg. I have saved some themes in the mass memory & I could not find it when I want to delete it. There are some 3rd parties games software inside where I cannot even delete
    This is what I don't like about the phone. I have bought an N82/Black recently as it uses an external memory card.
    Coming back to Nokia maps. Personnaly, I don't think they are that good & I have problem downloading it into my phone from my PC after having downloaded it from Nokia.
    By the way the Nokia map is not even the latest map 2.0. Is still a 1.0
    I used Navfone map software & it works OK in the 8GB. You have to purchase it.
    I have used a couple of N-series phones in the past ie. N-90, N-70, N-71, N-73, N-80/Black, N95, N-95/8GB & now N-82.
    Common with all N-series phones. After you have disconnected when you are done with your call you have to wait for a while before the word "disconnected" disappears.
    The more features it has, the more problem you are gonna to encounter.
    Unless you want to download softwares into your phone & have a good camera thats where the N series phones come in.
    For normal usage, a 40 series phone will suffice.

  • Accents and special characters - how to manage

    Hi,
    please could you explain how it is possible to handle accents and other special characters in Business Objects XI 3.1 (Universes and Reports)? Which are the parameters/settings I need to configure for
    Database (ORACLE)
    Application Server (AIX)
    Universe
    WebI
    I want to display italian accents ò à è ù ì and some special characters like '@'. Even if they are correctly stored in DB, in WebI I retrieve characters without accent and a '?' for '@'
    Any suggest?
    Then, one more thing ...I noticed that creating a new report WebI, characters with accents appear without accents, instead if I create a report with Rich Client and I publish it, then accents are correctly displayed also opening the report with Web Intelligence. I have the application server on AIX, but Rich Client runs on WIN Server ...
    Thanks a lot
    Edited by: Tube Girl on Mar 22, 2010 4:25 PM

    Hi,
    I had almost the same problem (only different language) and manged to solve it after "google-ing" these links:
    http://www.forumtopics.com/busobj/viewtopic.php?p=658760&sid=7fd77de133ee32213d987cb1550ae568
    https://oraclespin.wordpress.com/2008/05/01/setting-nls_lang-for-oracle/
    http://docs.oracle.com/html/B13804_02/gblsupp.htm
    FYI, system is AIX 5.3 with Oracle 10g.
    I've edited .profile for boxi user and added appropriate export of NLS_LANG variable, then restarted BO and now reports are correct.
    I guess you should try adding this line to .profile of your boxi user
    export NLS_LANG=ITALIAN_ITALY.WE8MSWIN1252
    then restart and see results.
    Hope this helps,
    regards!

  • Regd: Handling of special characters in XML

    Hi ALL,
    i am using java mapping to conevrt IDOC XML to Flat file using SAX parse and then reading the whole content into a single Filed,the output of the java mapping is the input for graphical mapping .
    My problem is there may be some special characters  in the input IDOC. when ever these special characters come my java mapping is not able to Parse the IDOC.
    Please let me know how can handle this special characters.
    Thanks,
    hemanth.

    Hi ,
            Java has some characters reserved which is normally used to declare the Entity Name. To handle such kind of situations, you can replace these characters with these special characters, which get substituted automatically while parsing the XML file.
    Refer:
    http://www.javacommerce.com/displaypage.jsp?name=saxparser3.sql&id=18232
    I hope it helps.
    Regards,
    Anurag Gargh
    Edited by: Anurag Gargh on Aug 11, 2009 3:41 PM

  • Runtime mapping error due to the special characters in source XML

    Hi All,
    I am facing problem with the special characters coming in the source XML message. it is failing at runtime in the mapping level. when i test with the same XML message manually in graphical message mapping it works.
    it looks like a UNICODE problem which we face noramlly in ABAP as well. but looking for a solution.
    For your reference i am giving the data which i am recivieing and the error message below.
    the problem is with the character .
    Source payload error:-
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    An invalid character was found in text content. Error processing resource 'file:///C:/WINNT/profiles/CG1009/Local Settings/Temp/a173eb8_2721HTML000003'. Line 26, Position 22
    Early response is appreciated.
    Thank you

    If your message contains special chars and the encoding is not being set, then the error is of the system which is sending the message, not XI's. The webserver should return the correct encoding.
    At adapter engine, You can set the enconding for the messages you send (for example, in Soap adapter module, set XMBWS.XMLEncoding parameter with value iso-8859-1),  but not for the messages you receive.
    As a workaround, you could try using a Java Mapping to change the encoding manually. For that, set the encoding of the OutputFormat of the XML you'll serialize. Try the following code piece for the mapping (inside a try/catch declaration):
    DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
    DocumentBuilder documentBuilder = factory.newDocumentBuilder();
    Document input = documentBuilder.parse(in);
    OutputFormat format = new OutputFormat(XML, "ISO-8859-1", false);
    XMLSerializer serializer = new XMLSerializer(out, format);
    serializer.serialize(input);
    For that code to work, you'll need to import xercesImpl.jar and xml-apis.jar in Imported Archives of mapping objects, in Integration Repository. Both are available at http://xerces.apache.org/xerces2-j/ .
    Regards,
    Henrique.

  • Mapping error because of special characters

    Hello,
    We are extracting data from SAP system and sending it thru XI to 3rd party system (writing xml files on to file server).
    Now, because of presence of few special characters in the data, there is a mapping exception error in XI.
    The data which is causing the issue is "ABRANCENTRO   MEDIAÇÃO IMOBILIÁRIA".
    In SXMB_MONI, i see that this is failing is Request Message mapping step.
    We can not remove special characters as this is master data. How can i fix this issue?
    DO i need to use any modules in communication channel for this purpose?
    Any leads are highly appreciated.
    Thanks,
    Chandra

    Hi Chandra,
    an UDF cant help you assumedly coz that characters lead to "not wellformed" XML. Any parser would complain about that. So the PI parser would throw an error before executing the UDF.
    The question is: what does the receiver expect? You wrote you like to write xml files to a server. But if the XML is not wellformed, the receiver would not be able to parse them, and therefore usually not able to process them.
    If you really want to create such a file (not wellformed XML) you can create that with a not parsing mapping (ABAP or Java). So you map the message just with string operations. This is not very recommentable and only possible for very simple mapping cases.
    Regards,
    Udo

  • Special characters in XML built using the DOM object

    I am using the DOM object to build xml but I am having problems with special characters. I have a Element object that I create attributes in. Most special characters like the &, ", or ' are translated for me (amp; quot;, acute; put a & in front of those, if I do it here the browser will translate them into the logical character) but I am having a problem with the � character. The DOM object does not translate this. If I do it my self to(eacute; same here add a & in front) before adding the string to the attribute then the DOM object translates it to (amp;eacute; add a & in front of the amp; not in front of the eacute;). As you can see the DOM object translates the & instead of recognizing that it is a HTML character. Can anyone give me a hand?

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

  • JAVA Mapping: Handle Special characters like u00E4,u00FC an so on

    Hi everybody,
    we have a JAVA Mapping that gerenates text nodes with special characters.
    The generated XML is later used in an graphical message-mapping.
    During runtime we ge the trace/error:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error:
    com.sap.engine.lib.xml.parser.ParserException: Unsupported character: 31(:main:, row:1, col:2498) at
    com.sap.aii.mappingtool.tf3.Transformer.checkParserException
    Does anybody know, how to modify the JAVA-mapping to have a workaound for this problem?
    Thanks
    Regards Mario
    Edited by: Mario Müller on Jul 22, 2008 4:33 AM

    Hi Mario,
    As java mapping does not validate the xml,the output gets created but if u have to use the xml structure,the u will have to include the following.
    Assume u r using a write method to write the output xml,then
    check for tspecial charactters like &,<,>.' etc and replce them as shown below
    private void write(String s)
         //Traverse through the string
    for (int i=0 ; i < string.length();i++)
         String s1 = data.substring(i, i + 1);
              if (s1.equals("&"))
                   write ("&amp;");
              else if (s1.equals("<"))
              write("&lt;");
              else if (s1.equals(">"))
              write("&gt;");
              else if (s1.equals("\""))
              write("&quot;");
              else if (s1.equals("'"))
              write("&apos;");
              else
              write(s1);
    Should help u out
    Edited by: Mohd Tauseef Ibrahim on Jul 22, 2008 11:08 AM
    Edited by: Mohd Tauseef Ibrahim on Jul 22, 2008 11:09 AM

  • Using the Alt key and numeric code from Character Map to insert special characters in Office 2010 programs

    I am used to using the ALT key and specific numbers for characters from the Character Map to place characters in Office programs like Outlook, Word, Excel. I have a new Lenovo T530 Laptop running the Windows 7 Professional Operating System. I have MS Office
    2010 Home and Business. In previous versions of Office, this feature worked first time, every time. On this machine, it is a 'no go' situation. Lenovo tech support says it is a Microsoft issue and Microsoft says it is a Lenovo issue. Either way, I'm having
    difficulty resolving the issue and getting this wonderful featrure working for me. Any suggestions and guidance would really be appreciated. Thank you. 

    Hi,
    Haven't been verified this myself, but since this feature require to use the numeric keypad to input the value, I suspect the cause of the issue is the laptop keyboard.
    To workaround this issue, try enable the numeric keypad from your laptop keyboard, normally, we can enable it by press
    Fn + Num Lock.
    After that, try insert characters again.
    Max Meng
    TechNet Community Support

  • Time-dependent Vendor Master & Handling Special Characters

    Hi,
    I need to extract time-dependent Vendor Master.
    1. The data source for <b>0VENDOR</b> does not have fields to hold the valid date range.
    2. Does the Master data in R/3 for Vendors will hold the valid date range?
    3. The text for <b>0VENDOR</b> provides time-dependent, but how to map the <b>valid from</b> and <b>valid to</b> fields?
    Handling Special Characters:
    We are trying to extract data from Legacy system via DB Connect. The item text field consists of special characters. Of course in BW customization we can specify all the special characters to consider. But the special character we observed is 'square' symbol i.e. 'new line character' in Oracle. We are updating this to an ODS object. When looked at error log, observed that green light for the number of records transferred and updated, but finally when it load into ODS object and activates popping up the error message saying 'could not recognize special character'.
    Please help me getting the 2 issues resolved.
    Thanks in advance.
    Regards,
    Sudhakar.

    Hi Everyone,
    Thanks for inputs on Special characters issue...
    Finally resolved with below piece of code in the start routine:
    DATA: FLAG,
          OFF TYPE I,
          LEN TYPE I VALUE 1,
          ALLOWED_CHAR(95) VALUE
    '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ`~!@#$%^&*()-_=+ ' &
    'abcdefghijklmnopqrstuvwxyz:;<>,.?/|\{}[]"'''.
    CONSTANTS: C_CHAR VALUE '-'.
      LOOP AT DATA_PACKAGE WHERE NOT /BIC/ZI_DESC IS INITIAL .
        DO.
          IF DATA_PACKAGE-/BIC/ZI_DESC CN  ALLOWED_CHAR.
            REPLACE SECTION OFFSET SY-FDPOS LENGTH LEN OF
                    DATA_PACKAGE-/BIC/ZI_DESC WITH C_CHAR.
            FLAG = SPACE.
          ELSE.
            FLAG = 'X'.
          ENDIF.
          IF FLAG = 'X'.
            EXIT.
          ENDIF.
        ENDDO.
        MODIFY DATA_PACKAGE.
      ENDLOOP.
    if abort is not equal zero, the update process will be canceled
      ABORT = 0.
    I have seen the link sent by 'Eugene Khusainov' today. Thought putting my piece of code that may help others...
    Regards,
    Sudhakar.

  • How to escape or remove the special characters in the xml element by regula

    Hi members,
    How to escape or remove the special characters in the xml element by regular expression  in java??
    For Example ,
    <my:name> aaaa </my:name>
    <my:age> 27 </my:age>
    In the above example , i have to retrieve the value of the <my:name> Element(For examlpe -- i have to get "aaaa" from <my:name> tag)...
    How to retreive this value by using DOM with XPATH in java
    Thanks in Advance

    Hi members,
    I forget to paste my coding for the above question....This is my coding......In this display the error...... Pls reply ASAP.......
    PROGRAM:
    import java.io.IOException;
    import java.util.Hashtable;
    import java.util.Map;
    import org.w3c.dom.*;
    import org.xml.sax.SAXException;
    import javax.xml.parsers.*;
    import javax.xml.xpath.*;
    public class DOMReaderForXMP {
         static Document doc;
         static XPath xpath;
         static Object result;
         static NodeList nodes;
         public DOMReaderForXMP() throws ParserConfigurationException, SAXException,
                   IOException, XPathExpressionException {
              DocumentBuilderFactory domFactory = DocumentBuilderFactory
                        .newInstance();
              domFactory.setNamespaceAware(true);
              DocumentBuilder builder = domFactory.newDocumentBuilder();
              doc = builder.parse("d:\\XMP.xml");
              XPathFactory factory = XPathFactory.newInstance();
              xpath = factory.newXPath();
         public static void perform(String path) throws Exception {
              result = xpath.evaluate(path, doc, XPathConstants.NODESET);
              nodes = (NodeList) result;
         public void check() throws Exception {
              perform("//my:name/text()");
              if (!nodes.item(0).getNodeValue().equals("application/pdf")) {
                   System.out.println("Mathces....!");
    ERROR:
    Exception in thread "main" net.sf.saxon.trans.StaticError: XPath syntax error at char 9 in {/my:name}:
    Prefix aas has not been declared

  • Dtterm and xterm - problems with special characters

    I run SGD 4.2 on a Solaris 8 box with 50 users globally. This installation replaces a 3.42 installation. Clients are all Solaris 8.
    Currently my most nagging problem is that I have "special characters" (at least on a german keyboard layout). @, �, `, ' are not working in xterm or dtterm, while they did on 3.42.
    As we have users connecting from all over the world, I have no idea how to fix this, so every user has "his/her own" keyboard setup.
    So far I tried with and without "Lock keymap" in Object Manager | Attributes | Advanced
    and "Use LANG variable" vs. "Use client's input locale" in Array Manager | X Protocol Engine | Keyboard Map.
    I'm quite new new to SDG and look for an Amin training currently, but this is too urgent to wait for this. Anyone an idea, please?

    Hi,
    Did you get an answer after 3 years?? :-)
    Whe do have the same problem.
    SUSE 10.1 sp1
    SSGD portal.
    Only when we connect thru de portal whe have this problem.
    When we connect straight to a terminal server and we open Winword than it ok, but when we open thru the terminal server de portal and logon to it, than then keyboard setting is changed.
    Any help??
    Best regards Rob de Bruin

  • Displaying special characters in ALV report.

    Hi Experts,
    Can we display special characters in ALV reports? Special characters such as tick mark.(Like in character map(Font Bookshelf  Symbol 7) of windows ).
    I tried with icons in ALV report, I was able to display tick icon in the ALV report, but when we export the report in to a excel, the icons comes in as Hexadecimal code.
    Can any we display special characters like tick in ALV report or display the icons in excel aswell?
    I will be gratefull for the <urgency reduced by moderator> response.
    Regards,
    Sharath.
    Edited by: Thomas Zloch on May 10, 2011 10:26 AM

    Sharath,
    I think it is possible to do so.
    Please check this link.
    http://www.sapfans.com/forums/viewtopic.php?f=13&t=322569
    Thanks,
    Guru.

  • Special characters in XML structure when prepared using String

    Hi,
       I am preparing an XML structure using 'String'. I print the prepared XML structure in the server log. Issue is that I am seeing extra characters([[ and ]]) that I am not printing.
    Please let me know how to get rid of those.
    Code Excerpt
            String xmlHeader = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>";
            String lsb_xmlcon = xmlHeader;
            logger.info("ReqXMLString Process  1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.1  --->" + lsb_xmlcon);
            lsb_xmlcon = lsb_xmlcon +("<REQUEST>");
            lsb_xmlcon = lsb_xmlcon +("\n");
            logger.info("ReqXMLString Process  1.2  --->" + lsb_xmlcon);
    Log
    ReqXMLString Process  1  ---><?xml version="1.0" encoding="utf-8" ?>
    ReqXMLString Process  1.1  ---><?xml version="1.0" encoding="utf-8" ?>[[
    ReqXMLString Process  1.2  ---><?xml version="1.0" encoding="utf-8" ?>[[
    <REQUEST>
    Thanks,
    Message was edited by: 996913
    This issue is observed only while running the code in server, not from Jdev.
    When we append the additional tags without new line character, "\n", there are no extra characters being added. Also, in other case also. where we used "Marshaller" to prepare the XML, we have seen this issue.
    After we set the below property to false, we got rid of the extra characters.
                            jaxbMarshaller.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, false);
    Apparently the insertion of new line when the code runs on server(Weblogic 10.3.6.0) is creating the issue.
    Please let me know if anyone has come across a similar scenario.
    Thanks,

    I am building this XML in a servlet so ,right, DOM does process XML (even though a valid HTML file can be loaded into a DOM object) but if you build XML using DOM then write the XML out using PrintWriter and Transformer objects this will cause the XML to print out in your browser. If you view source on this XML you will see that the DOM object has translated all special characters to there &xxxx; equivalent. For a example: when the string (I know "cool" java) gets loaded into a attribute using the DOM object then wrote back out it looks like (I know &xxx;cool&xxx; java) if you view the source in your browser. This is what it should do, but the DOM object is not change the � to the "&xxxxx;". This servlet is acting as a gateway between a Java API and a windows asp. The asp will call the servlet expecting to get XML back and load it directly into a DOM object. When the windows DOM object gets the xml that I am returning in this servlet is throws a exception "invalid character" because the � was not translated to &xxxx; like the other characters were. According to the book HTML 4 in 24 hours (and other references) the eacute; or #233; are how you say "�" in HTML or XML. How do you say it?

Maybe you are looking for