Special characters in short text to get replaced...

Hi,
Iam working on a code.
Now I am doing something like follows:
LOOP AT IT_FMTABLES into IT_FMTAB.
P_TABLE = IT_FMTAB-STRUCTURE.
ENDLOOP.
IT_FMTAB is a structure and IT_FMTABLES is a internal table. There is a short text name gets populated in IT_FMTAB-STRUCTURE.
I want if short text (IT_FMSTRUCTURE) contains any of the fields like / or  : charcters it should get replaced by '_'
Thanks.
Regards,
Rajesh.

Hi,
How can I combine these two replace statement in one ?
Replace all occurrences of ':' in IT_FMTAB-STRUCTURENAME with 'to'.
Replace all occurrences of '/' in IT_FMTAB-STRUCTURENAME with '_'.
Regards,
Rajesh.

Similar Messages

  • How can I enter special characters in a text title?

    Hello to all!
    Have been trying to get in a special character [the tick mark] onto a text title on my current project. Had gone to the special character option under EDIT menu, and added the desired special character to the 'favourite' list, but after that I do not know how to move ahead. Would like help.
    Thanks to all.
    Dr. Somanna

    Thank you for your reply.
    However I am afraid that neither double click nor drag/drop is adding the character to the text.
    Is there any other method to get special characters into FCPX?

  • Special Characters in button text property?

    I am trying to create two buttons; 1 up and 1 down for sorting data in a list.  How can I, without using images, put arrows on the buttons?  I have looked at special characters in the unicode chart and while they show up correctly (using &#8593) in the WD editor, the browser renders the text as '&#8593'.
    I'm pretty new to this sort of thing so I might be missing something obvious..feel free to point this out if so!

    Trying to avoid the usage of images as the list, with 2 images per 'row', can contain upwards of 2000 items.  This would cause extra overhead.

  • Special Characters in Long Text Field of FI Documents

    Hi,
    Users entered the following in the long text field of a FI document:
    "Settlement of claims for direct shipment (Refer to XXX/YY-053/2009, XXX/YY-018/2009, XX2120000031 and X2120000033)"
    The default editor used is the one which looks like the MS Word.
    When we changd to the other editor (Goto > Change Editor), we see the following:
    "Settlement of claims for direct shipment to Thailand (Refer to"
    "XXX/YY-053/2009<(>,<)> XXX/YY-018/2009, XX2120000031 and X2120000033)"
    How did "<(>,<)> " comes about?
    Any ideas?

    I'd probably use a regex of "allowed" characters rather than a list of "disallowed" characters, but thats just a difference in approach.
    I would probably use a regular expression - alphanumeric is fairly easy to check
    String value = request.getParameter("enteredField");
    boolean alphaNumericOnly = value.matches("\\w+");As a matter of being nice to the user, you can also do this check in javascript on the client side.
    ALWAYS validate server side.
    Optionally validate client side to give the user a better experience (less round trip requests)
    Cheers,
    evnafets

  • Some special characters getting replaced by ? in TOAD

    Hi,
    I am using TOAD for updating a few records in the DB. Some special characters (non-english) like Staříč get replaced by Sta?í? in TOAD. I tried to set the characer set to default and East Europe under Editor Options, but it still doesn't work.
    Any suggestions?

    i) Verify your DB characterset can handle these characters
    ii) Verify that the correct values are being stored (use dump function)
    iii) Verify that NLS_CLient settings match NLS_Server settings
    iii) Verify that this is not a windows display issue. ie Windows has been set up to display these characters.
    One suggestion is to use OracleSQLDeveloper. You won't have any display issues then. :)
    I use it to display arabic charcters and I don't need any registry changes etc
    Edited by: Keith Jamieson on Dec 8, 2008 10:47 AM

  • Creating Text files with special characters

    I have a problem writing and then reading special characters in a text file. I am using FileWriter and FileReader and once I write (using FileWriter) in a file.txt many characters with ASCII code less than 31, I can not read them back using FileRead. I simply get a content which is different from the one originally written.
    Does anyone have an idea about this problem ?

    The code is OK, problems may have occured during copy/paste. But in the original code it is written c.
    Here is a copy of the output of those lines that i'm talking about:
    Here is the ASCII Code >> 125
    Here is the ASCII Code >> 126
    Here is the ASCII Code >> 127
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 63
    Here is the ASCII Code >> 160
    Here is the ASCII Code >> 161
    Here is the ASCII Code >> 162

  • Unable to add special characters such as # and ( in headers of Report in Text format

    Hi,
    I am working on developing a report that will be exported to tab delimited text format from SSRS. The Report has been developed and it is getting exported to tab delimited text format. However, special characters in the heading are getting trimmed. I would
    like to get these special characters in the heading of text file. Any help in this regard will be appreciated.

    Hi Abhijit,
    Per my understanding that you have add an extension which export the report as .txt format, now the issue is the special characters"#" not display after exportted, right?
    I have tested on my local environment and can reproduce the issue , this is by default, when you type some special characters "#" as the textbox name  in the properties window or as calculatted field name you will get error pop up window,
    if you type the text in the textbox as "#" it will also not display in the CSV or tab delimited text format report.
    But we have some alternative method to make them display some way, more details information below for your reference:
    Display "#" in the table header
    If we want to make them display in the table header, we need to create an new table an put all the table header as one record in the table, because the value in the table can display "#" correctly:
    I assumed you have four columns as the table header(Test1#,Test2#,Test3#,Test4#) please create an new table (HeaderTable )to store these value:
    Create two dataset2:
    Dataset1: display the record from step1
    DataSet2:display the record of the report
    Create two Tablixs as below and both remove the header column, Tablix1(Dataset1) diplay the value comes from the step1 as the new header column:
     Tablix1(Dataset2):Report Data
    In this way, when export to tab delimited txt, you will got the table header display correctly.
    Display "#" in the textbox outisde of the tablix
    If you just want to display "#" outside the tablix, you can just add an calculatted field(Test) and use expression like below to specify the value which you want to display in the calculatted field:
    ="test######test"
    Then you can use below expression in the textbox:
    =first(Fields!Test.Value, "DataSetName")
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

  • Special Characters Issue

    Hi,
    I am trying to load text data from a flat file which has some special characters in the text description like ö ø æ ü å. I have entered this in RSKC. Now when I look in the preview these characters are replaced by this symbol #. Can you help me out in figuring out what I am doing wrong and if there is anything I should be doing. I have loaded the same data in North America BW instance and it works fine. Now when I do the same in Europe system it is giving me the above error.Europe is on a unicode system whereas North America is not. May be if this helps.
    Thanks,
    Kal

    Hi Kal,
    Checkout the link below,
    RSKC
    Regards
    Sajeed

  • [Gnome] weird appearance of special characters

    Hi,
    Yesterday I installed a new arch on my PC. When I was looking for a file on my HDD I saw an weird appearance of special characters like "☆" or "♪", they've been replaced by a square...
    I think this is a problem with my locales but I don't know where is my problem...
    In my rc.conf I have :
    LOCALE="fr_FR.UTF-8"
    I also tried to set "utf8" in lower case but didn't worked.
    In my locale.gen I have uncommented :
    fr_FR.UTF-8 UTF-8
    fr_FR ISO-8859-1
    When I type on a Terminal "locale" I get that :
    LANG=fr_FR
    LC_CTYPE="fr_FR"
    LC_NUMERIC="fr_FR"
    LC_TIME="fr_FR"
    LC_COLLATE="fr_FR"
    LC_MONETARY="fr_FR"
    LC_MESSAGES="fr_FR"
    LC_PAPER="fr_FR"
    LC_NAME="fr_FR"
    LC_ADDRESS="fr_FR"
    LC_TELEPHONE="fr_FR"
    LC_MEASUREMENT="fr_FR"
    LC_IDENTIFICATION="fr_FR"
    LC_ALL=
    But nothing with utf8...
    I also try to type "locale-gen" between different steps but it didn't worked too...
    Thanks for you help !

    I went toe Edit → special characters which opened up the special characters window, which is the same as the Character view that I can access for my menu bar in the upper right of the screen (next to the battery icon), then I went to the "Greek" option on the side so the greek letters showed up and doubled clicked on my symbol of choice.
    I will do below to see if it works here:
    α β
    Also thanks Peter I will check her version of word, I am pretty sure if it is running that then she probably doesn't know about it.
    Kari

  • SO_NEW_DOCUMENT_ATT_SEND_API1 sending pdf with wrong special characters

    Hi Experts,
    Im using the fm SO_NEW_DOCUMENT_ATT_SEND_API1 to send out a pdf (into sap office box). But when I open it
    I get totally wrong special characters (Chinese for instance, and ' is replaced by #).
    I have already applied the note 1430123 but it didnt resolve the issue.
    Can anybody help on this?
    Help will highly appreciated.
    Hubert

    Yes. This is very much possible.
    gv_xstring contains the pdf data in XSTRING format.
    Check the code :
    *   ---------- create persistent send request ----------------------
      send_request = cl_bcs=>create_persistent( ).
    *   ---------- Create document ----------------------------------------
    *   get PDF xstring and convert it to BCS format
      lp_pdf_size = XSTRLEN( gv_xstring ).
      pdf_content = cl_document_bcs=>xstring_to_solix(
          ip_xstring = gv_xstring ).
    *     Create Mail Body
      CLEAR ls_body.
      CONCATENATE 'Dear' gv_name1 ',' INTO ls_body SEPARATED BY space .
      APPEND ls_body TO lt_body.
      CLEAR ls_body.
      APPEND ls_body TO lt_body.
      CLEAR ls_body.
      ls_body = 'Warm greetings '.
      APPEND ls_body TO lt_body.
      CLEAR ls_body.
      ls_body = 'Manager'.
      APPEND ls_body TO lt_body.
      document = cl_document_bcs=>create_document(
                      i_type    = 'RAW'
                      i_text    = lt_body
    *                  i_length  = '12'
                      i_subject = 'Letter' ).
    **   Add Attachment to send request
      CALL METHOD document->add_attachment
        EXPORTING
          i_attachment_type    = 'PDF'
          i_attachment_subject = 'Letter'
          i_att_content_hex    = pdf_content.
    *     add document to send request
      CALL METHOD send_request->set_document( document ).
    *   ---------- add recipient (e-mail address) ----------------------
      IF gv_adrnr IS INITIAL.
        SELECT SINGLE adrnr
          FROM kna1
          INTO gv_adrnr
         WHERE kunnr EQ gv_kunrg.
      ENDIF.
      SELECT SINGLE smtp_addr
        INTO lv_email
        FROM adr6
       WHERE addrnumber EQ gv_adrnr.
      recipient = cl_cam_address_bcs=>create_internet_address(
          i_address_string = lv_email ).
    *   add recipient to send request
      send_request->add_recipient( i_recipient = recipient ).
    *   ---------- send document ---------------------------------------
      sent_to_all = send_request->send(
          i_with_error_screen = 'X' ).
      IF sent_to_all = 'X'.
    *    MESSAGE i022(so).
        gv_emailflag = 'X'.
      ENDIF.
    *   ---------- explicit 'commit work' is mandatory! ----------------
      COMMIT WORK.

  • Error of Special Characters in Export to Excel

    Hi,
    I guess the error you are getting is a Parser error. To solve this problem, before putting the data on the XML file, you have to pass the data through an encoding process. For UTF-8 the code for encoding should be something like.
      public java.lang.String encodeSpecialChar( java.lang.String attributeValue )
        //@@begin encodeSpecialChar()
              //Created By : AVIK SANYAL Date : 28 March 2008.
              //          Check for special characters like "&" in the String.
              //      replace "&" with "&amp;"
              //      Returns the new encoded String.
              try {
                   if (attributeValue != null) {
                        attributeValue = attributeValue.replaceAll("&", "&amp;");
                        attributeValue = attributeValue.replaceAll("<", ""&lt;"");// this is & lt
                        attributeValue = attributeValue.replaceAll(">", ""&gt;"");//this is & gt
                   } else {
              } catch (Exception ex) {
                   //          wdComponentAPI.getMessageManager().reportException(
                   //               "Failed to convert the character.",
                   //               true);
              //Returns the encoded String.
              return attributeValue;
        //@@end
    Try this and let me know if this works. The reason is that in Binary Cache method, the data is passed in an XML format and the MS-Excel application reads this to show it in the spreadsheet. The characters '&', '<' and '>' can cause failure in reading from this file.
    Thank You
    Avik
    Edited by: AVIK SANYAL on Sep 12, 2008 10:45 AM

    OK....!!!!!
    just download the Excel file (*.xls) and try open with Word-MS. In the document search by the string that you have mentioned in the question. (Use Ctrl +F).
    If you see something like "ABC bla bla ba & instead of  &amp ,  then you have to pass the data through the code I've mentioned.
    You can get more details on encoding special characters UTF-8 in Google.com or Sun Websites etc.
    You can also encode the & in hexadecimal format to get the desired output.

  • How to handle special characters in Stage web view with Load URL method?

    Hi,
      I have Latin special characters in my text. My HTML content contains the text as well as the image. If I use stage webview LoadString,  images will not be displayed. But my latin characters are displayed correctly.
    If I use LoadURL method, the images are displayed correctly but I have problem in displaying the latin special characters. How to solve this issue?

    Don't pass data values in URLs. Whilst it is possible to escape values to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
    Create a surrogate primary key on the table that is an immutable discrete numeric identifier and only use this as a URL parameter. In target pages/regions, use this PK value to retrieve the required data from the table.

  • Hierarchy node text shows short text instead of medium text in WebI report

    Hi,
    We have created a simple Hierarchy suing Tx RSH1.
    US -> North Carolina
              South Carolinakey
             Rest of America
    Please note "North Carolina" is the medium text for the node while the short text which can contain max of 10 chars is "North Caro"
    We have used and activated the hierarchy within the BEx query. Text display with "Medium Text" has been enabled for the InfoObject. The display on the BW report is as expected showing the medium text for all levels and all modes.
    When a universe is built on the query and a WebI report is created based on the universe everything works fine other than than the Hierarchy text for different levels and nodes. Instead of showing the Medium text, the short text is getting display.
    We took out the text object from the Universe in the Universe designer and went ahead with the key and medium text, but that did not help.
    Is this a known bug? Is there a workaround for this issue?
    We are on XI 3.1 SP3.
    Rgds

    Hi,
    I am working on BO XI 3.1 SP2.
    I have displayed the medium text for the hierarchy nodes as:
    In my universe three detail objects(key, medium name and long name) gets generated for each hierarchy node.
    I have copied the definition of L01 Medium name (detail object) in the L01 dimension object. similarly for other hierarchy nodes.
    i.e. L02, L03.. etc.
    Now the master data which have been loaded for the medium name will be displayed.
    Regards,
    Rohit

  • Need help in setting file name with special characters in attachment

    Hi
    We have a requirement where we need to set the file name that contains special characters (like Russian) and send mauil using Java mail.
    If we set the file name as such, the attachment in the email contains garbled filename
    Can you pl let me know how to resolve this?
    We should use the file name as attachment name and this will have say special characters. The receiver who gets the mail should get with the correct attachment name
    One important point.. the attachments are opened from MS outlook.
    Thanks and regards
    Ram
    Edited by: 884910 on 13 Sep, 2011 5:00 AM

    Read the FAQ carefully. You don't need to call encodeText unless you're using a really
    old version of JavaMail.
    And, it depends on whether the mail reader you're using is handling encoded parameters
    according to the (new) MIME standard, or according to the (old) non-standard hack.
    Sadly, without knowing what mail reader the recipient is using, it's impossible to use
    encoded filenames that will work everywhere.

  • Special Characters formatting in java

    My program is going through files and searches and replaces blah blah, problem is, the files are written in french, therefore there are special characters in the files. and it replaces them all with a ?. how would i make java recognize all these characters?
    I made it so that when it searches line by line, it outputs the old line and the new line right under. and i checked the old lines and they have ? also. so its not my code, its java. But this only happens when java interprets the line, and the code makes java interpret all the lines, changes or no changes. But it doesn't make a difference because one way or another, java has to go through every line anyways.
    So I was wondering if there would be a way to make java interpret the special characters, instead of having ? everywhere. Thanks

    unless im putting it at the wrong spot......its right under the try...
    for (int ii = 0; ii < pathfiles.length; ii++){
            String fileName = pathfiles[ii]; //name of file
         String fileName2 = pathfiles2[ii];
            BufferedReader inFile;
            PrintWriter outFile;
            try {
             System.setProperty ("file.encoding", "ISO8859-1");
                inFile = new BufferedReader(new InputStreamReader(new FileInputStream(fileName),"UTF8"));
                outFile = new PrintWriter(new OutputStreamWriter(new FileOutputStream(fileName2), "UTF8"));
                String fileLine;
                //First we read the file into a string called contents
                while((fileLine = inFile.readLine()) != null) {//read one line at a time
                    System.out.println("old "+fileLine);
                    if (fileLine.matches("(?i).*"+searchString+".*")){//if match is found replace
                        int start = fileLine.indexOf(searchString);
                        fileLine = replace(fileLine, searchString, newString);
                    System.out.println("new "+fileLine);
                    outFile.write(fileLine);
                inFile.close();
                outFile.close();
            catch(FileNotFoundException e) {
                System.out.println(e);
            catch(IOException e) {
                System.out.println(e);
    }

Maybe you are looking for

  • GPU panic MacBook Pro 15'' Mid-2010

    Cheers to all, This is not the first, but I believe not the last thread about this issue. So here we go, I'm having GPU Panic attacks, and yes my MacBook Pro is Mid-2010, and yes it has a motherboard issue (like on most of the threads, symptoms are t

  • External table and newline character

    I have an external table which is just a csv file, records delimited by newline and fields terminated by ','. However, the last column has a newline character appended to it. Is there an option in the external table syntax which will trim this?

  • This could be a BIG PROBLEM

    Here's the deal; Today I was watching movies on my MacBook - in windowsXP (bootcamp). I didn't have the notebook pluged in, it was using battery only. I've noticed that all played video was very choppy, as well as doing anything like opening files an

  • New Macbook Air OS X 10.7 | Lion | Old iPhoto Library Ext Drive

    My iPhoto library is too big to operate on a MacBook Air so i use a 1.5t Seagate drive to store my iPhoto Library.  I bought a new MacBook Air with Lion and using the normal way I have opened my iphoto Library holding Option key the systems says the

  • Transferring spotlight comments to iPhoto

    I've got several hundered scanned photos on a hard drive with spotlight comments attached. Is there any way to transfer those spotlight comments into iPhoto's comment field when I import the files into iPhoto, or will I have to type them all in manua