Special character deletion issue

Hi all,
I have a text field which contains special characters  which are not being entered by key board. I would like to repalce those chars. system is displaying these spl chars as '#'. I have used function module 'SCP_REPLACE_STRANGE_CHARS' , but it is replacing all the specail chars to dots(.), due to this if I have any valid chinese or japanese chars those are also getting replaced.
pls any can help me out to resolve this issue.
Thanks in advance
reddi

hi,
if you want use this fm
code as like below
check this program
RFFORI99
or
use like below
form special_character  changing p_text_in p_text_out.
  call function 'SCP_REPLACE_STRANGE_CHARS'
    exporting
      intext                  = p_text_in
    INTEXT_LG               = 0
    INTER_CP                = '0000'
    INTER_BASE_CP           = '0000'
    IN_CP                   = '0000'
    REPLACEMENT             = 46
    importing
      outtext                 = p_text_out
    OUTUSED                 =
    OUTOVERFLOW             =
   exceptions
     invalid_codepage        = 1
     codepage_mismatch       = 2
     internal_error          = 3
     cannot_convert          = 4
     fields_not_type_c       = 5
     others                  = 6.
  if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  endif.
endform.                                        " special_character
Thanks and regards
durga.K

Similar Messages

  • Special character display issue

    Hi,
    I've been struggling with this issue for some time now and
    have not yet found a solution. Basically I am trying to display the
    letter 'á' in bold within a dynamic text field, where the text
    is parsed from some internal script.
    There is nothing wrong with the script as it works for other
    special characters. I have embedded the correct glyphs, and even
    tried all glyphs.
    I have tried several methods of encoding the character in the
    scipt such as Unicode Escape, Numeric Entity and URL encoding; no
    luck with either. For other special characters I have simply
    embedded the glyph and typed the special character into my script
    using the charmap instructions and they have worked fine but for
    some reason when I want to make it bold it just wont display. The
    method I've used to embolden the text is show below, please note
    this has worked fine for other characters and the bold version of
    the font contains the glyph in the charmap.
    "<font face=\"AvantGarde LT
    Bold\">Lávese</font>"
    This results in: Lvese (in bold) skipping the á
    I'm starting to wonder if this is a problem with the software
    itself. If anyone has any suggestions, I'd love to give them a go.
    Thanks in advance for any assistance
    P.S. my e-mail is [email protected]

    Pl identify which exact version of 10g, along with the database characterset.
    Going by what you have stated, your database characterset is most likely WE8ISO8859P1, which does not recognize the single quote (or apostrophe) or the bullet point.
    You will need to use a characterset that supports these characters - Oracle recommends AL32UTF8
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch6unicode.htm
    If you can recreate this database, use AL32UTF8 then perform your conversion.
    HTH
    Srini

  • Special Character Encoding issue

    Hi all
    Am using OAS9i. i ve deployed a webservice. i submit a payload request data that has some unicode characters like "§". The data is base64binary encoded. The type of the element mentioned in the schema is base64binary. When i retrieve the payload in java implementation code the character is displayed as � in the console. Please advice how to fix this issue. I tried setting JVM option file.encoding=utf-8 it didnt work out.
    Thanks
    Shiny

    When you use an UDF and you have programmed a Sax parser, then make sure, that the parser works with the correct encoding. So when the result of the webservice is  ISO-8859-1, then assign this to the parser.
    In principle the encoding should be part of XML header. Make sure that the encoding of the response is the same as declared in XML header.

  • Special Character deletion

    Hi All,
      Is there any FM or logic to delete the below special characters from a string
      The text looks like this  " R |-A^ssing Four ".
    I have checked with the FMs : "SF_SPECIALCHAR_DELETE"  &  "TELNUMBER_REMOVE_SPECIAL_CHAR".
    These FMs will delete the spaces between words, i do not want that to happen.
    Thanks,
    Mars

    HI,
    FM SF_SPECIALCHAR_DELETE is pretty simple. You can easily make a copy of it and amend it. The line which gets rids of spaces between words is
    CONDENSE  WITH_SPECIALCHAR NO-GAPS.
    So simply just get rid of this line.
    Cheers

  • Special character loading issue with SQL Loader

    Hi,
    I am getting the special characters as part of my input file to SQL loader. The problem is that because the length of the input string (having special characters) is more than 1000 in input data, the converted bytes length is becoming more than 4000 and the defined substrb() function in control file is not working for it and the target 'ADDR_LINE' column in table 'TEST_TAB' is defined Varchar2(1024 char).
    Following is a sample ctl file and data i am using for it.
    LOAD DATA
    CHARACTERSET UTF8
    INFILE 'updated.txt'
    APPEND INTO TABLE TEST_TAB
    FIELDS TERMINATED BY "|~"
    TRAILING NULLCOLS
    INDX_WORD ,
    ADDR_LINE "SUBSTRB(:ADDR_LINE , 1, 1000)",
    CITY
    following is the actual data which i am receiving as part of input file to sql loader for the ADDR_LINE column:
    'RUA PEDROSO ALVARENGA, 1284 AƒAƒA‚AƒAƒA‚A‚AƒAƒAƒA‚A‚AƒA‚A‚AƒAƒAƒA‚AƒAƒA‚A‚A‚AƒAƒA‚A‚AƒA‚A‚AƒAƒAƒA‚AƒAƒA‚A‚AƒAƒAƒA‚A‚AƒA‚A‚A‚AƒAƒA‚AƒAƒA‚A‚A‚AƒAƒA‚A‚AƒA‚A‚A‚AƒAƒA‚AƒAƒA‚A‚AƒAƒAƒA‚A‚AƒA‚A‚AƒAƒAƒA‚AƒAƒA‚A‚A‚AƒAƒA‚A‚AƒA‚A‚A‚AƒAƒA‚AƒAƒA‚A‚AƒAƒAƒA‚A‚AƒA‚A‚A‚AƒAƒA‚AƒAƒA‚A‚A‚AƒAƒA‚A‚AƒA‚A‚A– 10 ANDAR'
    My database is having following settings.
    NLS_CALENDAR     GREGORIAN
    NLS_CHARACTERSET     AL32UTF8
    NLS_COMP     BINARY
    NLS_CURRENCY     $
    NLS_DATE_FORMAT     DD-MON-RR
    NLS_DATE_LANGUAGE     AMERICAN
    NLS_DUAL_CURRENCY     $
    NLS_ISO_CURRENCY     AMERICA
    NLS_LANGUAGE     AMERICAN
    NLS_LENGTH_SEMANTICS     BYTE
    NLS_NCHAR_CHARACTERSET     AL16UTF16
    NLS_NCHAR_CONV_EXCP     FALSE
    NLS_NUMERIC_CHARACTERS     .,
    NLS_SORT     BINARY
    NLS_TERRITORY     AMERICA
    NLS_TIMESTAMP_FORMAT     DD-MON-RR HH.MI.SSXFF AM
    NLS_TIMESTAMP_TZ_FORMAT     DD-MON-RR HH.MI.SSXFF AM TZR
    NLS_TIME_FORMAT     HH.MI.SSXFF AM
    NLS_TIME_TZ_FORMAT     HH.MI.SSXFF AM TZR
    Any help in this regard will be much appreciated.
    Thanks in advance.

    Is the data file created directly on the Unix server ? If not, how does it get to the Unix server ? And where does the file come from ? Is the UTF8 locale installed on the Unix server (check with the Unix sysadmin) ?
    HTH
    Srini

  • XML Data from PL/SQL procedure -- special character issue (eBS)

    Hi All,
    I am developing a report, where the XML data is created by a PL/SQL procedure. I chose this approach over a data template, since there is a lot of processing involved in producing the actual data, and it cannot be done by select-statements alone. The report is run as a regular concurrent request.
    So far so good. There is a problem though. Every time the data contains special characters (ä, ö, umlauts), the concurrent request is completed with a warning, the log confirms that "One or more post-processing actions failed.", also there is no output file. The XML structure is valid as such. The report runs smoothly and produces the output when the XML data does not contain special characters.
    I am producing the XML lines by using the standard FND_FILE.PUT_LINE procedure: Fnd_File.put_line(Fnd_File.output, '<?xml version="1.0" encoding="UTF-8"?>'); This seems like a character encoding issue, but declaring the UTF-8 encoding in this way does not solve the problem.
    Any ideas what can be done to fix this? I have been searching Metalink but cannot find an answer. Many thanks for your kind help.
    Best Regards, Matilda

    Hi Rajesh,
    One idea I have, is that it might be possible to modify the PL/SQL code into a "before report" type trigger, attached to a data template. The code would process the data and write the lines into a temporary table, from which the data template could retrieve them in a simple select-query. However, it would be neat to be able to solve this without adding an extra layer of processing, since BI Publisher supposedly supports PL/SQL procedures as the data source.
    The data in this case is all correct, special characters are an intrinsic feature of the Finnish language. :)
    Best Regards, Matilda

  • Special Character Issue in Country Name Côte d'Ivoire encoding ISO-88509-1

    soa suite 10.1.3.4
    I am reading an xml file using file adapter. The file has encoding type ISO-88509-1 and the country name is coming as <country_name>Côte d'Ivoire</country_name>.
    When I see the BPEL instance, this character is converted to "C\234te d'Ivoire" jumbled character. The target endpoints receives the country name in jumbled format only. I can't change the incoming file format. Is there a way I can read it properly and keep the special character as it is during SOA process.
    Any idea how can I progress in this issue?

    Any idea on this ? My soa suite server is on Solaris and the folder where I am reading the file from is on Windows.

  • External Table - Issues With Special Character.

    I have an external table that reads from a fixed length file. The file is expected to contain special characters. In my case the word containing special character is "Göteborg". Because "ö" is a special character, looks like Oracle is considering it as 2 bytes. That causes the trouble. The subsequent fields in the files get shifted by 1 byte thereby messing up the data. Has anyone faced the issue before. So far we have tried the following solution:
    Changed the value of NLS_LANG to AMERICAN_AMERICA.WE8ISO8859P1
    Tried Setting the Database Character set to UTF-8
    Tried changing the NLS_LENGTH_SYMMANTIC to CHAR instead of BYTE using ALTER SYSTEM
    Tried changing the External table characterset to: AL32UTF8
    Tried changing the External table characterset to: UTF-8
    Nothing works. Other details include:
    • File is UTF-8 encoded
    • Operating System : RHEL
    • Database: Oracle 11gR2
    Any thing else that I might be missing? Any help will be appreciated. Thanks in advance!
    Ganesh

    CREATE TABLE "APP_XXX_XX_XXXX"(
    "KEY_NO" NUMBER,
    "XXX_XXX_XXXXX" VARCHAR2(1 CHAR),
    "XXX_XXX_XXXXX" NUMBER(9,0),
    "XXX_XXX_XXXXX" NUMBER(4,0),
    "XXX_XXX_XXXXX" NUMBER(2,0),
    "XXX_XXX_XXXXX" NUMBER(3,0))
    ORGANIZATION EXTERNAL
    ( TYPE ORACLE_LOADER
    DEFAULT DIRECTORY "DIR"
    ACCESS PARAMETERS
    ( RECORDS DELIMITED BY NEWLINE
    CHARACTERSET 'UTF8'
    LOGFILE APP_XXX_XX_XXXX_%A_%P.LOG'
    BADFILE 'APP_XXX_XX_XXXX_%A_%P.BAD'
    DISCARDFILE 'APP_XXX_XX_XXXX_%A_%P.DSC'
    FIELDS(
    KEY_NO POSITION(1:9) INTEGER EXTERNAL,
    XXX_XXX_XXXXX POSITION(10:10) CHAR,
    XXX_XXX_XXXXX POSITION(11:19) INTEGER EXTERNAL,
    XXX_XXX_XXXXX POSITION(11:14) INTEGER EXTERNAL,
    XXX_XXX_XXXXX POSITION(15:16) INTEGER EXTERNAL,
    XXX_XXX_XXXXX POSITION(17:19) INTEGER EXTERNAL)
    LOCATION
    ( 'FILE1.TXT')
    REJECT LIMIT UNLIMITED
    PARALLEL 4;
    The data forms part of a major driver table, which I may not be able to provide as per the NDA with my company.
    The Script I have shared is standard template for creating external table as part of our applications.
    We majorly cater for EU regions with this project.(European Characterset needed to be supported)
    Thanks
    Ganesh
    Edited by: RGRAM on Feb 11, 2011 12:44 PM

  • Dynamic table issue with special character

    Hi All,
    While creating a dynamic internal table if the fieldname in the fieldcatalog contains any special character like dot(.) , ot is showing the message without creating the dynamic internal table.
    * Create a dynamic internal table with this structure
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    i_style_table = 'X'
    it_fieldcatalog = gt_dyn_fcat
    IMPORTING
    ep_table = gt_dyn_table
    EXCEPTIONS
    generate_subpool_dir_full = 1
    OTHERS = 2
    gt_dyn_fcat contains fieldname with dot.
    So the table gt_dyn_table is not creating.
    I searched in SCN andd found another method
    CALL METHOD
    cl_abap_structdescr=>create
    But the same issue is aslo here in this method.
    Please suggest me any new method in sap to solve the issue.
    Best Regards,
    Munu

    Hi,
    Every programing language has its syntax rules.
    If you want to use this language you have to follow the rules.
    All the peoples involve with SAP ABAP must follow the rules.
    and here it is: from http://help.sap.com/abapdocu_740/en/abennaming_conventions.htm
    How abut using underscores (_)
    Regards.

  • Special character issue while loading data from SAP HR through VDS

    Hello,
    We have a special character issue, while loading data from SAP HR to IdM, using a VDS and following the standard documentation: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e09fa547-f7c9-2b10-3d9e-da93fd15dca1?quicklink=index&overridelayout=true
    French accent like (é,à,è,ù), are correctly loaded but Turkish special ones (like : Ş, İ, ł ) are transformed into u201C#u201D in Idm.
    The question is : does someone know any special setting to do in the VDS or in IdM for special characters to solve this issue??
    Our SAP HR version is ECC6.0 (ABA/BASIS7.0 SP21, SAP_HR6.0 SP54) and we are using a VDS 7.1 SP5 and SAP NW IdM 7.1 SP5 Patch1 on oracle 10.2.
    Thanks

    We are importing directly to the HR staging area, using the transactions/programs "HRLDAP_MAP", "LDAP" and "/RPLDAP_EXTRACT", then we have a job which extract data from the staging area to a CSV file.
    So before the import, the character appears correctly in SAP HR, but by the time it comes through the VDS to the IDM's temporary table, it becomes "#".
    Yes, our data is coming from a Unicode system.
    So, could it be a java parameter to change / add in the VDS??
    Regards.

  • Special character issue with Resource Object in OIM 11g

    Hello
    While creating Resource Object with special character '/' in OIM 11g, it's not allowing me.
    For ex: Peoplesoft Finance/Reporting
    Do we have any other workaround without changing the Resource Object name??
    Thanks for your help.

    Nothing is there in system configuration related to special character.

  • HtmlText issue with special character

    Hi,
    I have input text : "hai <b> how are </b> you? Guess my <i>age</i>. clue age between > 25 and < 29.<b> got it</b>?"
    I put every thing in html text. I am able to see text only till "....> 25 and". Not able to see "< 29.<b> got it</b>". When i removed the special character "<" every thing is fine.
    When i try to search i had advice to replace the "<" with &lt. If I replace all "<" string with &lt then the <b>,<i> are not working with htmltext.
    Is there any soultion to find and replace only the "<" character? (by regular expression)? any other way? help me with demo code
    Thanks,
    Siva

    you have to replace only the less than sign with &lt;
    leave the less than signs that are part of a html tag be, and you should be fine.

  • Question on Special Character RSKC

    Hey guys,
    I wonder if you guys can help, our load keep getting special character (line break) which display as square. And just got to know that nothing is stopping out clients from putting in chinese, german or even russian characters into the text box of your source system.
    So I was wondering how do I allow to accept such wide range of special characters in RSKC or can i just switch RSKC off?
    pts will be rewarded

    Hi,
    I think you are facing an invalid character issue.
    This issue can be resolved by correcting the error records in PSA and updating it into the target. For that the first step should be to identify if all the records are there in PSA. You can find out this from checking the Details tab in RSMO, Job log , PSA > sorting records based on status,etc. Once its confirmed force the request to red and delete the particular request from the target cube. Then go to PSA and edit the incorrect records (correcting or blanking out the invalid entries for particular field InfoObject for the incorrect record) and save it. Once all the incorrect records are edited go to RSA1>PSA find the particular request and update to target manually (right click on PSA request > Start update immediately).
    I will add the step by step procedure to edit PSA data and update into target (request based).
    Steps
    1. Force the request to red in RSMO > Status tab.
    2. Delete the request from target.
    3. Come to RSMO > top right you can see PSA maintenace button > click and go to PSA .
    4.Edit the record
    5. Save PSA data.
    6. Got to RSA15 > Search by request name > Right click > update the request from PSA to target.
    This should solve your problem for now.
    As a long term you can apply some user exit in source system side or change your update rules to ensure that this field is getting blanked out before getting loaded in cube or add that particular char to permitted character list in BW (Run TCODE RSKC
    Input the <character> and execute the program) This will add <character> to the allowed characters list.
    Refer
    /people/sap.user72/blog/2006/07/23/invalid-characters-in-sap-bw-3x-myths-and-reality-part-2
    Thanks,
    JituK

  • Can't create database link when password has special character

    I'm trying to execute the following statement within sqlplus
    create database link alpha connect to scott identified by tiger! using 'db_alpha'
    note that the password for the account has an exclamation point in it. the command fails. I've tried placing the password in quotes (') and double-quotes ("). The double-quotes work, but then the link fails to function properly.
    We are required to have a special character in our passwords... so how do I get that special character into the password for the database link?
    Thanks in advance,
    Darren

    for some weird reason, I can't post the reply I want. every time I try, the forum hangs and doesn't save the message. give me a sec...
    I have put the password within double quotes... so I'm starting to think the problem is something else. I've been reading other posts regarding creating database links and I've obtained limited results. Here's what I've done, and the results I'm getting.
    (names changed to protect the innocent)
    My oracle database is on SYSA. I'm on SYSB. I set my TWO_TASK=SYSA and just use sqlplus to connect as user1.
    I want to run a command on user2's tables. Normally I would just grant read access to user1 on user2's tables and use a command like
    nert spaces to get this to save (weird forum bug here, I can't delete the text to the left)
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om u{color:black}{color}s{color:black}{color}e{color:black}{color}r{color:black}{color}2{color:black}{color}.{color:black}{color}m{color:black}{color}y{color:black}{color}_{color:black}{color}t{color:black}{color}a{color:black}{color}b{color:black}{color}l{color:black}{color}e{color:black}{color};
    However, user2 is for test data and those tables get dropped and recreated often and it is cumbersome to try to remind everyone to recreate the grants. So I can't trust that user1 will have access to user2's tables. So my goal with the database link is to create a private (for user1 only) database link and access the tables that way, that way I bypass the grant issue. This works out better for me because we only change that password every 2 months. I just recreate the database link once every two months, rather than recreate grants multiple times every week. Well, that's the theory anyway.
    Back to creating the database link, I thought my issue was the special character in the password because if I remove the exclamation point everyting works (except that the password is invalid). Below is what it looks like when I do this...
    Attempt #1:
    SQL> create database link BLAH connect to user2 identified by "tiger" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@{color:black}{color}BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_{color:black}{color}ta{color:black}{color}ble{color:black}{color}@{color:black}{color}BLAH
    ERROR at line 1:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from BLAH
    So that looks like it's just a password issue. If I put in the correct password... the error changes to this...
    Attempt #2:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using 'BLAH';
    Database link created
    SQL> sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om my{color:black}{color}_{color:black}{color}table{color:black}{color}@BLAH;
    sel{color:black}{color}ect * fr{color:black}{color}om my{color:black}{color}_ta{color:black}{color}ble{color:black}{color}@BLAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    To me, that doesn't make sense. If the link isn't working... how did it get the "invalid username/password" in Attempt #1?
    Anyway, in perusing other forum posts, one post said to put in the full text from the tnsnames.ora file instead of the alias. So I do a little cut/paste and try this...
    Attempt #3:
    SQL> create database link BLAH connect to user2 identified by "tiger!" using
    2 '(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = server001.aaa.bb.ccc.ddd)(PORT = 9999)))
    3 (CONNECT_DATA = (SERVICE_NAME = devdb)))';
    Database link created.
    SQL> sel{color:black}{color}ect {color:black}{color}* fro{color:black}{color}m my{color:black}{color}_{color:black}{color}tab{color:black}{color}le{color:black}{color}@BLAH;
    sel{color:black}{color}ect {color:black}{color}* fr{color:black}{color}om {color:black}{color}my_{color:black}{color}tab{color:black}{color}le@B{color:black}{color}LAH
    ERROR at line 1:
    ORA-02085: database link BLAH.AAA.BB.CCC.DDD connects to
    DEVDB.AAA.BB.CCC.DDD
    Any ideas on what I'm doing wrong?
    Darren

  • Error while releasing transport request -  Special character "_" in generic

    Hi all,
    we're receiving the error  Special character "_" in generic key  when releasing a best practice transport.
    Note 1304725 describes my error, but the solution cannot be implemented. The reason for this is that we do not have an individual entry for eacht yb_PS,..,
    but we have only one entry where field BWERT has a wildcard '*' as entry.
    Does anyone has  some idea how to solve this ?
    kind regards !

    Hello Bjorn,
    How did you get this solved?
    I'm having nearly the same issue:
    A custom-table with a total key lenght of about 365 characters. As soon as I enter a special character (_) in the key field just before the position 120, the message tk287 rejects the entry. Entering the special character in a key field at about key position
    60, there's no message rejecting the entry.
    Regards

Maybe you are looking for

  • Patch number of Solaris 9 SPARC for Oracle 9.2.0.4 - 9.2.0.7

    Hello! Could anybody point me the right document with information about Solaris 9 patch version for Oracle 9.2.0.4 and 9.2.0.7. Server: FS PRIMEPOWER 250 SPARC64™ V Thanks, Viacheslav

  • Problem with running Applets in JDEV 10G Preview

    Our Jdeveloper project has a default run target which is an Applet HTML page. Sometimes when a you click Run/Debug the project runs in Applet Viewer and sometimes it spawns an OC4J process and runs it in the container. It seems the execution of our p

  • How can I get my ipod classic to work again after dropping it in water?

    I dropped it in soapy greasy water, is there any chance that I can save it so I can use it again?

  • WHY DOESNT MY WIFI WORK?

    When I am at school, I get the schols wifi and when I'm walking home I get the wifi of the neighborhood. As I get closer to my house my wifi pops up but the moment I set itno the house all five of our wifi's are gone and wont come back. So basically

  • Offline-searchable javadoc

    Is there an offline-searchable copy of the java docs? Knowing just where to find the documentation on JList is non-trivial for those, like me, who are new to Java. Having to go back to the online site to conduct a search instead of intuitively knowin