ToString conversion to readable text

Hi
I am receiving responses from a webservice to let me know where the message sent to them failed. I receive the message in the following format:
org.hhcc.research.bold.ws.client.ArrayOfString@a37427
this is generated from the following line of code:
respBase.setStrMessages(resp.getResp().getMessages().toString());
I understand toString returns the message in the form of:
getClass().getName()+'@'+Integer.toHexString(hashcode()).
But how do I convert this into readable text?
thanks for any help here!
Jeff

Hi,
before you can use the "convert to hex" fb you must use the following FB before:
  CALL FUNCTION 'CRM_SURVEY_DATA_GET'
    EXPORTING
      iv_object_kind = 'A'
      iv_object_guid = lv_guid_ref
    IMPORTING
      et_survey_ui   = survey_ui_tab
    EXCEPTIONS
      error_occurred = 1
      OTHERS         = 2.
  READ TABLE survey_ui_tab INTO survey_ui
          WITH KEY surveyid = 'XYZ'.
  CALL FUNCTION 'CRM_SVY_GET_SURVEY_TEXTS'
    EXPORTING
      application_id   = survey_ui-applicationid
      survey_id        = survey_ui-surveyid
      language         = sy-langu
    IMPORTING
      survey_texts     = texts
    CHANGING
      survey_version   = survey_ui-surveyversion"
    EXCEPTIONS
      survey_not_found = 1
      OTHERS           = 2.
  CALL FUNCTION 'CRM_SVY_DB_S_READ'
    EXPORTING
      surveyid      = survey_ui-surveyid
      surveyversion = survey_ui-surveyversion
    IMPORTING
      error         = lv_error
    TABLES
      survey        = lt_crm_svy_db_s.
  READ TABLE lt_crm_svy_db_s INTO ls_crm_svy_db_s INDEX 1.
  ev_application = ls_crm_svy_db_s-applicationid.
  ev_service = survey_ui-surveyid.
  ev_survey_version = survey_ui-surveyversion.
  ls_values_xml = survey_ui-valuexml.
  CALL FUNCTION 'CRM_SVY_DB_CONVERT_HEX2STRING'
    EXPORTING
      x = ls_values_xml
    IMPORTING
      s = ls_xml_string.
  CREATE OBJECT values
    EXPORTING
      i_internal_values_xml = ls_xml_string.
  CALL METHOD values->values_get_all
    IMPORTING
      et_all_values = all_values.
After that the all_values - tables is filled.
regards

