Script to replace non-numeric value of column to blank

Hi
I want to replace non-numeric value of column to blank. Can any one help me out.
For example:
column1
234 kjnkj 12e
555565asd44
1232334343
Now I want to that update cloumn with blank value which contains non-numeric value in it

Try the following
select translate(column1,translate(column1,' +-123456789',' '), ' ') b from dual;                                                                                                                                                                                                           

Similar Messages

  • Query only non numeric values in a column

    How to query only non numeric values in a cloumn.
    For example:
    Table1 has a column1(col1)
    Values:
    Row Value
    1 27376
    2 47D99
    3 83039
    4 DKFI*
    5 3J6
    Query should retrieve only rows(2,4,5).
    Thanks! for help
    Murali

    Version 2(PL/SQL) above is not clear enough, It can be tuned to the following:
    -- Create a function
    Create or replace function IsVARCHAR(pCol VARCHAR2) return VARCHAR2
    AS
    vNumber NUMBER := 0;
    begin
      vNumber := to_number(pCol);
      RETURN NULL;
    Exception
      When Others Then
        RETURN pCol;
    End;
    -- To See VARCHAR values (alpha-numeric) only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NOT NULL;
    -- To See NUMBER values only!
    SELECT col1 FROM tab1
    WHERE IsVARCHAR(col1) IS NULL;Versatility here with PL/SQL, but I personally like SQL versions.
    Thx,
    SriDHAR

  • Non numeric value in numeric field giving error

    Hi All
    I am using BAPI for creating sales order. If user is giving non numeric value in Quantity field it is giving error. Because quantity field data type is Double.
    Please Help.
    Thanks
    Raktim

    Hi Banerjee,
                 Create a String/int/long Context variable and point it to UI Input element.Do the validation  for correct input value. once the validation is succesful assign that value to RFC BigDecimal variable by Explicit casting.
    Hope this might solve your problem .
    Thanks
    Madhan

  • Checkbox and ORA-20507: Invalid numeric value #:# for column

    Hi All,
    I'm facing problems Checkboxes in a form.
    I created a form and report on a table. one of the fields on the form is a checkbox and when ever I want to create a new record or update with more than one value for the checkkbox I obtain the following error:
    ORA-20507: Invalid numeric value #:# for column COLUMN_NAME Where by #:# is numbers
    I think the error occurs at the processes of get_pk and process_row_of_......
    how should I change the processes to accommodate the checkbox values.
    Kind regards
    Mel

    Hi Roel,
    Colunm = number
    LOV Definition
    select product display, prod_num return from product_category_vw
    where prod_num not in (select p.prod_num from product_user_tb p, user_tb u
    where p.user_num = u.user_number
    and u.user_name = :APP_USER)
    ORDER BY 1column = number
    LOV Definition
    select school d, sch_id r from school_tbRegards
    Mel

  • How to check non-numeric value in a field

    Hi all,
    I have a field 'MVALUE'. HOw can I check if I have a non-numeric value in my field. Let us say if I have a value '<25' in this field. How can I check if the value in this field is non-numeric. The field MVALUE is of CHAR datatype.
    Please help. Waiting.........

    Might have to add a space in the string...
    if not mvalue co ' 0123456789'.
    * error
    endif.
    if you allow decimals and commas...
    if not mvalue co ' .,0123456789'.
    * error
    endif.

  • Non-numeric values in analog I/O points

    I have a system with a FP-3000 controller and a series of TC-120 and RLY-420 modules. At various times I am receiving erros for non-numeric values in some of the analog I/O points. The value, as stated by Ni-FIBUS is "-1.#IND".
    Does any one know what this is? Also once this value appears, It is impossible to get rid of it. The function must be completely deleted and re made from scratch.

    Some general suggestions:
    1. Settings of Function Blocks do not match the real input values, such as type mismatch. You need to verify the value data and type.
    2. Invalid Scaling settings, the units of parameters between connecting function blocks may not match. Please check the block input and output.

  • Replace Non-Numeric Characters with a Numeric Character in a String

    Hi Guys,
    I need to replace all the non-numeric characters (including embedded blanks & hyphen) in a string to a numeric character '1'.
    The trailing blanks should not be replaced.
    e.g. "P22233344455566" should be changed to "122233344455566"
    &    "49-1234567           " should be changed to "4911234567          "
    Please help.

    Use [replace|http://help.sap.com/abapdocu_70/en/ABAPREPLACE_IN_PATTERN.htm] with a regular expression to translate any non-numeric character (i.e. any character not between 0 and 9) to 1:
      REPLACE ALL OCCURENCES OF REGEX '[^0-9]' IN value WITH '1'.
    Cheers, harald
    p.s.: In older releases [translate|http://help.sap.com/abapdocu_70/en/ABAPTRANSLATE.htm] would also do the trick, but is more lengthy, because one would need to specify each individual character that should be replaced, e.g.:
      TRANSLATE value TO UPPER CASE.
      TRANSLATE value USING
          ' 1_1-1a1b1c1d1e1f1g1h1i1j1k1l1m1n1o1p1q1r1s1t1u1v1w1x1y1z1'.

  • ALV WebDynpro Hierarchy -Setting non-numeric values in the header level row

    Hi Experts,
    When setting up an ALV table as a table hierarchy the standard ALV settings only seem to allow for numeric values to be displayed in the higher hierarchy levels. Is there a way to also set the values for some non-numeric columns into these higher-level rows - programmatically or through the ALV Settings?
    Example: I have delivery item level data in my context and the delivery number as a hierarchy column. Some columns in my context however actually come from the delivery header e.g. delivery block, delivery priority, ship-to etc and I would like to display these in the collapsed header rows of the delivery number.
    It seems obvious to me that this should be doable otherwise if you are looking at at a list of hundreds of deliveries and all you see besides the delivery number is numeric data such as sums & totals, it's kind of hard to know which delivery you might want to expand the sub-level for.
    Please help,
    Peter

    Hi,
    Even we have faced the same issue.
    In ALV hierarchy, we cannot display data at header items/levels. this is a constraint in ALV. You can achieve the same usign TABLE UI element.

  • Non-Numeric Values in Appraisal Template

    All,
    I wanted to know if these are possible
    1) How we can make the columns to accept the non-numeric characters. Currently it only accepts the numeric.
    2) How can we make the columns blank - Current it always shows "0.0" - for eg.
    Please see the screen shot here
    http://img600.imageshack.us/img600/8420/appraisal.jpg
    Aneez

    >
    Hire to Retire GT Project wrote:
    > All,
    >
    > I wanted to know if these are possible
    >
    > 1) How we can make the columns to accept the non-numeric characters. Currently it only accepts the numeric.
    >
    > 2) How can we make the columns blank - Current it always shows "0.0" - for eg.
    >
    > Please see the screen shot here
    >
    > http://img600.imageshack.us/img600/8420/appraisal.jpg
    >
    >
    > Aneez
    Hi Aneez,
    for free text input.
    I control by making the column = "no entry", but than enabling the notes field.  The other advantage to the notes field is you can easily control the length of the text box in the config. 
    for value input you just need to configure the value class.

  • Filter Numeric Value between Character

    Dear All
    I have a field name "ControlName " in SQL Server 2012 table.  How do I get the int value after 'B' and before 'C' from
    ControlName
    AB123C7
    B1234C9
    I want to get result like
    ControlName
    123
    1234
    Thanks in advance
    Regards

    I have come across one solution from stackoverflow with XML Path to remove the non numeric value from a string and I modified the code to work for you as an example:
    create table test (ControlName varchar(100))
    insert into test values( 'AB123C7'),('B1234C9') 
    ;with processTable as (
        select  Cast(ControlNameNum as int) ControlNameNum    
        from test    
               cross apply (
                select (select C + ''
                from (select N, substring(ControlName, N, 1) C from (values(1),(2),(3),(4),(5),(6),(7),(8),(9),(10),(11),(12)) Num(N)   where N<=datalength(ControlName)) t
                where PATINDEX('%[0-9]%',C)> 0
                order by N
                for xml path(''))
            ) p0 (ControlNameNum)  
    SELECT  ControlNameNum 
    FROM processTable
    drop table test
    http://jingyangli.wordpress.com/2014/03/18/a-sample-to-remove-non-numeric-values-from-columns/
    http://stackoverflow.com/questions/18625548/t-sql-select-query-to-remove-non-numeric-characters

  • Trying to create non-numeric key figure in Query

    Hello, I am trying to add a formula into my BW Query that will return a non-numeric value.
    My cube will be used like a standard BW cube 90% of the time, but there is one query request that wants to display atomic data and have non-numeric categories determine at time of query run.
    Example:
    Field A has integer values
    Key           Value
    Record 1     -1
    Record 2      2
    Record 3      6
    I want to add a calculated field with the following logic:
    If Value is <= -1 then display "Early" else if Value is >-1 and <=5 then display "On-Time" else if Value is > 5 then display "Late".  The -1 and 5 values will be replaced with variables that will be required on the selection screen.
    This would return a grid as below:
    Key           Value    Calculated Field
    Record 1     -1           "Early"
    Record 2      2           "On-Time"
    Record 3      6           "Late"
    I haven't been able to figure out how to set up this field.  Any ideas?

    Hi,
    check these help links
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/da1640dc88e769e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/95/1ae03b591a9c7ce10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6305e07211d2acb80000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/80/1a6312e07211d2acb80000e829fbfe/content.htm
    It's a big topic so it's not possible to write everything here.
    You can search the forums also.
    Thanks

  • How to get numeric values

    I need to filter out certain numeric values from a column.
    The column has mix values of 1, 02, MA, sentences, A, 500.00,
    2059678974, 006702.
    I used IsNumeric() to filter out non-numeric values like A or
    sntences, MA, etc. But I also need to filter out 1, 2 and 3 digits
    numbers and floating typed number (234.00 or 324,345)
    Can anyone tell me what function can I use to get a pure 4 to
    6 digits number?

    A much better way to do this is:
    <CFIF REFind ("^[0-9]{4,6}$", yourString)>
    <!--- It's good. --->
    <CFELSE>
    <!--- It's bad. --->
    </CFIF>
    However, the BEST way is to select these columns right in the
    query.
    Most RDBM's can easily do this. Syntax depends on which RDBMS
    you are using.

  • FM WHICH adds leading zeroes to a non numeric input

    hi i need the<b> fm name</b> which will add leading zeroes to anu non numeric input
    say
    input is <b>ABC</b>
    SO MY OUTPUT SHOULD BE
    <b>000000000000ABC</b>
    URGENT
    NEED A FUNCTIOJN MODULE NAME

    i think no fn module is there for non numeric values to add zero do like this..
    data : text(20) value 'ABC',
           len type i.
    compute len = strlen( text ).
    len = 20 - len.
    do len times.
    concatenate '0' text into text.
    enddo.
    write : / text.
    regards
    shiba dutta

  • Popup Key LOV, NULL and "Invalid numeric value undefined for column"

    Hello.
    I've created an item based on database column of NUMBER type and set the following properties:
    Display As = Popup Key LOV (Displays description, returns key value)
    List of values definition=select 'display_value' d, 1 r from dual
    Null display value=%
    Null return value=
    Display Null=Yes
    When I select "%" in the LOV and try to apply changes to database I get error:
    ORA-20001: Error in DML: p_rowid=1781, p_alt_rowid=N1, p_rowid2=, p_alt_rowid2=. ORA-20001: Invalid numeric value undefined for column N2
    Error Unable to process row of table TTT.
    If I set Display As = Select List, all works fine. But I need Popup Key LOV.
    Could anybody help me?
    I use Application Express 2.2.1.00.04

    Hi all,
    I did my homework and solved this issue. First I would like to thank Patrick Wolf for the invaluable help he gives out on thread Re: Null value handling in LOVs The code presented here is just a minor edit to his code, but an essential one when dealing with Popup Key LOV items.
    Here's what I did:
    1. Create an Application Process.
    Name: RemoveNulls
    Sequence: 0
    Point: On Submit: After Page Submission - Before Computations and Validations
    Process Text:
    BEGIN
        FOR rItem IN
          ( SELECT ITEM_NAME
              FROM APEX_APPLICATION_PAGE_ITEMS
             WHERE APPLICATION_ID   = TO_NUMBER(:APP_ID)
               AND PAGE_ID          IN (TO_NUMBER(:APP_PAGE_ID), 0)
               AND LOV_DISPLAY_NULL = 'Yes'
               AND LOV_DEFINITION   IS NOT NULL
               AND LOV_NULL_VALUE   IS NULL
        LOOP
            IF (V(rItem.ITEM_NAME) = '%null' || '%' OR V(rItem.ITEM_NAME) = 'undefined')
            THEN
                Apex_Util.set_session_state(rItem.ITEM_NAME, NULL);
            END IF;
        END LOOP;
    END;Error Message: #SQLERRM#Condition: None
    2. You should be able to submit a Popup Key LOV with a NULL value now.
    Once again, THANKS, Patrick! You rock! I'm seriously thinking of trying ApexLib now :)
    Georger

  • 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]

Maybe you are looking for

  • Java + PL/SQL modules w one login

    We have a huge (600+ modules) collection of applications done in web pl/sql via Designer. We are moving to JDeveloper for future work and would like our end-users to be able to log into each individual application just once regardless of whether its

  • Badi BADI_SD_PRICING_TUN

    Hello,     I ´ve implement de next badi BADI_SD_PRICING_TUN. I need to modify one structure included in it (XFPLT), but i supose that this structure is in read only mode. Do anyone knows how to modify it? Thank you!

  • File to XI scenarion without mapping

    HI All, MY REQUIREMENT: 1. Need to read the data from FILE . 2. pass the values to a BAPI structure in ECC Without any mapping QUESTIONS: 1. Is it possible to complete the  scenario without mapping in XI. 2. If possible how. Could any one help me how

  • Multiple Record Insert

    Hello All, Through JSP I am uploading a tab delimited text file. Each line is a record. I want to insert this record into the DB using ejb. The problem is the record might already exist and in that case I have to update the record. Basically for each

  • FORUM Problem: My Profile: Location

    I have noticed that when updating my profile, the Location keeps showing as US even though I keep altering it. Refer to profile for: thevoyager Solved! Go to Solution.