How to Identify whether string contains only numbers

Hi Experts,
How to identify whether a string contains only numbers...
Thanks & Regards,
Neeraj.

Hi Neeraj,
ISNUMERIC(String_Field)
The above function returns '0' for non-numerics and
'1' for numeric
Hope this helps.
Regards,
Bala

Similar Messages

  • A more efficient way to assure that a string value contains only numbers?

    Hi ,
    I'm using Oracle 9.2.0.6.
    I was curious to know if there was any way I could write a more efficient query to determine if a string value contains only numbers.
    Here's my current query. This SQL is from a sub query in a Join clause.
    select distinct cta.CUSTOMER_TRX_ID, to_number(cta.SALES_ORDER) SALES_ORDER
                from ra_customer_trx_lines_all cta
                where length(cta.SALES_ORDER) = 6
                and cta.SALES_ORDER is not null
                and substr(cta.SALES_ORDER,1,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,2,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,3,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,4,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,5,1) in('1','2','3','4','5','6','7','8','9','0')
                and substr(cta.SALES_ORDER,6,1) in('1','2','3','4','5','6','7','8','9','0')This is a string where I'm finding A-Z-a-z characters and '/' and '-' characters in all 6 positions, plus there are values that are longer than 6 characters. That's what the length(cta.SALES_ORDER) = 6 is for. Also, of course. some cells are NULL.
    So the question is, is there a more efficient way to screen out only the values in this field that are 6 character numbers or is what I have the best I can do?
    Thanks,

    I appreciate all of your very helpfull workarounds. The cost is a little better in all cases than my original where clause.
    To address the discussion that's popped up about design from this question, I can say a few things that should clear , at least, my situation up.
    First of all this custom quoting , purchase order , and sales order entry system WAS written by a bunch a of 'bad' coders who didn't document their work and then left. We don't even have an ER diagram
    The whole project that I'm only a small part of is literally trying to put Humpty Dumpty together again and then move it from a bad custom solution into Oracle Applications.
    We're rebuilding, documenting, and doing ETL. This is one of your prototypical projects from hell.
    It's a huge database project so we're taking small bites as a time. Hopefully, somewhere right before Armageddon hits, this thing will be complete.
    But until then,..., well,..., you know the drill.
    Thanks Again.

  • How to identify whether a multiline container is empty or not in Workflow?

    Hi Experts,
    Does any1 know how to identify whether a multiline container
    is empty or not in a workflow?
    Thanks.
    Points wil be rewarded.
    Vincent

    Dear Vincent,
    You can get the report name for the Business Object which contains the multi-line container, from the BO itself. Put a break-point in the report and try executing the workflow. The multiline container is like an internal table in the report. See if the internal table is initial while execution.
    Regards,
    Michael.

  • How to identify whether any data source is created for a table?

    hi all,
    How to identify whether any extractions is been carried out for a particular table, view or function module(generic extraction)? from r/3.
    bcos i need to create an extraction for a table, view and function module. But  iam not sure whether any extractions is already been created for those tables, view, function modules??
    thanxs
    haritha

    Hi,
    By passing the following values as selection to table  ROOSOURCE we can find whether any data source has been created or not .
    EXMETHOD = V
    EXTRACTOR = Table name
    hope it helps..
    regards,
    raju

  • How to check postal code contains only 0 to 9

    Hi all,
    How to check postal code contains only 0 to 9
    thank you

    Hi
    Check the below link.It may help you out.
    http://help.sap.com/saphelp_47x200/helpdata/en/d3/2e974d35c511d1829f0000e829fbfe/frameset.htm
    Cheers,
    Hakim
    mark all useful answers

  • How to identify whether a TCode is for SAP query or for a customized TCode

    Hi,
    We have a list of TCodes starting with Y_*
    Some of these TCodes could be related to SAP Queries and some could be real custom transactions. How do I find out which one of those are related to SAP queries and which ones are related to custom SAP transactions?
    I have already checked table TSTC for the program names of these Transactions, but the program name field (PGMNA) is blank. Also in TCode SE93 the transaction mentioned is START_REPORT. Also for some, when I go to the transaction (Y_*) and then environment->status to check the program name the values found are something like AQ11FI==========F10A==========.
    Please help on how to identify whether a TCode is actually for an SAP query or for a customized transaction.
    Thanks in advance.
    Mick

    Thanks Anil.
    In TSTC, the filed for program name is blank. Therefore I would have to go to each and every transaction (I  have around 250 Y_* TCodes with me) and then to environment->status to get the program name and then check whether it is A......
    Is there any easier way to know whether a TCode refers to an SAP query or a custom developed transactions/program.
    Mick

  • How to identify whether the data extracted is direct, queued, unserialized

    hi,
    how to identify whether the data extraction from r/3 is direct, queued and unseralized data.
    can anyone let me know abt it
    regds
    hari

    hI,
    Direct Delta: With this update mode, the extraction data is transferred with each document posting directly into the BW delta queue. In doing so, each document posting with delta extraction is posted for exactly one LUW in the respective BW delta queues.
    This update method is recommended for the following general criteria:
    a) A maximum of 10,000 document changes (creating, changing or deleting documents) are accrued between two delta extractions for the application in question. A (considerably) larger number of LUWs in the BW delta queue can result in terminations during extraction.
    b) With a future delta initialization, you can ensure that no documents are posted from the start of the recompilation run in R/3 until all delta-init requests have been successfully posted. This applies particularly if, for example, you want to include more organizational units such as another plant or sales organization in the extraction. Stopping the posting of documents always applies to the entire client.
    Queued Delta: With this update mode, the extraction data is collected for the affected application instead of being collected in an extraction queue, and can be transferred as usual with the V3 update by means of an updating collective run into the BW delta queue. In doing so, up to 10000 delta extractions of documents for an LUW are compressed for each DataSource into the BW delta queue, depending on the application.
    new queued delta
    This update method is recommended for the following general criteria:
    a) More than 10,000 document changes (creating, changing or deleting a documents) are performed each day for the application in question.
    b) In future delta initializations, you must reduce the posting-free phase to executing the recompilation run in R/3. The document postings should be included again when the delta Init requests are posted in BW. Of course, the conditions described above for the update collective run must be taken into account.
    Non-serialized V3 Update:With this update mode, the extraction data for the application considered is written as before into the update tables with the help of a V3 update module. They are kept there as long as the data is selected through an updating collective run and are processed. However, in contrast to the current default settings (serialized V3 update), the data in the updating collective run are thereby read without regard to sequence from the update tables and are transferred to the BW delta queue.
    unserialized v3 update
    This update method is recommended for the following general criteria:
    a) Due to the design of the data targets in BW and for the particular application in question, it is irrelevant whether or not the extraction data is transferred to BW in exactly the same sequence in which the data was generated in R/3.
    take a look Roberto's weblog series
    /people/sap.user72/blog/2004/12/16/logistic-cockpit-delta-mechanism--episode-one-v3-update-the-145serializer146
    /people/sap.user72/blog/2004/12/23/logistic-cockpit-delta-mechanism--episode-two-v3-update-when-some-problems-can-occur
    /people/sap.user72/blog/2005/01/19/logistic-cockpit-delta-mechanism--episode-three-the-new-update-methods
    /people/sap.user72/blog/2005/04/19/logistic-cockpit-a-new-deal-overshadowed-by-the-old-fashioned-lis
    https://weblogs.sdn.sap.com/pub/wlg/126 [original link is broken] [original link is broken] [original link is broken]
    doc
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328
    and oss note 505700
    Re: delta methods
    go throuth the previous thread
    Delta types
    hope it helps..

  • How to identify, whether your iphone is permanently unlocked or not?

    How to identify, whether your iphone is permanently unlocked or not?

    gautam30 wrote:
    How to confirm?
    Did you not read wjosten's reply?

  • How to identify whether a page is color page or monochrome page?

    Could anyone tell me how to identify whether a page is color page or B/W page. I'm creating a plugin.
    I tried using the following code
    HDC hdcMem = CreateCompatibleDC(NULL);
    if(!hdcMem){
    PDPageRelease(objPDPage);
    return FALSE;}
    char  *palette = (char*)malloc(4);
    ASFixedMatrix matrixFlipped;
    PDPageGetFlippedMatrix(objPDPage,&matrixFlipped);
    char *palette = (char*)malloc(4);PDPageDrawContentsToWindow(objPDPage,(void*)NULL,(void*)hdc,false,&matrixFlipped,(ASFixedRect*)NULL,NULL,NULL); 
    if(PDPageGetPalette(objPDPage,(void*)hdc,palette)){
    here the PDPageGetPalette always returns false.
    I don't know whats wrong in the code. Please help me.
    Any other simpler way to active my task would be appreciable.
    Thanks in advance.

    HDC hdcMem = CreateCompatibleDC(NULL); 
    char*palette = (char*)malloc(4);                                      
    ASFixedMatrix matrixFlipped;
    PDPageGetFlippedMatrix(objPDPage,&matrixFlipped);
    PDPageDrawContentsToWindow(objPDPage,(void*)NULL,(void*)hdc,false,&matrixFlipped,(ASFixedRect*)NULL,NULL,NULL);
    if(PDPageGetPalette(objPDPage,(void*)hdc,palette))
    here the PDPageGetPalette() always returns false. Whats wrong with the code?
    I want to check the palette values.
    Please help.

  • How to identify whether my query is been already transported or not?

    Hi all,
    How to identify whether any transport request are created for my query. And also how to identify whether the query in the production is been transported to the QA.
    Thanxs
    Haritha

    Hi haritha,
    Once the request is generated u can write the request number and chk in the other server STMS ...if u find the request thr ur transportation should be sucessful
    chk this link...
    http://help.sap.com/saphelp_nw04/helpdata/en/b5/1d733b73a8f706e10000000a11402f/content.htm
    It is very simple ,
    Goto RSA1> Trasport connections> drag & drop ur query to right side panel--> observe the coulmns ( pakage column ) --> If the pakage is $TMP u can sy that that perticular query is not transported ---> If it other than $TMP ( That query has Transported alreay).
    Assign points if helpful
    Cheers
    Raj

  • How to identify whether Technical Content is been installed or not?

    Hi all,
    Can anyone let me know how to identify whether technical content in BW 3.5 is been installed or not?
    thanxs
    haritha

    Hi Haritha,
    Check this PDF,
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/90080703-4331-2a10-cd98-9c1e95acdea0
    And this link also,
    http://help.sap.com/saphelp_nw04/helpdata/en/e5/2d1e3bd129be04e10000000a114084/frameset.htm
    Hope this clears your doubt...

  • How to identify whether that particular process chain is active or not?

    Hi all,
    How to identify whether that particular process chain is active or not ?
    thanxs
    haritha

    If see the process chain then it will not be greyed out if it is active. Or else check in these tables.
    RSPCCHAIN
    RSPCCHAINT
    to check the logs
    RSPCLOGS               
    RSPCPROCESSLOG
    Give the chain name and check in the object version.
    Khaja

  • Need reg_exp for checking the string contains only alphanumeric or not

    Dear All,
    I need to check the given string in if condtion contains only the alphanumeric or not pls help me..
    like
    if reg_exp then
    end if;
    thanks,
    Oracle

    Hi,
    REGEXP_LIKE ( str
                , '[^[:alnum:]]'
                )returns TRUE if the string str contains any character other than an alphanumeric.
    You can use this wherever conditions are allowed, such as a WHERE clause or a CASE expression. For example:
    SELECT     str
    .     CASE
             WHEN  REGEXP_LIKE ( str
                         , '[^[:alnum:]]'
             THEN  'Contains speace, punctuation or special symbol'
             ELSE  'Okay'
         END               AS is_alnum
    FROM     table_x
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Edited by: Frank Kulash on Dec 30, 2011 4:37 AM

  • How to identify whether a TransientVO value has been changed or not on jsff

    Hi
    I have a TransientVO view object dragged onto jsff page. Is there any way to identify in backing bean or in Application Module to identify whether there is any attribute value has been modified or not?
    Thanks in advance !!

    Hi:
    My understanding is that's ADF's internal business to keep track of RowSet changes. In your code, it's not expensive to explicitly call commit OperationBinding. When your code issue an explicit commit, ADF will check if a real commit necessary or not. If any row or attribute changed, a real commit will happen.
    If your application really want to get notified when any attribute changes, and you feel it too much to implement a valueChangeListener for every inputText, you should try a more generic one: rowUpdated(). I never use this one, but according to the manual, your probably can set a flag in your overwritten rowUpdated to flag an attribute value change when it happens.
    But I really recommend you simply issue a commit and let ADF decide the necessity of a real commit. If you are really interested in which specific field changes, to me you have only 2 options, 1 is to do valueChangeListener, the other is try to figure out if rowUpdated() helps.
    If you feel my answer helps, please mark it as 'helpful'; If it is correct, please mark it as 'correct'.
    Thanks,
    Alex

  • How to parse a string containing xml data

    Hi,
    Is it possible to parse a string containing xml data into a array list?
    my string contains xml data as <blood_group>
         <choice id ='1' value='A +ve'/>
         <choice id ='2' value='B +ve'/>
             <choice id ='3' value='O +ve'/>
    </blood_group>how can i get "value" into array list?

    There are lot of Java XML parsing API's available, e.g. JAXP, DOM4J, JXPath, etc.
    Of course you can also write it yourself. Look which methods the String API offers you, e.g. substring and *indexOf.                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for