Similar Messages

  • Read binary file and convert to readable text

    I have a binary file which i want to read in and then convert it into readable text. How can i do this?

    I have a binary file which i want to read in and then
    convert it into readable text. How can i do this?Your question is a bit too vague to be answered. Here's an example -- suppose a file contains the bitstream 11011110101011011011111011101111. (just four bytes full of bits). If one 'converts' this bit stream using four byte big-endian integral values into a hexadecimal representation, the outcome would be 'deadbeef'. Using a little endian conversion, the outcome would be 'efbeadde'. All three text strings you're reading right now (the binary one, and both hexadecimal versions) are readable representations of the actual bitstream ... which one do you want?
    OTOH, if you want to know what's stored in a .class file (this is a Java forum isn't it?), have a look at 'pjava'; it comes with your SDK.
    kind regards,
    Jos

  • How do I turn off conversation mode in text messaging.

    How do I turn off conversation mode in text messaging. i want my messages in sequential order.
    It is a galaxy s3

        Hi Catchingup
    I can answer this question for you.You can't change the stock messaging application to turn off the conversation mode. You may be able to download a 3rd party application for messaging that could assist you with this feature.
    Thank you
    JoeL_VZW
    Please follow us on twitter @vzwsupport

  • Error "conversion of a text from codepage '4102' to codepage '1100' "

    Hello,
    If some could help me with this error while tryning to transfer a structure containning the character "u20AC" to a file:
    OPEN DATASET p_fic FOR OUTPUT
                     IN text MODE ENCODING non-unicode.
    transfer wt_textes to p_fic.
    close dataset p_fic.
    wt_textes contains the a string with the character "u20AC".
    This code dumps:
    At the conversion of a text from codepage '4102' to codepage '1100':
    - a character was found that cannot be displayed in one of the two
    codepages;
    - or it was detected that this conversion is not supported
    The running ABAP program 'ZREPRISE_TEXTES' had to be terminated as the
      conversion
    would have produced incorrect data.
    The number of characters that could not be displayed (and therefore not
    be converted), is 1. If this number is 0, the second error case, as
    mentioned above, has occurred.
    thanks in advance

    Hi,
    the problem is that code page 1100 (ISO-8859-1) does not support the u20AC-symbol. However the NON-UNICODE mode usually takes this code page if you logon with EN or DE (or any other Western European language).
    As alternative, you could use OPEN DATASET ... LEGACY TEXT MODE... CODE PAGE 1160 ...
    Code Page 1160 is the SAP number for MS 1252, which includes the u20AC-symbol.
    The other alternative would be to download the file in UTF8 mode and then use the tools described in SAP notes 747615 or 752859  to convert the file content from code page 4110 to 1160 (code page 4110 is the SAP number for UTF-8).
    Best regards,
    Nils Buerckel

  • Error "conversion of a text from codepage '4103' to codepage '1100' "

    Hello,
    Greetings!
    Please help me with this Error while trying to transfer data to application server.
    My data contains this characters "*".
    OPEN DATASET p_file FOR OUTPUT IN TEXT MODE ENCODING NON-UNICODE.
    Transfer <data> to p_file.
    CLOSE DATASET p_file.
    <data> contains "*" characters.
    At the conversion of a text from codepage '4103' to codepage '1100':
    - a character was found that cannot be displayed in one of the two
    codepages;
    - or it was detected that this conversion is not supported
    The running ABAP program 'ZRPPO_TEST' had to be terminated as
      the conversion
    would have produced incorrect data.
    The number of characters that could not be displayed (and therefore not
    be converted), is 2. If this number is 0, the second error case, as
    mentioned above, has occurred.
    Thanks.
    Regards,

    Hello,
    1100 is  ISO 8859-1 charset.
    The only char there looking like a double quote is U+0022 QUOTATION MARK, the normal ASCII dblquote. This is definitely contained in both codepages.
    BUT: in Unicode (4103), there are tons of other, similar looking, variants of quotes or quotation marks which cannot be converted to 1100.
    What you can do to find out what exact char you have:
    In the Unicode system, copy the character from GUI display (e.g. in ABAP debugger)  into Windows Wordpad, mark this char in Wordpad with the mouse and press ALX+x
    This will convert the char to its Unicode codepoint (22 -> U+0022 for the ASCII dbl quote).
    Regards,
      Alex

  • Problem conversion of a text from codepage '4110' to codepage '4103'

    Hi!
    I upgrade my SAP version ECC 5.0 no Unicode to ECC 6.0 Unicode .
    Now, when I execute some reports I get a dump  because when I open my file with 'OPEN DATASET'  and then READ and TRANSFER to another file the result is :
    At the conversion of a text from codepage '4110' to codepage '4103':
    - a character was found that cannot be displayed in one of the two
    codepages;
    - or it was detected that this conversion is not supported.
    This dump is got when the file contain special characters like 'Á,Ñ,...)
    I have searched some information and the source error I think is about UTF-16 to UTF-8 conversion. I look for some SAP notes but I don't clear what I have to do.
    Thanks in advace.
    Ana

    Hi Ana,
    please check the code page of the uploaded file. In your scenario the assumption is that it is based on UTF-8.
    If it is based on Non-Unicode, you need to use OPEN DATASET .... ENCODING NON-UNICODE ...
    Best regards,
    Nils Buerckel

  • Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some

    Hi, I have used PDF export for some years. One file will NOT convert to readable text in Word.  Some headers and maps in this document are converted OK but the body text is garbled. I have tried converting to Docx, Doc and RTF with no success. I disabled OCR and it made no difference. What can I do please?
    Les

    Hi,
    Can you please provide me the file with which you are facing the issue.
    Thanks

  • Safari displays PDF as non-readable text

    Recently when I open a PDF file in Safari it displays as non-readable text. How can this be fixed?

    After some further research I resolved the problem.  The Adobe Acrobat Reader installation was indeed the culprit.  I had to unlock and allow myself to access as a root user on the Mac.  Then I searched the \Library file for the "Internet Plug-ins" folder.  I created a new "Internet Plug-ins Disabled" folder and moved the following 2 Adobe plug-in files 1.  AdobePDFViewer.plugin; 2. AdobePDFViewerNPAPI.plugin to the Disabled file I just created; or you can move those two files into the trash folder.  Either way should work.  I did actually have to do both, becasue the 2 files copied rather than moved.   Most important after performing this task REMEMBER to LOCK the root user before resuming normal work on your computer.  Root user access has a lot of power and can yield a lot of havock if you inadvertently forget and have left in unlocked.

  • Sharper and readable text compared to L220x

    Hello everyone:
    My L220x is suffering from really bad blurry text problem.  I've gone through the L220x threads on the subject, and after countless hours of fiddling around with the settings, I've given up. No matter what I try, the text quality remains *bad*. These TN pannels are no good.  Wish I have looked at my friends Dell 2408wfp before I got the Lenovo.. Dell is 1000 better!
    Unfortunately, I cannot return the LCD to Lenovo and get a refund.  Any recommandations on what's a good Lenovo display that renders sharper more readable text?
     Any advise on this will much appreciated!  Thnx.

    Lenovo L220x is not sharp. It cannot be fixed. I'm changed 6 units and nothing. If you like sharp text do not buy this display. Now i'm happy with HP LP2275 and HP tech service quality is much better at least in Russia.
    Message Edited by hlabs on 06-21-2009 09:40 AM
    Message Edited by hlabs on 06-21-2009 09:40 AM

  • My Intensity II phone often receives texts as all symbols or group messages as blank screens. How can I convert these to readable texts?

    My Intensity II phone often receives texts as all symbols or group messages as blank screens. How can I convert these to readable texts?

        Intensity2user,
    Being able to read your texts is really important and we'll be happy to help you get them working correctly. How long has this issue been going on for? Has texting ever worked correctly for you?
    Also, when you receive texts as all symbols do you know what is contained in those texts? Are there any images in them by chance? Even a smily? If the person sending you the message tries to send it again are you able to read it?
    SarahO_VZW
    Follow us on Twitter @VZWSupport

  • RTF to HTML conversion - Non-English Text

    Hello,
    I am trying to convert a RTF file to a HTML file. Below is the code that I am using. I am not able to convert non-english text properly (German, French, Swedish etc). I like to know the proper way of doing this and if there is a more efficient way of doing this conversion in general (It is taking around 1 minute for this to complete on a 300 MHz, 320 MB iBook). Thanks.
    Regards
    Sarat
    Code Begins
    public class FormatConverter {
    private DefaultStyledDocument tempRTFDoc;
    private HTMLEditorKit htmlKit;
    private RTFEditorKit rtfKit;
    public FormatConverter () {
    tempRTFDoc = new DefaultStyledDocument();
    htmlKit = new HTMLEditorKit();
    rtfKit = new RTFEditorKit();
    public String convert(String strText) {
    String strResult = "";
    StringReader reader = new StringReader(strText);
    try {
    tempRTFDoc.remove(0,tempRTFDoc.getLength());
    rtfKit.read(reader,tempRTFDoc,0);
    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();
    htmlKit.write(byteArrayOutputStream,tempRTFDoc,0,tempRTFDoc.getLength());
    strResult = byteArrayOutputStream.toString();
    catch(IOException ie){}
    catch(BadLocationException ble){}
    return strResult;
    public static void main(String args[]) {
    // Read the rtf file from disk
    FileInputStream in = null;
    try {
    in = new FileInputStream("sample.rtf");
    } catch (java.io.FileNotFoundException ioe) {
    System.out.println("sample.rtf file not found");
    byte []input = new byte[10000];
    try {
    in.read(input);
    } catch (java.io.IOException ioe) {
    System.out.println("Error reading from sample.rtf");
    // Do the conversion
    FormatConverter conv = new FormatConverter();
    String strHTML = conv.convert(new String(input));
    // Write the html file to disk
    FileWriter out = null;
    try {
    out = new FileWriter("output.html");
    } catch (java.io.IOException ioe) {
    System.out.println("Error creating file output.html");
    try {
    for (int i = 0; i < strHTML.length(); i++)
    out.write(strHTML.charAt(i));
    } catch (java.io.IOException ioe) {
    System.out.println("Error writing to file output.html");
    // Close the files
    try {
    if(in != null)
    in.close();
    if(out != null)
    out.close();
    } catch (java.io.IOException ioe) {
    System.out.println("Error closing files");
    System.out.println("Conversion done");
    System.exit(0);
    Code Ends

    hi,
    i'm also trying to do the same thing (convert rtf to html). i was wondering if your conversion handles tables and if so if you could post the code as i'm having trouble finding out info about rtf's.
    in terms of stripting out the body tags there are a number of different ways of doing this, here's one way>
    myBigHtmlString = your html doc loaded in to a string;
    String[] tagsToStripOutArray = {"<html>","</html>","<body>", "</body>", "etc", "etc"};
    int pos=0;
    for (int x=0; tagsToStripOutArray.length; x++) {
    pos = myBigHtmlString.indexOf(tagsToStripOutArray[x]);
    if (pos != -1){ // if tag exists in string strip it out
    myBigHtmlString = myBigHtmlString.substring(0,pos)+myBigHtmlString.substring(pos+(tagsToStripOutArray[x].length());
    }// end for
    i haven't compiled this so there maybe errors,
    cheers,
    ben

  • Error: At the conversion of a text from codepage '4110' to codepage '4102':

    I am trying to open an ANSI file from Application server.
    I am using "open dataset F_FILENAME for input in text mode encoding default."
    For some ANSI files it works fine, and for some it fails. I want to open this file and validate it , post it back on to application server
    with its original format.
    How do I achieve this? THanks,
    Below is the system config.
    Database codepage                         Unicode
    Current Codepage of Appl. Server    4102
    Codepage of Front End               4110  UTF-8 GUI

    Hi Shabbir,
    The statement "open dataset F_FILENAME for input in text mode encoding default" would open the file with the default codepage of your system which is 4102 for your system.
    Due to which the SAP system implicitly coverts the characters in the file to 4102 codepage. You might get "CONVT_CODEPAGE" error if system is not able to convert some characters in the file.
    You should use
    Open dataset F_FILENAME for input in legacy text mode code page 1100
    Check the following link for syntax.
    [open dataset in SAP|http://help.sap.com/saphelp_nw04/helpdata/en/79/c554a0b3dc11d5993800508b6b8b11/frameset.htm]
    You can also use " IGNORING CONVERSION ERRORS " to avoid "CONVT_CODEPAGE" errors..
    Cheers
    Ajay

  • Adobe XI won't open pdf in windows 7; needs file conversion to encode text. need help!

    adobe XI won't open pdf files in windows 7; error msg says it needs file conversion to encode the text. choosing any of the options available still does not open it. please note that the pdf's are attempting to open in WORD. if it needs to open elsewhere, then how to i make adobe open elsewhere every time? thanks!

    thank you mike.  i tried to follow your shared link to unisntall and re-install the software.
    now i can open pdf without any error msg.
    however.. the file context cannot be showned... which is in white screen only.. i tried to close and re-open the file, but still can't view the context correctly. could you please help? thanks.

  • Conversion with Conditional Text in Table

    I'm taking the first steps in converting Unstructured Frame to Structure. One document is pretty clean except for one issue: my structure breaks around conditional text in tables. (The tables have a f3ew issues oftheir own, but the conditional text seems to compound the problem) I'm not sure how this should be dealt with. The structure tags are shown in the view below.
    And here is the Structure View:
    Is this something that can be set up with a qualifier, and if so, How? Also, in the conversion map table, Is there any order dependency, as well, concerning where the Conditional Text element appears?

    Jane,
    As far as I am concerned I do not see anything unexpected. You get dotted lines in the Structure View apparently because the element <B1_Body1> seems not to be allowed in the Element <CELL>. It looks like you worked with the defaults of the Conversion Table. Have you created your own EDD and imported the Element Definitions? Is <B1_Body1> a legal element inside <CELL>?
    From my experience the Conditional Text feature works very much in parallel to the element structure. It comes from the format-based world and the structure has no means to handle text conditions. If you want to work with text conditions in the future, you would use »attribute-based condition management« as made possible through the plug-in AXCM or FrameMaker’s built-in feature »Filter by attribute«. There is no built-in method to change text conditions into certain attribute values – but it is possible to automate this move via the FDK or FrameScript or ExtendScript (from FM10).
    - Michael

  • CONVT_CODEPAGE conversion of a text from codepage '4110' to codepage '4103'

    Hi,
    I am receving the runtime error when i am trying to read the data from the application server(the data is loaded in the application server from the FTP server). The issue is with the character ' ¦ ' . Looks like the system is not able to convert this character from one code page to another.
    I am getting this issue in both Development and in Quality Systems. Both systems are unicode systems.
    I have gone through the existing threads on it and found 2 solutions. One is adding UTF-8 in the Open Dataset statement and other is adding IGNORING CONVERSION ERRORS. I tried both these options and the issue still exists.
    Runtime error text:
    Characters are always displayed in only a certain codepage. Many
    codepages only define a limited set of characters. If a text from a
    codepage should be converted into another codepage, and if this text
    contains characters that are not defined in one of the two codepages, a
    conversion error occurs.
    Moreover, a conversion error can occur if one of the needed codepages
    '4110' or '4103' is not known to the system.
    Regards,
    Karthick.

    Let's first name the code pages you've given: 4110 is UTF-8 and 4103 is UTF-16LE. A conversion between Unicode code pages should not be an issue, but converting from a Unicode page to a non-Unicode page obviously is likely to face conversion issues due to missing characters in the non-Unicode target code page.
    So let's check the real problem: It sounds like you're reading a file that's not in a UTF-8 encoding, yet you claim it is. I.e. you mention the character ¦ is causing problems. Assuming that you actually copied the character you can already see that it's a bit unusual, i.e. it's not the normal pipe symbol | (which is closed, whereas your character is divided). Now taking the hex code of the character off your posting I get a A6 (decimal 166, binary 10100110). Now in UTF-8 only ASCII (i.e. 7 bit values) are 1 byte characters (i.e. one character equals to one byte).
    Now if you check the UTF-8 table you'll see that your pipe symbol with hex value A6 is a continuation character, i.e. it has to be part of a longer multibyte sequence. So if your file errors out on this specific character it's probably simply due to the fact that you don't have a UTF-8 file, but some other encoding (e.g. often it's latin1). So your first step should be to figure out what encoding your file is that you're reading. Once you know it, conversion from that code page to UTF-8 or one of the UTF-16 flavors is no challenge.
    By the way, one easy check for invalid UTF-8 byte sequences is to load the file into a web browser. E.g. in your case you could try copying the following data into a file and opening it in your favorite web browser (load will fail).
    <?xml version="1.0" encoding="UTF-8"?>
    <data>¦</data>
    After testing that, change the encoding from UTF-8 to latin1 and you'll see that you can load the page into the web browser...
    Cheers, harald

Maybe you are looking for

  • Samsung Syncmaster 910MP LCD monitor/TV-Good?

    I have decided on this monitor because I need a monitor for my mini and would like an extra TV as well. The only reservation I have is that it is analog only, no digital. Unless I plan on subscribing to digital cable TV, is there any reason to choose

  • PO for CIN issue - urgent

    Dear Guru, Kindly guide for how to create local PO for cost centre (K) without material number (free text)? Beside create a tax code for it (FTXP), should i maintain the chapter id in J1ID with blank material? Should i maintain the excise rate in J1I

  • Problems with JScrollBar

    Hi It's my second attempt to find answer for this question on this forum :) I have a JPanel where i display an image. The size of the panel is set to the size of the image. Panel is added to a JScrollPane, which is added to a JFrame. Now, here's the

  • Macbook Pro retina 13 (2013) OR Macbook Air 13 (2014)

    Hey, I currently have a 2010 MBP with 4 GB , 2.4 GHz and a 250 GB hard drive. I want to get a new macbook because mine is slowing down since i got mavericks. Also i am a college student. Anyways, My options are: 13 inch macbook AIR (2014) with upgrad

  • Firefox hangs with script running

    Firefox takes about 3 minutes to close down even with all extensions disabled. It comes up with a script error: Script: chrome://browser/content/sanitize.js:85 I've never used Chrome so I don't know what this is referring to. Any suggestions on tryin