Problem in the character conversion

Hi Guys,
I am facing problem in the character conversion
I am posting data from SAP to third party system using XI , by converting whole input message to a String .I am using SOAP adapter to communicate XI to third party system.
Thirdparty system needs String to be wrapped in CDATA so that it will not choke by looking at the special characters. I did Wrap the output string in CDATA, using ABAP mapping but when I do that XI is converitng  arrow brackets < and >. into &lt and u2018&gtu2019   my assumption is it is double encoding.
example -
before map -  <AppSystemInfo>
after mapping  it is converted as -  <![CDATA[ &ltAppSystemInfo&gt]]>
Edited by: Vamsi on Jun 17, 2010 10:00 PM
Edited by: Vamsi on Jun 17, 2010 10:01 PM

Did you try to see the output?
bcz if you are trying this in mapping testing it will show you like this as this conversion if for xml, so xml will not do anything wrong with the special characters, so for that special characters will be converted like that.
Once try to run end to end interface and try to see at receiver side that how data looks like.
Thanks,
Hetal

Similar Messages

  • Problem with the date conversion

    Hi Friends,
    i am facing the problem with the date conversion,  Actuall my requirement is to pass the date to the screen based on the user setting roles(SU01).
    I have fetched the user setting date format by using the funciton module SUSR_GET_USER_DEFAULTS, The function module picks the exact user date setting (Like as MM/DD/YYYY, MM.DD.YYYY, DD.MM.YY).
    After that i have implemented the FORMAT_DATE_4_OUTPUT funciton module for converting of the user role setting date format into system  date format.
    for the english language case the funciton module FORMAT_DATE_4_OUTPUT works fine but the funciton module not supported for other languages
    Can you please provide the Function Moudle for user setting date conversion.
    The funciton module is most important for us,
    Thanks
    Charan
    Moderator message: date conversion questions = FAQ, please search before posting.
    Edited by: Thomas Zloch on Dec 21, 2010 2:19 PM

    Hope this logic helps you.
    DATA LF_DATE    TYPE DATS VALUE '21122010'. " 21-dec-2010
    DATA LF_DATE_BI(10).
    WRITE LF_DATE TO LF_DATE_BI.  "Now LF_DATE_BI contains the date in user format
    "Now populate the value LF_DATE_BI to the screen field

  • Boolean Search problem with the "&" character

    I need to perform a Boolean search and include names such as "John Wiley & Sons", "R & D", for example, that have the "&" character in it. The problem is that Acrobat considers the character "&" as an "AND". I have tried to use "\&" but it didn't work. Does someone know if it is possible to consider "&" as a character, instead of a logical operator, in a Boolean search, and if yes, how?

    I've already done it.
    Do you think this will help?
    I doubt that Apple will listen to us. Users with a problem that occurs quite a lot.

  • Printing problem with the character u00D8

    Hi SAP Experts,
    I have a very unique problem while printing the character Ø thru the Quality Reports.
    I am able to see the said character in print preview of the quality report. I am able to see the same character stored in the respective table.
    But it is not getting printed on the paper when I take a print out of the report. I took print out on various printers. But result is same.
    What will be the reason for such error? It is due to printer setting or SAP internal issue?
    Please guide me.
    Thank You
    Shailendra

    Hi Suhas,
    Pls. refer SAP Note
    Note 535936 - Printing Windows-1252 special characters
    Best regards,
    Prashant

  • Problem with the "\" character.

    Hello
    Why I can not compile the folowing source (very short) :
    public class Test4 {
    char tmp = '\u005C';
    public static void main(String args[]){
    the error is :
    src/Test4.java:2: unclosed character literal
    char tmp = '\u005C';
    ^
    1 error
    The problem is the same with javac and jikes.
    FYI, the 005C is the "\" character. If I use an other one, no problem, I can compile and run the .class file.
    Anyone can help me ?
    Best regards from Bordeaux, France.
    K96

    ok, you're right. But, my problem is a little bit different :
    I would like to replace the "\n" character (new line) by the 2 characters "\n".
    I test this source code :
    String tmp = "First line\nSecond line";
    tmp.replaceAll("\n", "\u005C\u005Cn");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\n");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\\\n");
    System.out.println(tmp);
    The 3 results are the same :
    First line
    Second line
    I never have "First line\nSecond line".
    Best regards.
    K96
    PS : The objective is to write the string in a SQL request.

  • Adobe forms - problem with the character "9"

    I have the problem with printing Adobe forms that were introduced with Russian country version.
    Funny enough I have no problems with russian characters. They all print all right.
    We have however the problem with character "9". On the preview of the pdf it looks ok. When I print it from PDF preview it prints ok. But when I process it for sap to the HP output device (device type HPLJ4) "9" gets replaced with "<".
    Has anyone experienced this problem?

    ok, you're right. But, my problem is a little bit different :
    I would like to replace the "\n" character (new line) by the 2 characters "\n".
    I test this source code :
    String tmp = "First line\nSecond line";
    tmp.replaceAll("\n", "\u005C\u005Cn");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\n");
    System.out.println(tmp);
    tmp.replaceAll("\n", "\\\\n");
    System.out.println(tmp);
    The 3 results are the same :
    First line
    Second line
    I never have "First line\nSecond line".
    Best regards.
    K96
    PS : The objective is to write the string in a SQL request.

  • Why do I see � instead of é in the entirety of one website, but Firefox has no problem displaying the character when I type it myself?

    The website is "http://www.serebii.net". Its a Pokémon database, and everywhere there should be a é, there is a � symbol instead.

    Make sure that you have the Western (ISO-8859-1) encoding selected and not UTF-8.
    View > Character Encoding > Western (ISO-8859-1)

  • '&' character creating a problem in the reports query

    Hi
    I am facing a problem with the '&' character in the reports
    The top level reports return data .One field in the top level report contain certain values that have '&' character in it.
    When we navigate to the second report,it says "No Data" .
    On checking the query at the backend,it displays data as soon as we comment this particular "WHERE" clause containing the '&' character
    EG:WHERE Name ="a&b"
    the query takes the &' character in "Name" column as an input fileld and hence it fails.
    I checked some blogs on this.But all explains on using SET define off/Or use CONCATENATE to iinsert this kind of data
    But how do we make the server understand to read this &' character also as a normal text instead of taking it as an input parameter?
    Is there anything that can be done at the OBIEE RPD level?
    Thanks in advance

    Hi,
    Refer the SAP Note – 137601
    Or,
    You have to upgrade the Kernel. Check the old patch number in ur system, upload the latest patches & down load from Market Place. Consult your Basis Consultant
    Regards,
    Biju K
    Edited by: Bijay Kumar Barik on Mar 27, 2008 8:25 AM

  • URGENT Problem with Greek Character from an Oracle database

    Hello, I am having a serious and urgent problem with the character settings of an oracle database (8.1.7). The database is sitting in a solaris unix server and when we run the env command we have the following in the NLS_LANG parameter: AMERICAN_AMERICA.WE8ISO8859P1 (I do not know if this is helpful). When I retrieve data from oracle database (through a VB.NET 2005 program)to a dataset I use a special font in order to see the greek characters (HELLASARIAL). But when I am trying to save these data to a TXT file the greek characters are like Chinese to us. I tried several encodings (System.Text.Encoding.GetEncoding(869)) but without success. Can someone tell me how to convert the oracle greek characters during the selection or during the saving to the TXT file?
    Please respond as fast as you can.
    Thanks in advance

    Here is the answer of the microsoft:
    I have the information that you have a VB.Net 2005 application connected to an Oracle database 8.1.7.4 hosted on a UNIX server.
    This database has the CharacterSet WE8ISO8859P1.
    When retrieving Greek characters from this database in the application, you cannot see them.
    Could you please send me a screenshot of these characters in the .Net application?
    Are they displayed as gibberish, or as inverted questions marks (?)?
    I already had similar cases with Hebrew characters hosted on an Oracle database.
    These characters were displayed as questions marks on the client side.
    This is due to the fact that System.Data.OracleClient is using the Server CharacterSet to display the characters.
    If your Greek characters are not stored in the WE8ISO8859P1 characterset, then they won’t display correctly on the client-side.
    This is different from OLEDB where you could interact on client side by modifying the NLS_LANG parameter in the registry HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0.
    The client NLS_LANG and the server CharacterSet had to match in order to correctly display the data, and avoid SQL*NET conversion.
    So there are two solutions to your case:
    - The first one is to create a new database using the P8 characterset. The Oracle .Net managed provider will so be able to use it and display the characters correctly.
    - The second one is to use the OLEDB.Net managed provider, and then use OLEDB for Oracle provider. OLEDB will take care of the client NLS_LANG registry parameter.
    Would it be possible to test your application against an Oracle database with WE8ISO8859P8 characterset?
    Would it be possible to test it with the OLEDB .Net managed provider, and after checking the NLS_LANG client registry parameter?

  • Character conversion problems when calling FM via RFC from Unicode ECC 6.0?

    Hi all,
    I faced a Cyrillic character convertion problem while calling an RFC function from R/3 ECC 6.0 (initialized as Unicode system - c.p. 4103). My target system is R/3 4.6C with default c.p. 1500.
    The parameter I used in my FM interface in target system is of type CHAR10 (single-byte, obviously).
    I have defined rfc-connection (SM59) as an ABAP connection and further client/logon language/user/password are supplied.
    The problem I faced is, that Cyrillic symbols are transferred as '#' in the target system ('#' is set as default symbol in RFC-destination definition in case character convertion error is met).
    Checking convertions between c.p. 4103  and target c.p. 1500 in my source system using tools of transaction i18n shows no errors - means conversion passed O.K. It seems default character conversion executed by source system whithin the scope of RFC-destination definition is doing something wrong.
    Further, I played with MDMP & Unicode settings whithin the RFC-destination definition with no successful result - perhaps due to lack of documentation for how to set and manage these parameters.
    The question is: have someone any experience with any conversion between Unicode and non-Unicide systems via RFC-call (non-English target obligatory !!!), or can anyone share valuable information regarding this issue - what should be managed in the RFC-destination in order to get character conversion working? Is it acceptable to use any character parameter in the target function module interface at all?
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev
    Senior SAP ABAP Consultant

    hey,
    I had a similar experience. I was interfacing between 4.6 (RFC), PI and ECC 6.0 (ABAP Proxy). When data was passed from ECC to 4.6, RFC received them incorrectly. So i had to send trimmed strings from ECC and receive them as strings in RFC (esp for CURR and QUAN fields). Also the receiver communication channel in PI (between PI and  RFC) had to be set as Non unicode. This helped a bit. But still I am getting 2 issues, truncation of values and some additional digits !! But the above changes resolved unwanted characters problem like "<" and "#". You can find a related post in my id. Hope this info helps..

  • Problem : "You cannot convert the character set"..Any suggestions?

    Hi All,
    I have this character inside my internal table, KOÇTA&#350; YAPI MARK.T&#304;C A.&#350;. and it created a short dump on the program and it says "You cannot convert the character set". But this customer is already maintained inside the table KNA1..
    The code is like this one:
    REPLACE ALL OCCURRENCES OF '€' IN linebuffer WITH 'EUR'.
    TRANSFER linebuffer TO filename. "LENGTH bytes_to_transfer.
    the LINEBUFFER here is an internal table.
    I think conversion is the key here. Do anyone knows how to convert this thing? Or is it the Unicode system?  Could someone please help me to my problem?
    Thanks so much guys!
    Regards,
    Mackoy

    Hi,
    What i feel here is you are trying to pass  totla internal table at once.Internal table may have more than one record.Filename may string which can contain one row.
    So instead of that put the internal table into LOOP.
    DATA : v_string(200).
    LOOP AT  LINEBUFFER.
    Here your internal table may have non char data type.That is the
    main problem.
      Note : while concatenating all non char fields of LINEBUFFER
               should move to first to temporary char field and conatenate it
    CONCATENATE  LINEBUFFER-field1 LINEBUFFER-field2
      INTO  v_string.
    ENDLOOP.

  • % Character causing problems with the getParameterMap() method:

    Hello All,
    I've run run across something I've never seen or heard of before. Basically, we have a jsp form that returns form data into a Map object from the request.getParameterMap() method. We have code in place to pull out wrong entity characters that the user may have submitted, like *, &, !, etc... The problem is we have a field that takes a 3 digit code, like 999, but if the user puts in 99%, the percent character messes up the parameter map. The request parameters go out fine from the form, but in the doPost method of the servlet the map gets changed or it changes the request parameters and 99% becomes 99/fastname somehow where f is a jsp variable for the jsp form and lastname would be the name of the next key or % is doing something else that might explain why it's overwritting the first two characters here. Not sure. Has anyone ever seen this before or have any ideas as to how to fix it? Other entity characters don't seem to do this in the app.
    Any help or sympathy is appreciated!
    Thanks,
    James

    Well I've done more investigating and I think I've narrowed it down more. We are using JSP's and something I've never seen before, changing an http request/response object after it's been sent to the server.
    Here is some of the code:
    var url = etc...
    var httpRequest = new ActiveXObject('Microsoft.XMLHTTP');
    httpRequest.open('POST', url, false);
    httpRequest.send();     
    //I added this code to see what happens to my 99% value.
    var xmlDocument = trim(httpRequest.responseText);
    message = document.getElementById('3digitfieldName').value;
    alert(message);
    I added some code in because I want to see when the 99% field value gets changed. When it leaves the form we can see what the value is from: Map paramMap = request.getParameterMap();
    It then goes out to the code that changes the request into the new ActiveXObject. Still at this point it's showing 99%, but when it returns back to: Map paramMap = request.getParameterMap(); the value is changed to 99/fonsignees, which is the name of the next field (parameter) of consignees. /f shows up in my debug editor, but when I print out the text it's just showing a box symbol in between 99 and onsignees. f is a variable for the form btw. What I'm thinking is that somehow, MSXML doesn't like the "%" character, but I'm not sure how to fix this?

  • How to slove the character-converting problem?

    I'm developing a Japanese Application.
    In jsp , i get the string "6-2-3" which is all input by Japanese. But after i sent it to JavaBean as a parameter,it turned out to be "6?2?3". I 'm really confused by it.
    By the way , how to get a character's unicode in java?

    the primitive type char is used to store unicode values (\u0000 to \uFFFF, so 0 to 65335). java.lang.String are composed of char and so are unicode aware too. To get chars from your string you have 2 possibilities:
    - String.toCharArray()
    - String.getChar(int)
    About having a japanese user input of "6-2-3" and getting in your bean "6?2?3", that's definitely an encoding problem. The user input field does not use the ame encoding as your javaBean, so that's why one generate char that are not well understood by your bean. I'm sorry, I only know the problem, but not the solution.

  • Problem with the specail Character '&'

    Hi,
    I am facing problem with special character '&' in report files. When I run the report locally(report builder), i am getting the data printed with '&' correctly. But if I execute same report thr' the application, via application server, I am getting the data printed with "&:". It is not displaying &. Please suggest me how to overcome this problem.
    'ADP & Liablility' is printed as 'ADP & Liablility' in the web. We are not sending any value thr' the url. This is just a report title. Taking the value from the database and printing it.
    Appreciate the quick response.
    Thanks and Regards,
    A.K.Malathi

    Hi Andres,
    I've seen this situation before with several characters that don't display in certain fonts even though font.canDisplay(char) evaluates true.
    For example, Courier New (among many others) and \u20ac . (I don't know why this is?)
    Anyway, use the Ariel Unicode MS font and it will display.
    Regards,
    Joe

  • Problem with the special character '&'

    Hi,
    I am facing problem with special character '&' in report files. When I run the report locally(report builder), i am getting the data printed with '&' correctly. But if I execute same report thr' the application, via application server, I am getting the data printed with "&:". It is not displaying &. Please suggest me how to overcome this problem.
    'ADP & Liablility' is printed as 'ADP &: Liablility' in the web. We are not sending any value thr' the url. This is just a report title. Taking the value from the database and printing it.
    Appreciate the quick response.
    Thanks and Regards,
    A.K.Malathi

    Moderator: Off topic. This forum is for Java Collections API questions. Locking.

Maybe you are looking for

  • Problems with Software Update

    When attempting to use software update, I am receiving a message that says update is unable to connect to the internet. Meanwhile I can still use Safari and Mail successfully so my connection is actually there. Any thoughts as to what could be causin

  • How do I transfer the email address from an old printer to a new printer?

    Hi, I have recently bought a new printer and I wish to use my old email address that is linked to my last printer. However, I cannot transfer it. Even if i change the email against the old printer, it wont allow me to add it against the new printer.

  • Setup for IDoc-XI-File scenario

    Hi All,    Please provide info where can I find, step by step  documentation for the basic setup on R/3 and XI areas, before start developing IDoc-XI-File or File-XI-IDoc scenarios. Thank you, Sree

  • Images being compressed or resized before printing ??

    I have a 50MB PNG image that I just printed using the built in Kodak printing system. When the image was actually being uploaded, though, it was only 3.2MB in size. What happened to the photo? Did it get converted to a JPEG or PDF? Was it resized? Wh

  • Unable to start service (IfsDefault)

    After I compile following HelloWorld.java, I received the Following Error Message. How can I solve this probleme. oracle.ifs.common.IfsException: IFS-20102: Unable to start service (IfsDefault) oracle.ifs.common.IfsException: IFS-20010: Unable to get