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;

Similar Messages

  • 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

  • Special Characters and spaces in Tablenames and Column Names are allowed ?

    Hi
    I have created two tables in Oracle10g
    as follows
    SQL> create table test(columna number,columnb varchar2(20),primary key(columna));
    Table created.
    SQL> insert into test values(1,'test');
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> create table "test quote"("#" number,abc number,primary key("#"));
    Table created.
    SQL> insert into "test quote" values(1,2);
    1 row created.
    SQL> commit;
    COMMIT är utfört.
    SQL> select * from "test quote";
    # ABC
    1 2
    SQL> select * from test;
    COLUMNA COLUMNB
    1 test
    Now I want to cache the tables and their data into TimesTen
    The cache group for table test which is not having any spaces and special characters in table name and column names is created perfectly.
    But when I create the cache group for table "test quote" which is having special characters and spaces it gives error :
    Command>create readonly cache group w2 from testuser.test(columna number,columnb varchar2(20),primary key(columna));
    Command>select * from test;
    <1,test>
    1 row found.
    Command>create readonly cache group w3 from testuser."test quote"("#" number,abc number,primary key("#"));
    5140: Could not find TESTUSER.TEST QUOTE in Oracle. May not have privileges.
    Command Failed.
    Now there is contradiction that why cache group for table test is created successfully and why it is not being created for table "test quote".
    What I think is if special characters and spaces in column names and table names are possible in Oracle then it sould be possible in TimesTen.
    Any possible solution.
    Looking forward for your reply.
    Please help I am stuck badly.
    /Ahmad

    Hi
    Problem Solved ....... Remeber only Capital letters work with special characters ......
    /Ahmad

  • 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

  • Impulses loaded into Space Designer?

    Hey does anybody know how to load impulse responses into Space Designer? Just downloaded some third party stuff and wanted to try them out. They are called "Beamsonic Impulses". Thanks

    Yeah, using gates would be clumsy and buggy. What the Sonic Birth API does is is allow you to construct your own AU by instatiating actual code. But you don't have to really write the code. You drag visual modules around and link them with virtual cables. Each module is ultimately a C++ class function and you're really just building object oriented code with a GUI. There really is very little you can't do. For example, you can even attentuate output amplitudes with whatever function or equation you wish to write. Recently I wrote a fade in/fade out plug that follows exponential curves when a timing loop is started by a boolean variable switching from 0 to 1. Designing a virtual logic circuit to test the input for its amplitude is very easy and that could be used as a trigger to switch between the output of several convolutions. To the end user it would look like any other AU if you packaged the IR wave files with the plug you create and set them up as presets. The catch is that the user has to actually have the Sonic Birth framework on their machine to use it. It doesn't make a generic AU that everyone can use.
    If I get this baby working I'm gonna get real excited.

  • When I try to drag titles or special effect into my clip in imovie it doesn't work can anyone help me?

    When I try to drag titles or special effect into my clip in imovie it doesn't work can anyone help me?

    Assuming you have (1) signed out, then (2) waited 30 minutes and it didn't work you will need to contact iTunes again.

  • Problem with special charecter while calling a BAPI from Webdynpro JAVA.

    Hi Experts,
    I am calling a BAPI from Webdynpro JAVA. I am passing a special charecter  u2018 as input to BAPI. But I am getting a # as input in R/3.. Can any one explain why it is getting changed?
    Any inputs regarding this issue are appreciated.
    Thanks,
    Kasinath.

    Hi,
        I had same problem before..For this I have created function module in backend for removing #. It was for converting Stream to ITF text.
    CONVERT_STREAM_TO_ITF_TEXT.
    Try this.
    Thanks,
    Prajakta

  • Special characters into datagrid through the use of buttons

    Hi!
    I have a datagrid for word input, I'm trying to create a "special characters" panel, kind of like google's new "virtual keyboard" thing on google.com, so that the user can enter data into the datagrid cells using characters that aren't on their keyboards.
    I manage to do this just fine, using the solution below. I know this is probably not the best/most effective way to do this, so any suggestions for making the code better will be appreciated. I only started using Flex a month ago.
    grid.addEventListener(DataGridEvent.ITEM_EDIT_BEGIN, selectColumn)
    function selectColumn(event:DataGridEvent):void
    var selectedColumn:DataGridColumn = grid.columns[event.columnIndex];
    selCol = selectedColumn.dataField;
    //The function for adding a special character to the selected datagrid column by clicking a button:
    //(inputWordArray is the dataprovider for the grid called "grid" )
    protected function clickSomeButton(event:MouseEvent):void
    var colIndex:int = new int;
    if (selCol == "from"){
    inputWordArray[grid.selectedIndex].from = inputWordArray[grid.selectedIndex].from + "æ";
    colIndex = 0;
    else if (selCol == "to"){
    colIndex = 1;
    inputWordArray[grid.selectedIndex].to = inputWordArray[grid.selectedIndex].to + "æ";
    inputWordArray.refresh();
    grid.dispatchEvent(new DataGridEvent(DataGridEvent.ITEM_EDIT_BEGINNING, false, false, colIndex, null, grid.selectedIndex));
    The problem is that this only adds a letter at the end of the selected item's value, not at a specific position within the word specified by the position of the cursor. This is what I need to achieve. I have no idea even what to search for, if anyone could please give me a hint that'd be great.

    You will probably need to capture the editor's selectionBeginIndex and
    selectionEndIndex

  • HTML Editor - converting "special characters" into entities

    Hi everyone,
    I'm currently in the middle of formatting my wife's novel into 'clean' html so I can use Calibre to create a well formatted epub/mobi/etc.
    I've read that TextMate on Mac includes a function to "Convert Selection to Entities excluding Tags".  In other words it will replace all special characters (ellipses, copyright sign, etc) with the html entities.
    I'm currently using Kate and I can't seem to find anything similar.  Is anyone aware of any linux editors with the same function?
    Thanks for the help!

    ctarwater wrote:Encoding is already UTF-8 but I'm trying to make these docs as "universal" as possible and I've read that little things like replacing quotation marks and other symbols with their html entities is a good step in that direction.
    In situations with multiple encodings this might be the case, but the XML spec requires UTF‐8 support at minimum and defaults to it when the encoding is not declared. All XML parsers can deal with UTF‐8.
    In fact, replacing UTF‐8 characters with entities is less portable in XML. This is because the available entities are defined by the doctype, and XML only supports five by default (&lt;, &gt;, &quot;, &amp;, and &apos;). Things like &hellip; are defined in the HTML and XHTML doctypes, but not in other dialects of XML. This used to bite RSS pretty hard (probably still does), because people assumed the entities were available everywhere when they’re really not. EPUB and Mobi are based on XHTML, but other formats might use other XML dialects.

  • How to export special characters into an XML file?

    Dear experts,
    We read files from our customers and save data into our customized table without any character changed, including some address fields. In those address fields, some special characters (not in our code page) are also kept. When we want to write these address fields into an XML file or flat file, the special charcters become "##" or not readable, can anyone help us to solve this issue?
    Question1: How to write special code to an external file?
    Question2: how to use 'CALL TRANSFORMATION' from an internal table to an XML file?
    Your answer is highly appreciated!
    Joanne

    Hi Joanne.
    Please check the below link.
    CALL TRANSFORMATION
    Before that u have to create one transformation program in STRANS tcode for using it in call transformation statement.
    Hope it will be useful.
    Regards,
    Lakshman

  • Special Charecter acceptable in Import manager?

    Hell Experts,
    I have a situation where i need to extract data from syndicator and load the same file into MDM via Import manager.
    The extracted file format is '.txt' (Flat File)
    When i try to reload the same file, import manager throws error when it spots speacial charecters in teh Flat file (Ex: " )
    When i remove " in the Source file i am able to import the file. But i cannot ask the Users to each time they get the flat file to open it and remove the " .
    is there any way to load this file via Import manager with out manipulating the data init?
    Please Help.
    Regards
    Eva

    Hi Eva,
    Kindly find the below threads, which may help to sort your issue.
    http://scn.sap.com/thread/1860282
    https://www.interspire.com/support/kb/questions/1071/When+importing+contacts+from+a+CSV+file,+special+characters+(e.g.+%E8,+%E9,+%EA...)+are+not+visible
    Regards
    Rahul

  • Insertion of a special Character into a table

    Hi all,
    I came across a non keyboard character in an Oracle table (9i) and when i queried the table column with the following query
    Code:
    SELECT asciistr(col1) from test1;
    I got the output as
    \FFFD
    \02DC
    How could i insert the same character in my Oracle environment using the ascii code of the characters viz., \FFFD , \02DC
    I tried inserting with the followin insert query,
    INSERT INTO TEST1 VALUES ('\FFFD');
    INSERT INTO TEST1 VALUES ('\\02DC');
    but it inserted the above ascii codes as a character string rather than the special character.
    Kindly advice on how to insert the special character using their ascii codes.
    Please note that my Oracle version is 9i and its character set is WE8ISO8859P1.

    Just not possible. Whatever I tried I never could get back what I inserted:
    C:\temp>set NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    C:\temp>sqlplus user/passwd@dev
    SQL*Plus: Release 10.2.0.2.0 - Production on Mon May 14 16:42:53 2007
    Copyright (c) 1982, 2005, Oracle.  All Rights Reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> @afiedt.buf
    SQL> SET NUMWIDTH 10
    SQL> COLUMN a format a30
    SQL> COLUMN a1 format 99999
    SQL> COLUMN a2 format a10
    SQL> COLUMN parameter format a15
    SQL> COLUMN value format a20
    SQL>
    SQL> SELECT * FROM NLS_DATABASE_PARAMETERS WHERE PARAMETER IN ('NLS_CHARACTERSET
    ','NLS_TERRITORY','NLS_LANGUAGE')
      2  /
    PARAMETER        VALUE
    NLS_LANGUAGE     AMERICAN
    NLS_TERRITORY    AMERICA
    NLS_CHARACTERSET WE8MSWIN1252
    SQL>
    SQL> ALTER SESSION SET NLS_LANGUAGE=american
      2  /
    Session altered.
    SQL> ALTER SESSION SET NLS_TERRITORY=america
      2  /
    Session altered.
    SQL>
    SQL> INSERT INTO t VALUES (UNISTR ('\FFFD'))
      2  /
    1 row created.
    SQL>
    SQL> SELECT DUMP (a) a, ASCII (a) a1, ASCIISTR (a) a2 FROM t
      2  /
    A                                  A1 A2
    Typ=1 Len=1: 191                  191 \00BFI think it is just not possible ...
    Regards,
    Michael

  • Include Special Periods into 12th period for Virtual InfoCube(0FIGL_VC1)

    Dear SDN,
    The following update routine is perfectly working for 0FIGL_C01 InfoCube...
    But some reports developed with 0FIGL_VC1 InfoCube....Still Special Periods are coming....
    The update routine could look like the following if it is 0FISCPER:
    IF COMM_STRUCTURE-FISCPER+5(2) > '12'.
      CONCATENATE COMM_STRUCTURE-FISCPER(4) '012' INTO RESULT.
    ELSE.
      RESULT = COMM_STRUCTURE-FISCPER.
    ENDIF.
    I want to eliminate special periods problem in 0FIGL_VC1 InfoCube also...
    All Special Periods should be in the 12 th Period..
    I have included code in the Update rules level ...
    But similarly how to do in the Virtual InfoCube, Which does not have update rules...
    Help will be greatly appreciated with points...
    Thanks in advance...

    Hi,
    Thanks for your quick reply,
    But here i am getting Special Periods for Virtual InfoCube...Whereas 0FIGL_C01--- Special Period problem resolved....
    I am also not understanding how come in 0FIGL_VC1 -- Special periods problem still existing..
    Pls provide a solution
    Thanks

  • Miro: When enter op number,fill a special value into  SGTXT automatically

    Hi guys
       When user inputs the PO number, PO description will be filled into the field TEXT on the line item automatically. So user can view it
      After my testing again and again, I did not find there is an optional user exit or badi(listed below) to meet this requirement.
    It would be great enough if you can help me resolving this issue ASAP.
    BADI:      invoice_update
    User Exit:
    LMR1M001            User exits in Logistics Invoice Verification
    LMR1M002            Account grouping for GR/IR account maintenance
    LMR1M003            Number assignment in Logistics Invoice Verification
    LMR1M004            Logistics Invoice Verification: item text for follow-on docs
    LMR1M005            Logistics Inv. Verification: Release Parked Doc. for Posting
    LMR1M006            Logistics Invoice Verification: Process XML Invoice
    MRMH0001            Logistics Invoice Verification: ERS procedure
    MRMH0002            Logistics Invoice Verification: EDI inbound
    MRMH0003            Logistics Invoice Verification: Revaluation/RAP
    MRMN0001            Message output and creation: Logistics Invoice Verification
    Thanks a lot.
    -Daniel

    i have fix the bug.
    IF_EX_AC_DOCUMENT~CHANGE_INITIAL
    IF NOT sy-tcode = 'MIRO'.
        EXIT.
      ENDIF.
    Variant
      FIELD-SYMBOLS: <fs_table> TYPE ANY TABLE,
                     <fs_line>  TYPE ANY,
                     <fs_ktosl> TYPE accit-ktosl,
                     <fs_buzid> TYPE accit-buzid,
                     <fs_sgtxt> TYPE accit-sgtxt.
      DATA: lv_sgtxt TYPE accit-sgtxt.
    Get the SGTXT value on the Basic data tab
      ASSIGN ('(SAPLMRMP)XACCIT[]') TO <fs_table>.
    Checking the field symbol
      IF <fs_table> IS NOT ASSIGNED.
        EXIT.
      ENDIF.
      LOOP AT <fs_table> ASSIGNING <fs_line>.
        IF SY-TABIX = 1.
          ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO   <fs_sgtxt>.
          lv_sgtxt = <fs_sgtxt>.
          EXIT.
        ENDIF.
      ENDLOOP.
      IF lv_sgtxt IS INITIAL.
        EXIT.
      ENDIF.
    Fill the long text(SGTXT) into the tax item line
      LOOP AT <fs_table> ASSIGNING <fs_line>.
        ASSIGN COMPONENT 'BUZID' OF STRUCTURE <fs_line> TO   <fs_buzid>.
        IF <fs_buzid> = 'T'.
          ASSIGN COMPONENT 'SGTXT' OF STRUCTURE <fs_line> TO  <fs_sgtxt>.
          IF <fs_sgtxt> = space.
            <fs_sgtxt> = lv_sgtxt.
          ENDIF.
        ENDIF.
      ENDLOOP.
    Thanks a lot.

  • How to insert & # special characters into oracle table?

    I have a text value which contains special characters such as & and #.
    After I pass from one page to another,
    TEST& becomes "TEST&amp;"
    I put " " on the above test, otherwise amp; will be truncated by OTN).
    TEST# becomes TEST (# is truncated).
    Actually the value is saved in table like this: "TEST&amp;"
    How to solve this problem?
    How to insert & into table without &amp;
    Thank you.
    Edited by: user628655 on Jul 27, 2009 9:47 AM
    Edited by: user628655 on Jul 27, 2009 9:49 AM
    Edited by: user628655 on Jul 27, 2009 10:39 AM

    Avoid doing that through a link. If this is a page item then submit the page and redirect to the target page using a branching. On the target page, create a computation to compute the target item using the original page item as the source. If you are talking about a report, use the id to pass through the link and fetch the text column in an on load computation.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    ------------------------------------------------------------------------------

Maybe you are looking for