Replacing u25A1 character

Hi,
How to replace this □ character in routine while loading data from source system.
Regards,
Pravender

I had face a same problem in ABAP programming, try to use this statement... and check its removing junk character.
Data : A(35) type C,
          B(35) type C,
   CLASS cl_abap_char_utilities DEFINITION LOAD.
   clear : A,B.
   A = your_field.
   concatenate A cl_abap_char_utilities=>cr_lf INTO B.
   REPLACE ALL OCCURRENCES OF cl_abap_char_utilities=>cr_lf In B WITH
   space.
   your_field = B.
Best Regards,

Similar Messages

  • Replacing a character in a string to another character

    hi,
    i need to write a function or procedure to replace the character of a string value suppose:
    l_error:= 'abcdefghijklmnop' is a string
    i need write a function or procedure to replace the character "c" to "z"
    that data in l_error is not in any table.
    thanks,
    AJ

    I want to Replace all the Existence of the word - "Test" in a string with "Test1" whereever a space exits before the word Test and someother alphabet after "Test" i.e. Test will be replaced with Test1 if a word starts with Test and contains more alphabets also. For example - TestName should be replaced with Test1Name while MyTest should not be updated to MyTest1.
    I have tried to use below query which uses oracle regular expressions -
    SELECT REGEXP_REPLACE('MYCOMPANY TEST TESTGEET INDIA PVT LTD TEST','\s(TEST)\w',' TEST1') FROM DUAL
    Output -
    "MYCOMPANY TEST *TEST1EET* INDIA PVT LTD TEST"
    Here, it has also replaced the G also from TESTGEET and resulted in TEST1EET while i want TEST1GEET.
    Can someone please suggest how can i do this..... may b m doing some silly mistake but sorry m a newbie to regular expression...
    Thanks in advance..

  • How to replace the '&' character with '&' in xi

    Hi,
    i need to replace the '&' character with ' &'.but i f i am converting it is displaying as '&' because internally '&' = '&'.
    beacuse of this it is not converting.
    is there any possiblity to change the  standard conversion in xi.

    Graphical mapping does not support special character like & , <,> to be mapped.
    You can encode & as and in UTF-8 only.
    if you want the special character to be used, Opt XSLT mapping with ISO-8859-1 encoding
    <xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="xml" encoding="ISO-8859-1"/>
    <xsl:template match="/">
    <xsl:copy-of select="*" />
    </xsl:template>
    </xsl:stylesheet>
    How to Work with Character Encodings in Process Integration (NW7.0)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42

  • How to replace a character in a string with blank space.

    Hi,
    How to replace a character in a string with blank space.
    Note:
    I have to change string  CL_DS_1===========CM01 to CL_DS_1               CM01.
    i.e) I have to replace '=' with ' '.
    I have already tried with <b>REPLACE ALL OCCURRENCES OF '=' IN temp_fill_string WITH ' '</b>
    Its not working.

    Hi,
    Try with this..
    call method textedit- >replace_all
      exporting
        case_sensitive_mode = case_sensitive_mode
        replace_string = replace_string
        search_string = search_string
        whole_word_mode = whole_word_mode
      changing
        counter = counter
      exceptions
        error_cntl_call_method = 1
        invalid_parameter = 2.
    <b>Parameters</b>      <b> Description</b>    <b> Possible values</b>
    case_sensitive_mode    Upper-/lowercase       false Do not observe (default value)
                                                                       true  Observe
    replace_string                Text to replace the 
                                         occurrences of
                                         SEARCH_STRING
    search_string                 Text to be replaced
    whole_word_mode          Only replace whole words   false Find whole words and                                                                               
    parts of words (default                                                                               
    value)
                                                                               true  Only find whole words
    counter                         Return value specifying how
                                        many times the search string
                                        was replaced
    Regards,
      Jayaram...

  • Adobe Javascript in PDF Form for replacing special character

    How to replace special character "/"  in to "\" in the text field of PDF Form by using Adobe Javascript.

    In PDF Form java script,  returns the file path with "/" forward slash, but need to get default in "\" backward slash in the file path.

  • Replace a character in a String array

    I have an array of strings and am trying to replace the ' character with a space. I keep getting either a cannot be applied or cannot resolve symbol error. Can anyone help?
    String arrayList = request.getParameter("field");
    String newList = arrayList.replace("\'", " ");

    the replace method of the String class takes two parameters and both of them are characters not strings use it like this
    arrayList.replace('\'', ' ');that should fix it

  • Replacing a character in a String

    Hi All,
    How can I replace a character ' which appears in a String into \'

    There is a method in String that replaces all
    occurrences of one character with anothercharacter.
    It's called, hold your breath now, "replace".But tho OP wants to replace one character with two
    characters :)You're right, I missed that. Well, serves me right for being sarcastic. :-)

  • Find/Replace Extended Character Set characters in filenames in one pipeline

    Hello all,
    I have to work with some very bored people. Instead of putting a dash (hex 2d) into a filename, they opt for something from this
    set of extended characters, which makes my regular expressions fail.  IS there a way I can efficiently find & replace anything outside the standard character set
    in one pipelinewithout finding and replacing a character at a time?
    So,I'd like something like:
    get-childitem * | where-object $_.name -match '\x99' | rename-item -newname { $_.name -replace '\x99','='}
    from hex 80 to hex FF rather than a for-each.
    Thanks.

    Answer would depend on the way you want to replace... Easier if you want replace any char in set with selected char:
    $Name = -join (180..190|%{[char]$_})
    New-Item -ItemType File -Name $Name
    Get-ChildItem * | Rename-Item -NewName {
    [regex]::Replace(
    $_.Name,
    '[\xB4-\xBE]',
    } -WhatIf
    But if you want it more complicated, you may do that too. E.g. defining hashtable that can be used to replace individual elements:
    $Replacer = @{}
    foreach ($Char in (180..190 | % { [char]$_ })) {
    $Replacer.Add(
    [string]$Char,
    (echo _, -, =, . | Get-Random)
    $Replacer
    Get-ChildItem * | Rename-Item -NewName {
    [regex]::Replace(
    $_.Name,
    '[\xB4-\xBE]',
    $Replacer[$args[0].Value]
    } -WhatIf
    Using this syntax make it possible to include some logic in replace. E.g. you could easily use switch to decide what to do with given string:
    Get-ChildItem * | Rename-Item -NewName {
    [regex]::Replace(
    $_.Name,
    '[\xB4-\xBE]',
    switch ($args[0].Value) {
    º { "0" }
    µ { "u" }
    ¹ { "1" }
    ¸ { "," }
    Default { "_" }
    } -WhatIf

  • Replace a character

    Hi all
    I have a ascii file should I replace a character with another. How can I do with form?
    regards
    Silvia

    Open the file with a text editor would be the simplest solution:
    client_host('cmd /c start myfile.txt');
    The start command will cause the default application that is associated with the txt extension to open the file.

  • How to replace a character in a file using awk

    Hello,
    Does anyone has a sample script to replace a character in a file using awk?
    Regards,
    Edited by: slsam01 on Jul 15, 2012 12:56 PM

    Hi
    awk it's not best for this job.
    For replace charecter - generaly use tr or sed
    Example on awk:
    awk -F<old_char> ' { for (i=1; i<NF ;i++ ) printf ( "%s<new_char>", $i ); print $NF }' <file>
    #Replace "e" on "a" in /etc/hosts
    awk -Fe ' { for (i=1; i<NF ;i++ ) printf ( "%sa", $i ); print $NF }' /etc/hosts
    Regards.
    PS. Same on *tr"
    cat file | tr "e" "a"

  • Replace single character and leave the ones in expressions

    Hi,
    I'm looking for nice and elegant solution to my problem. Let's say I have a string "e+exp(e)". I want to replace all "e" with "1", excepts the one in "exp". I was trying to use regular expressions but I've failed after an hour... The solution should be able to solve things like replace "a" in "rand(a)" without changing rand. Basically I need to replace single character without replacing the ones in words/expressions.
    Any ideas?  
    Certified LabVIEW Developer, Certified TestStand Developer
    Solved!
    Go to Solution.

    No time for elegance right now, just brute force.  I would pad the string with spaces on each end to remove end cases and then search for the character surrounded by non-word characters. 
    Message Edited by Darin.K on 04-14-2010 04:06 PM
    Attachments:
    VariableParsingRegex.png ‏18 KB

  • How to replace a character at a random position of a column in SQL Server 2000?

    Hello everyone,
    I'm trying to export the data of a table into a flat file. However, when I try to export it, a column which has a specific character (".") is being loaded as a new column into the file rather than the same column.
    Here is the DDL/DML:
    CREATE TABLE [dbo].[EXT_Name](
    [A_Name] [VARCHAR](4),
    [U_Name] [VARCHAR](256),
    [U_Desc] [VARCHAR](256),
    [Acc_Desc] [VARCHAR](256),
    [S_Type] [VARCHAR](50))
    Its just that's it. No more Keys and Indexes on this table.
    Here is the bcp command I'm running:
    EXEC [master].[dbo].[xp_cmdshell] 'bcp "SELECT * FROM [dbo].[Ext_Name]" queryout C:\Data\Ext_Name.dat -c -t, -T -S'
    Data:
    GEHG,/User/Personal/Project/Click.do,Search for User Project.,See Summary,Summaries
    GEHG,/User/Personal/Project/Click.do,Search for User Project.Detail,null,Summaries
    Instead for the data to be loaded as the above, its loading into the file as
    GEHG,/User/Personal/Project/Click.do,Search for User Project.,See Summary,Summaries
    GEHG,/User/Personal/Project/Click.do,Search for User Project.Detail
    ,null,Summaries
    This issue occurs only when [Acc_Desc] column has the "." character in between the string. Could experts in this forum help me please?
    Thank you,
    Bangaaram
    Known is a DROP, Unknown is an OCEAN.

    That is most likely not your problem. Your problem is most likely the source data has a CR and/or LF after it in the database.
    Run this to remove them from Acc_Desc:
    UPDATE [dbo].[EXT_Name]
    SET [Acc_Desc] = REPLACE(REPLACE([Acc_Desc],CHAR(13),''),CHAR(10),'')
    Perfect! Thank you Tom :)
    Known is a DROP, Unknown is an OCEAN.

  • Replace hex character in a string with another hex character

    Hi Guys,
    Heres a problem scenario, hex character 92 looks very much like hex character 27 (apostrophe).
    I need to write a program that can replace all hex character 92 to hex 27 in a string.
    Being a novice on the regular expressions, I would appreciate if somebody can show
    the exact syntax to to perform this replacement.
    Many Thanks
    -Anil

    I don't think you need to use regex to do this:
    String s = something();
    char a = 0x27;
    char b = 0x92;
    s.replace(a,b);
    And don't forget that since Strings are immutable you need:
    s = s.replace(a,b);to do anything useful.

  • Replacing the \ character in a string

    I'm having trouble replacing a backslash in a string. I use .indexOf() to find the character, but I have to use an escape character and write .index("\\"), but it doesn't work - it returns -1.
    Also, replace() doesn't work - gives me an java.util.regex.PatternSyntaxException. Any ideas?
    thx

    The escape is for the compiler, I think, and then you need to escape the backslash.
    Try "\\\\".
    � {�                                                                                                                                                                                                           

  • Replace a character in a string

    Hi,
    I've been tearing my hair out trying to do something very simple, replace a backslash character in a string with an underscore. I've searched online and discovered the -replace parameter which you would think would work fine but no, it seems to get in a
    tizzy because the character I want to replace is a backslash and I get an error: "Invalid regualr expression pattern".
    Here's what I have which produces the error:
    $str = 'start\end'
    $str = $str -replace '\','_'
    Can someone tell me how to do this? I simply want to replace a backslash with an underscore.
    thanks
    Jamie
    http://sqlblog.com/blogs/jamie_thomson/ |
    @jamiet |
    About me

    sod's law. I spend half an hour trying to figure this out and then as soon as I post this thread I figure it. The following works:
    $str = 'start\end'
    $str = $str -replace '\\','_'
    $str
    http://sqlblog.com/blogs/jamie_thomson/ |
    @jamiet |
    About me
    "-replace" requires a regular expression for each argument, which is why you needed to escape your backslash with another backslash.  If you use the replace() string method, you are not required to use regular expressions:
    $str = $str.replace('\','_') will work exactly as you expect it to.

Maybe you are looking for

  • SAP Businessobjects mobile reports

    Hi Experts we are installed SAP Business Mobile On server,every thing is configured. we are able to see the reports on Blackberry and windows mobile.but my requirement is reports on IPhone or Ipad. Reports on IPhone Or Ipad Is this Possible.if not re

  • Why can't I find preferances in the edit tabs drop down menu?

    Although I had Indesign CS6 for over a year this is my first time using it . I want to set the default page size to inches, instead of using Indesigns default settings.  Following Terry Whites instruction From the video clip on YouTube I tried findin

  • Podcasts library in version 7.0

    7.0 is crap for podcasts. You haven't a library listing all your podcasts, like for example you have for your music. I have one and a half thousand podcasts and it's **** to organise them. I've got around it by making a smart playlist but why should

  • Need big help creating PDF/X-1a compliant document.

    Hi all, I have tried this on my own but cannot make it work as I am not so computer savy. I have created all the files to specifications as best I can but when I try and use the preset PDF/X-1a it says violation both artbox and trimbox for every page

  • Multiple SSIDs and NPS

    I have a WLC setup with one ssid (ssid A) using Web auth tied back to NPS with the requirement be that you have to be in the domain users group to authenticate.  It works fine.  I have SSID B setup using eap-tls with the requirement of the pc having