Replace any special charecter with space

Hi all,
I would like to remove any occurence of special charecter that may belong to  specific language(ä)  or (* & %).
The input may be a  string in  parameter variable or a file input.
Regards,
Sourya

hi,
constants: con_cr type x value '0D'. or try '0D0A'
replace con_cr with space into X.
else
go through this"http://help.sap.com/abapdocu_70/en/ABAPREPLACE_IN_PATTERN.htm"
cheers,
Bhavana
Edited by: Bhavana Amar on Apr 15, 2010 8:18 AM

Similar Messages

  • Mail Merge script to replace any blank fields with specific text

    In InDesign Mail Merge I would like to replace any blank fields with specific text. For example if we have four fields (A, B, C & D) to merge, and field A is blank, it would insert field C.
    In essence leaving no blank fields but replacing a blank field with another specific field.
    I have read that inDesign does have Mail Merge limitations but if there is a script that we could run that would solve our problem.
    Please let me know if you can help?

    I take from the lack of response it is not possible to do this in InDesign.

  • OAPs - Any special deals with line connection / re...

    Hello - I think I may know the answer but are there any special BT deals available for OAPs regarding line connection and rental.
    My inlaws have just returned to the UK after 30 years in Cyprus - moving to their own flat here in the UK - both aged 82
    Solved!
    Go to Solution.

    Hi stevedan,
    If your in-laws are in receipt of a pensions credit they may be eligible for the BT Basic service.
    Cheers
    Neil 
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry but we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)
    If someone answers your question correctly please let other members know by clicking on ’Mark as Accepted Solution’.

  • I want to compare two columns and replace any equal values with the value in a specific cell

    I want to compare the numbers in two columns and replace all matching numbers in the second columns with the corresponding value from a cell in the same row as the matching number. 

    Me too.
    Barry

  • SharePoint Calc Column - How to Find and Replace ANY & ALL Values with Something Else

    Haven't found a solution on this even though it seems like it should be cut and dry.
    I have a column containing characters "-" (e.g., XXX123-123-fjhrh-sdafsdfsd). I want to find every "-" and replace it with "@". Seems easy but so far haven't found a solution. My calc column always seems to stop at the first
    occurence of "-" and only replace that one. Seems every forumula wants you to tell SharePoint where to start (position). You can't simply tell SharePoint, Find this "-" ALL OCCURENCES and replace with this "@" ALL OCCURENCES.
    I don't have the option of saying start at this position because my data is not the same in every cell/field (e.g., number of characters).
    Closest I've gotten is this:
    =REPLACE([IN THIS COLUMN],FIND("-",[IN THIS COLUMN]),LEN("-","@")
    RESULTS:
    XXX@123-XXX-123

    Hi JJSHAREP,
    The formula only works when there are only three "-" in the column value, and the formula will fail if there are more than or less than three "-" in the column value.
    I recommend to use Jquery code to replace the characters in the column called IN THIS COLUMN in the UI:
    <script src="http://code.jquery.com/jquery-1.10.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(function () {
    var Index=0;
    $(".ms-listviewtable tr th").each(function(i){
    if($(this).find("div").attr("name")=="IN_x0020_THIS_x0020_COLUMN"){
    Index=i;
    $(".ms-listviewtable tr").each(function(i){
    if(i>0){
    var value=$(this).find("td").eq(Index).text();
    var value1=value.replace(/\-/g, '@');
    $(this).find("td").eq(titleIndex).text(value1);
    </script>
    Best regards.
    Thanks
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Conver special charecter into space ' '

    Hi all,
    I want to translate some set of special characters as single space ' ' is it possible to do it in a single query.
    ascii BETWEEN 31 AND 47
    ascii BETWEEN 58 AND 64
    ascii BETWEEN 91 AND 96
    into ' '
    Kindly help me
    thanks in advance
    jaggyam

    SELECT CASE
              WHEN ASCII (dummy) BETWEEN 31 AND 47
               OR ASCII (dummy) BETWEEN 58 AND 64
               OR ASCII (dummy) BETWEEN 91 AND 96
                 THEN ' '
              ELSE dummy
           END CASE
      FROM DUAL;

  • How replace any character typed with other characters useing Keymap in JTC!

    Hi,
    I want to map some key to some character(unicode) using Keymap interface.
    What`s the easiest and shortest way to do it?
    Thank you in Advance,
    chandracar

    I test it on an english Window and worked well but on
    an arabic/farsi window didn`t work well.The character
    that appears in text component isn`t the character
    that i defined in the program.We would need to see the source code for your CustomKeyTypedAction (or whatever you called it) to help you any further.
    How can i define a keymap that independent from the
    OS language that works same in all OS languages
    like english or non-english?I'm no expert, but that sounds like a big project. At the least, you would need a conversion table for every pair of languages, but that would only work when the user's keyboard had enough keys to produce all the characters in the target language. Some languages have so many characters that even purpose-made keyboards can't hold them all, and special InputMethods have to be used to enter them (and I don't know anything about those).

  • Suppress Underscore and replace with Space in FR

    Hi
    Hyperion Financial Reporting 11.1.2.1
    In the excel, with a Essbase add-in, we have an option as Suppress--->Underscore Characters
    This will eliminate the Underscore and replaces with a space
    I want to know if the same functionality exists in the FR Studio
    Any insight would be much appreciated
    Regards
    Tejo jagadeesh

    Sorry, I misread your question. I thought it would be doable though Conditional Format: http://docs.oracle.com/cd/E17236_01/epm.1112/fr_user/ch10s02.html
    Something like this:
    If Member Name > Dimension > contains > _ > Format Cells > Replace >
    But then it replaces the whole member with space which I believe is not something you are looking for.
    One other option is to have another alias table in your database and select the new alias table in FR. I know this is an option for Essbase. I am not so sure about other db connections.
    Cheers,
    Mehmet

  • How to replace a rowman letter a filed with space

    Hi All,
    please let me know. how can i repalce a rowman letter in a field.
    In one of the HR field  ( for job descriptiuon ) i have to replace the rowman letter with space.
    example:  Sr Develoiper I.   i have to replace I with  space.
    Regards,
    kishan

    Try with this,
    *-reverse string
        CALL FUNCTION 'STRING_REVERSE'
          EXPORTING
            string  = maktx
            lang    = 'E'
          IMPORTING
            rstring = temp_str.
    But I have a doubt, for Roman char, which are anywhere in String, this will work.
    If you have limited Numbers - like may be I, II, III or may be upto X.
    Write REPLACE statement no. of times.  (Generally not suggested, but for Roman letter fetch I don't find other option)
    REPLACE ALL OCCURRENCES OF 'I' IN maktx WITH ' '
                 REPLACEMENT COUNT cnt .
      IF cnt > 0.

  • Abap TO CONVERT SPECIAL CHARACTERS TO SPACE

    I have a field in BI "zpustreg" which has values with - and # which is not allowing me to load the data to cube so I am writing this code in transformation to convert any special character to space. but it is having error if you can help me fix the code below would really appreciate it
    <b>Abap Code to Load ZPUSTREG</b>
      METHOD compute_ZPUSTREG.
      IMPORTING
        request     type rsrequest
        datapackid  type rsdatapid
        SOURCE_FIELDS-/BIC/ZPUSTREG TYPE /BIC/OIZCUSTREG
       EXPORTING
         RESULT type tys_TG_1-/BIC/ZPUSTREG
        DATA:
          MONITOR_REC    TYPE rsmonitor.
    $$ begin of routine - insert your code only below this line        -
    ... "insert your code here
    *DATA:Monitor_REC TYPE rsmonitor.
    DATA:L_D_OFFSET LIKE sy-index.
    CONSTANTS:c_allowed(60) TYPE c.
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    RESULT = SOURCE_FIELDS-/BIC/ZPUSTREG
    TRANSLATE RESULT TO UPPER CASE
    DO 60 TIMES.
    L_d_offset = sy-index – 1.
    IF RESULT+1_offset(1) CO c_allowed.
    Else.
    RESULT+1_d_offset(1) = ` ’.
    ENDIF.
    ENDDO.
    ENDMETHOD.
    <b>
    E:Statement "VALUE" is not defined. Check your spelling. spelling.
    E:Unable to interpret "C". Possible causes of error: Incorrect spelling</b>
    Thanks
    Soniya

    Hello Soniya
    There is simply a '.' at the wrong place:
    CONSTANTS:c_allowed(60) TYPE c.  "<- wrong, remove
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    CONSTANTS:c_allowed(60) TYPE c
    Value `ABCDEFGHIJKLMNOPQRSTUVWXYZ!"%&'()*+,-/:;<=>?_0123456789_’.
    That's it.
    Regards
      Uwe

  • How can I replace the Special Character        '

    Hi Guru ,
    I want replace one Special Chareacter into space .
    Example -
    There have one variable .
    L_VAR = BANGA'LORE
    I want to delete the special character ( ' ) which is between A and L .
    Whenever I am tryiny to use replcae statement , it will show one Error Message .
    REPLACE ''' IN L_VAR WITH ' '.
    IT WILL GIVE ONE ERROR MESSAGE - " Literals that take up more than one line are not permitted."
    How Can I replace this .

    Hi Tarak Dey,
    This error
    Literals that take up more than one line are not permitted
    is not for the Replace statement. You would have missed a PERIOD in some statement before this.
    When we see the code that you have pasted,
    L_VAR = BANGA'LORE
    here period is missing at the end of the line. The error could be because of that.
    Kindly check.
    Best Regards,
    Ram.

  • Replacing a special character in a string with another string

    Hi
    I need to replace a special character in a string with another string.
    Say there is a string -  "abc's def's are alphabets"
    and i need to replace all the ' (apostrophe) with &apos& ..which should look like as below
    "abc&apos&s def&apos&s are alphabets" .
    Kindly let me know how this requirement can be met.
    Regards
    Sukumari

    REPLACE
    Syntax Forms
    Pattern-based replacement
    1. REPLACE [{FIRST OCCURRENCE}|{ALL OCCURRENCES} OF]
    pattern
              IN [section_of] dobj WITH new
              [IN {BYTE|CHARACTER} MODE]
              [{RESPECTING|IGNORING} CASE]
              [REPLACEMENT COUNT rcnt]
              { {[REPLACEMENT OFFSET roff]
                 [REPLACEMENT LENGTH rlen]}
              | [RESULTS result_tab|result_wa] }.
    Position-based replacement
    2. REPLACE SECTION [OFFSET off] [LENGTH len] OF dobj WITH new
                      [IN {BYTE|CHARACTER} MODE].
    Effect
    This statement replaces characters or bytes of the variable dobj by characters or bytes of the data object new. Here, position-based and pattern-based replacement are possible.
    When the replacement is executed, an interim result without a length limit is implicitly generated and the interim result is transferred to the data object dobj. If the length of the interim result is longer than the length of dobj, the data is cut off on the right in the case of data objects of fixed length. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or hexadecimal zeroes. Data objects of variable length are adjusted. If data is cut off to the right when the interim result is assigned, sy-subrc is set to 2.
    In the case of character string processing, the closing spaces are taken into account for data objects dobj of fixed length; they are not taken into account in the case of new.
    System fields
    sy-subrc Meaning
    0 The specified section or subsequence was replaced by the content of new and the result is available in full in dobj.
    2 The specified section or subsequence was replaced in dobj by the contents of new and the result of the replacement was cut off to the right.
    4 The subsequence in sub_string was not found in dobj in the pattern-based search.
    8 The data objects sub_string and new contain double-byte characters that cannot be interpreted.
    Note
    These forms of the statement REPLACE replace the following obsolete form:
    REPLACE sub_string WITH
    Syntax
    REPLACE sub_string WITH new INTO dobj
            [IN {BYTE|CHARACTER} MODE]
            [LENGTH len].
    Extras:
    1. ... IN {BYTE|CHARACTER} MODE
    2. ... LENGTH len
    Effect
    This statement searches through a byte string or character string dobj for the subsequence specified in sub_string and replaces the first byte or character string in dobj that matches sub_string with the contents of the data object new.
    The memory areas of sub_string and new must not overlap, otherwise the result is undefined. If sub_string is an empty string, the point before the first character or byte of the search area is found and the content of new is inserted before the first character.
    During character string processing, the closing blank is considered for data objects dobj, sub_string and new of type c, d, n or t.
    System Fields
    sy-subrc Meaning
    0 The subsequence in sub_string was replaced in the target field dobj with the content of new.
    4 The subsequence in sub_string could not be replaced in the target field dobj with the contents of new.
    Note
    This variant of the statement REPLACE will be replaced, beginning with Release 6.10, with a new variant.
    Addition 1
    ... IN {BYTE|CHARACTER} MODE
    Effect
    The optional addition IN {BYTE|CHARACTER} MODE determines whether byte or character string processing will be executed. If the addition is not specified, character string processing is executed. Depending on the processing type, the data objects sub_string, new, and dobj must be byte or character type.
    Addition 2
    ... LENGTH len
    Effect
    If the addition LENGTH is not specified, all the data objects involved are evaluated in their entire length. If the addition LENGTH is specified, only the first len bytes or characters of sub_string are used for the search. For len, a data object of the type i is expected.
    If the length of the interim result is longer than the length of dobj, data objects of fixed length will be cut off to the right. If the length of the interim result is shorter than the length of dobj, data objects of fixed length are filled to the right with blanks or with hexadecimal 0. Data objects of variable length are adapted.
    Example
    After the replacements, text1 contains the complete content "I should know that you know", while text2 has the cut-off content "I should know that".
    DATA:   text1      TYPE string       VALUE 'I know you know',
            text2(18)  TYPE c LENGTH 18  VALUE 'I know you know',
            sub_string TYPE string       VALUE 'know',
            new        TYPE string       VALUE 'should know that'.
    REPLACE sub_string WITH new INTO text1.
    REPLACE sub_string WITH new INTO text2.

  • Preventing Discoverer Admin replacing underscores with spaces on refresh

    Hello,
    On refreshing a Business Area, Discoverer Administrator will automatically replace underscores with spaces for any new items/folders to be incorporated. I would prefer this not to happen i.e. the names should retain the underscores. I haven't found any way to do this from within Discoverer Admin - are there some registry settings that I can tweak or is it just not possible,
    Thanks in anticipation,
    Kevin.

    Hi,
    Well, you could try using a eul_trigger$refresh_new_column trigger. I must admit I have never tried this, but the details are in the documentation (http://download.oracle.com/docs/html/B13916_04/appendix_b.htm#sthref2417).
    Rod West

  • Replacing unauthorized characters with space

    Hi friends,
    There is a set of authorized characters. The authorized characters are
    abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789<space>
    If any character other than these characters should be replaced with space.
    For example, "I like foot-ball" should be changed to "I like foot ball"
    "Where are you?" should be changed to "Where are you"
    "red / blue" should be changed to "red   blue"
    I use Oracle 11.2.
    Thanks in advance!

    Using regular expression you can do this.
    SQL> with t
      2  as
      3  (
      4  select 'I like foot-ball' str
      5    from dual
      6  )
      7  select str
      8       , regexp_replace(str, '[^a-z0-9[:space:]]', ' ', 1, 0, 'i') new_str
      9    from t;
    STR              NEW_STR
    I like foot-ball I like foot ball
    You can read more about regular expression from the document.
    Using Regular Expressions in Oracle Database
    Message was edited by: Karthick_Arp
    Edited the Pattern after seeing franks post.

  • Hi expert. replace . with space

    HI expert.
    I want to replace '.' with space . so I proceed below.
    itab is composed to two feilds.
    date1 type char10
    date2 type char10
    the field's values are '2011.01.01'.
    REPLACE ALL OCCURRENCES OF REGEX '\b(.)\b'
            IN TABLE ITAB WITH SPACE
            RESPECTING CASE.
    result.
    date1 : '2011010120'
    date2 : '110101'
    but I want the result below.
    date1 : '20110101'
    date2 : '20110101'
    what should i do?
    please help.

    Hi Jake,
    Using convert date to internal as mentioned by Zafar is a good idea, i don't see how this concerns the no of records, do update the post if you have a special requirement/concerns about using that FM.
    Anyways the other way to do it using the offsets,
    data: l_data type char10 value '2011.01.01',
    l_date2 type char10.
    concatenate l_data+0(4)  l_data+5(2) l_data+8(2) into l_date2.
    or
    l_date2+0(4) = l_data+0(4).
    l_date2+8(2) = l_data++5(2).
    l_date2+8(2) = l_data+8(2).
    Regards,
    Chen

Maybe you are looking for