Number range doubt

In SQL Server we have some thing like
Select * from Table_Name where Col_Name like '%[0-9]%'
which would get all the row where column has atleast one number. Is there any such functionality in Oracle which is also short in length?

Well! In that case you will need to create a function like the one you will see in the following example. This, of course, is not as simple and elegant as you would have liked it to be. However, it can server the purpose.
SQL> SELECT *
  2  FROM test
  3  /
A
1
1A
B2B
3C
123
AA2
ABC
abc
Abc
assdssf
999ff555333qqq
11 rows selected.
SQL> CREATE OR REPLACE FUNCTION get_numbers(p_string varchar2)
  2    RETURN number IS
  3  BEGIN
  4      FOR x IN 1..LENGTH(p_string) LOOP
  5        IF substr(p_string,x,1) BETWEEN '0' AND '9' THEN
  6          RETURN 1;
  7        END IF;
  8      END LOOP;
  9    RETURN 0;
10  END;
11  /
Function created.
SQL> SELECT *
  2  FROM test
  3  WHERE get_numbers(a)=1
  4  /
A
1
1A
B2B
3C
123
AA2
999ff555333qqq
7 rows selected.Anwar

Similar Messages

  • Xkn1 creation of vendor number range doubt

    hi
    In xkn1 vendor number range, 
    I want to insert the interval,  as   02  10000 to  30000
    when I try to save or insert , it is not saving,
    A popup as "enter intervals without overlap "
    if i try to change it to 2 or 20: its  not accepting it, a message popups as existing number,
    how to come ovr this problem,
    before inserting number range, should we enter company code , please help me.
    warm regards.

    The reason you are getting that error message is that, that number  interval is already used by another number range. Check the existing number ranges and choose an interval that is not used yet. Or you can assign an existing number range to the vendor group that you have created if that range satisfies your requirements.
    Edited by: PaulKr on Mar 5, 2010 5:41 PM

  • Equipment Number Range Doubt

    Gurus
    In OIEN; i have kept number range as xxxx-yyyyyyyyyy (4110)
    But i can create equipement upto 18 characters without any error / block. Why?
    I want system should give me error when number range is more than 15 characters but currently i can create upto 18
    Please let me know what needs to be done so that system checks this number range
    Regards

    Hi Paul
    Thanks for replying. Unfortunately i could not interpret what you are trying to say
    Can you please elaborate? What should i do so that system will not allow me to keep more than 15 characters in number range for  equipement??
    Hi Atul
    Does it mean that i should keep upper limit also? It should also be 15 characters??
    Please reply
    Thanks again
    Regards

  • ECM-number range and authorization contorl doubt

    Hello Team,
    I have below scenario and need help on the same.
    1) I need to differentiate change master and ECR with number range can this be done?
    2) For Team A - need to give only ECR and change master active status control. For Team B- Only change master but in inactive status control How to achieve this?
    3) I have created profiles with status profiles under enge change mang section , but how to make this field mandatory in CC31 or CC01 screen? I browsed and got info like should be activated etc...but i was not able to activate the profiles which were created in Engg. change management section.
    Regards,
    satish

    Dear Satish,
    1.If my understanding is correct then its internally in the system for the type - Change master and ECR the change number
    object used is AENNR and where in you can assign a common number range group and it will be used for creating change
    numbers of both these types.It's not as like the production order type where you can link a different number ange for each
    order type.
    2.Try whether this option will work out for meeting your requirement.In the standard SAP 2 set of number range (one
    internal numbe range and one for external will be assigned) exists.so aaume for CC01 you can make use of the internal
    number  range,where during CC01 without any value for the field change number you can proceed.When creating through
    CC31 you can make use of external number range by giving the change number as the input and you save the data.
    check and revert back.
    Regards
    Mangalraj.S

  • Excise number range for 2009

    Dear All,
    I work for Indian client...
    I have maintained Number ranges for excise invoice as follows...
    NO-YEAR-FROM NUMBER-TO NUMBER-CURRENT NUMBER
    01---200800000000010000004999--64
    I want the Number to be continued for 2009 also.
    For eg, if the last number in 2008 is 64.Then next invoice in 2009 should be 65.
    Now my doubt is, For 2009, what should i do ?
    Will system cosider the same range for 2009 or Should i maintain no range for 2009 ?
    Regadrs

    Hi
    System will not consider the same number range for 2009. You have to maintain this for 2009 too.
    If you want to continue the same number range then you have to maintain it as below. This is only required only if you want the number to be continued in the 2009. Else you can set the status as 0 instead of 64.
    01---200900000000010000004999--64
    Also the number range from 1 to 64 for will not be reflected in year 2009. It will be reflected in year 2008.
    Regards
    MBS

  • How to change number range for document type ?

    Dear All
    Experts
    How to change the number range for document types for entry view? I am trying to change the number range for all document type as per defined ranges in FBN1, but at the time of saving document type and number range the system is throwing error message as 
    Doc. type C1: Number range 07 is used for ledger L6 with doc. type AE
    Message no. FAGL_LEDGER_CUST093
    I have defined a leading ledger in system too with these settings
    1)     Define ledger for accounting.
    2)     Defining currencies for it.
    3)     Defining ledger group for the same.
    4)     Defining accounting principles
    5)     Assignment of principles to leading ledger.  
    Are there any extra settings required for leading ledger settings?
    I have some doubts those are :-
    How document types defined at ledger level?
    How to define them at leading ledger level?  (Like my case)
    Focus on this will be appreciable.
    Regards,
    Sharvari Joshi.

    hi ,
    The document numbers in the leading ledger and the non leading ledgers should be in sync, they should not have any differences, so incase you are trying to change the number range for C1, the  number range 07 is already been assigned to doc type AE. i guess you have cant use 07 for C1. may be you can try out with an other number range. check this and let me know if you are able to do this.
    coming to
    1.How document types defined at ledger level?
    2.How to define them at leading ledger level? (Like my case)
    Ans 1. please try defining document types for entry view in a ledger.
    path : SPRO- financial accounting new -financial accounting global settings new - document -document types -define document types for entry view in ledger.
    upon prompt enter the ledger and go ahead creating the number ranges for the document types.
    Hope this helps.
    Regards
    amrutha

  • Vendor Number Range relation with account group.

    Dear All,
    I have one more doubt. Kindly clarify.
    I know that account group and vendor number range and linked with each other. Number range can be assigned to one or many account groups. Let's consider a case where 3 Account groups (assume X,Y & Z) have one common number range. When we create a vendor, in an account group (for example, X) vendor code assigned internally is 100000.
    Subsequently if we create another vendor in the account group Y, will the vendor code assigned intenally be, "100001", considering intervals to be of 1 or any other number falling in the number range assigned to this account group?
    Does there lie any rule or method which assign the code in this manner or any other...?
    EnjoySAP,
    Thanks

    Hi,
    When a vendor master record is created, a unique number identifying the master record is assigned. The number comes from the number range provided for the account group.
    Internal number assignment
    Here the SAP R/3 System automatically assigns a consecutive number from the number range defined, irrespective of any number of account groups attached to which the number range has been assigned.

  • Chnaging number range of an asset

    Dear SAP experts,
        The company which I work for has got a number range for an asset class. Now our company wants to transfer all the assets from another company (which is going to be closed). So FI people want to have different number range for the new assets that are going to be transferred to our company so that they can easily differentiate the new assets from the old ones.
    My doubt is- can I just go and change the number range to new one in the Asset class when I transfer all the assets from another company code ? and change the number range back to old one once I finish creating the new assets in our company code?
    Please help me clarify my doubt and suggest me if I can do this at all and what will be the consequences? Will there be a major effect if I change the number range twice?
    Please also tell me if this is as simple as I am thinking or this will affect the configuration adversely?
    Thank you.
    Regards,
    Priya.V

    With the upload you can put in the the tab orgin the fields old asset number. For reporting you can ad field to the reports so that you still can report on these old asset numbers.
    http://wiki.sdn.sap.com/wiki/display/ERPFI/IncludeownfieldsinFI-AAstandardALV
    Your option is possible when there are no problems with existing number ranges.
    Creating new asset classes you should only do when you have only some asset classes

  • Inspection lot number ranges skipping

    My inspection lot number ranges are skipping, those are std number ranges like 01 origin, 04 origin etc, what could be the reason for that.
    Inspn lots are getting generated and I took UD also. But certain numbers in the range got skipped.
    Eg:- Incoming inspn lot 010000000041 then it comes 010000000045
    Lot numbers 01/42, 01/43, 01/44 does not exist in sytem.
    Please suggest a way out
    Thanks
    Vineeth
    Edited by: vineeth varghese on Jul 18, 2008 11:31 AM

    Craig,
    But expert suggestion says, not to switch off buffer thru SNRO as it may affect fuctionality as you said early in this discussion.
    But I believe, this is to be relooked by SAP as number range skipping is not good (My case its skipping 5-7 numbers at a time). But I am not convinced with the reply from SAP also.
    Anyway thanks to you craig for your advice.
    SAP Note on this matter for reference of all. Thanks
    ================================
    Note: 62077
    Summary
    Symptom
    Gaps (jumps) occur when allocating internal numbers.
    The status of the number range interval does not match the number that was last assigned.
    The number assignment does not reflect the insert sequence.
    IMPORTANT: Read Notes 504875 and 678501.
    Other terms
    Document number, number range, number range object, buffering, current number level, trip number assignment, number interval, CO document, CO actual posting, inspection lot, material document, physical inventory document, production order number, planned order number, process order number, maintenance order number
    FB01, VF01, KO88, KE21, KE11, FD01, FK01, XK01, XDN1, MB01, MB0A, MB11, MB1A, MB1B, MB1C, MB31, KANK, KB11, KB13, KB14, KB41, KB43, KB44, KB21, KB23, KB24, KB31, KB33, KB34, KB51, KB53, KB54, PR01, PR02, PR03, PR04, PR05, XD01, VD01, MK01, SNUM, SM56, SNRO, VL01, VL02, CO01, CO40, CO41, VA01, MR1M, MIRO
    Reason and Prerequisites
    A large number of number range objects are buffered. When the system buffers a number range object, it does not update numbers individually in the database but reserves a preset group of numbers (depending on the number range object) in the database the first time a number is requested, and makes these numbers available to the application server in question. The following numbers can then be taken directly from the application server buffer. New numbers are not used in the database until the application server buffer has been used up.
    The effects described under "Symptom" are a direct consequence of this:
    If an application server is shut down, the numbers that are left in the buffer (that is, that are not yet assigned) are lost. As a result, there are gaps in the number assignment.
    The status of the number range interval reflects the next free number that has not yet been transferred to an application server for intermediate buffering. The current number level therefore does not display the number of the "next" object.
    The current number level (for each server) can be displayed using Transaction SM56. Call transaction SM56 and choose the menu 'Goto' -> 'Entries'. In the dialog box, enter the client, the affected number range object (for example, RK_BELEG) and possibly the required subobject (corresponds to the controlling area for the object RK_BELEG).
    If you use several application servers, the numerical sequence will not reflect the (chronological) insert sequence because the numbers are buffered separately on the individual hosts.
    Buffering the number range objects has a positive effect on performance, because the system no longer has to access the database (number range table NRIV) for each posting. Furthermore, a serialization of this table (database locking) is prevented to a large extent so that posting procedures can be carried out in parallel.
    Solution
    Since number range buffering does not cause any expressly assured qualities to be lost, no correction is required.
    If you still require continuous allocation, you can deactivate the number range buffering specifically for individual objects.
    Proceed as follows:
    - Start Transaction SNRO and enter the affected object.
    - Choose 'Change'.
    - Deactivate buffering: Choose 'Edit' -> 'Set Up Buffering' -> 'No Buffering'.
    - If you want to change the buffer size only, enter the corresponding value in the field 'No. of numbers in buffer'.
    - Save the changes.
    Please note that this change is a modification. The modification is overwritten as soon as the affected number range object is redelivered - in other words, you must check the change manually each time you import a release.
    In particular, read Note 678501, bearing in mind that changing the buffering type - if not explicitly recommended by SAP - constitutes a modification. For other possible solutions, refer to the following notes:
    179224, 599157 and 840901.
    For the the following number range objects, gaps may cause users to have doubts since they are 'expecting' a sequential numbering:
    Area CO:
    - RK_BELEG   (CO Document)
    CAUTION: Note that the problems described in Notes 20965 and 29030 may occur if you deactivate buffering.
    - COPA_IST (Document number in actual posting)
    - COPA_PLAN  (Document number in planned posting)
    - COPA_OBJ   (Profitability segment number)
    Area FI:
    - DEBITOR    (Customer master data)
    - KREDITOR   (Vendor master data)
    Area HR:
    - RP_REINR  (Trip numbers)
    Area PM, PP, PS
    - AUFTRAG    (Order number, production, process, maintenance order, network number)
    - QMEL_NR    (Number range - message)
    Area MM:
    - MATBELEG   (Material documents)
    - MATERIALNR (Material master)
    Area QM:
    - QLOSE      (Inspection lots in QM)
    - QMEL_NR    (Number range - message)
    - QMERK      (Confirmation number)
    - QMERKMALE  (Master inspection characteristics in QSS)
    - QMERKRUECK (Confirmation number of an inspection characteristic in QM results processing)
    - QMETHODEN  (Inspection methods in QM)
    - ROUTING_Q  (Number ranges for inspection plans)
    - QCONTROLCH (Quality control chart)
    Area Workflow:
    - EDIDOC     (IDocs)
    Number range buffering can be activated or deactivated at any time.
    Number range objects that have to be continuous due to legal specifications (for example, RF_BELEG, RV_BELEG), or due to a corresponding application logic must not be buffered using the buffering type 'Main memory buffering'. See also Notes 37844 (for RF_BELEG) and 23835 (for RV_BELEG).
    Header Data
    Release Status: Released for Customer
    Released on: 10.07.2007  12:57:00
    Priority: Recommendations/additional info
    Category: Consulting
    Primary Component: BC-SRV-NUM Number Range Management
    Secondary Components: CA-GTF General Application Functions
    BC-SRV-ASF-UOM Unit Management
    CO Controlling
    CO-OM-CCA Cost Center Accounting
    CO-OM-CCA-A Master Data
    CO-PA Profitability Analysis
    FI Financial Accounting
    FI-AP Accounts Payable
    FI-AR Accounts Receivable
    FI-GL General Ledger Accounting
    FI-TV Business Trip Management
    LO-MD-MM Material Master
    MM Materials Management
    MM-IM Inventory Management
    MM-IM-PI Physical Inventory
    PM Plant Maintenance
    PP Production Planning and Control
    QM Quality Management
    QM-PT Quality Planning
    QM-QN Quality Notifications
    Edited by: viny on Jul 23, 2008 9:18 AM

  • Replication of account master with 2 diff number ranges to ECC.

    HI All,
    Wish you happy new Year....
    I have a doubt in Master Data replicating from CRM to ECC.
    Here is a situation where i  have to create 2 number ranges with groupings in CRM for prospects and has to replicate to ECC SD. I heard that only one number range(ie Z1) can only be used to replicate to ECC and ( I.e. Z2) number range masters can not flow to ECC.so can you guys please tell me what are all the problems in replicating the master to ECC if i use 2 number ranges with groupings.
    Thanks and Regards,
    Arun

    Hi Deepak,
    Have you downloaded R/3 sales area(ie,. org + distribution Channel+division) to CRM? If you are not using standalone CRM scenario, then you have to maintain R/3 sales area in and then download it into CRM through customizing adapter object dnl_cust_s_area.
    Then you have assign R/3 sales org to ur created organization in CRM and define distribution channel and division in the attribute tab of ppoma_crm.
    Kindly check have u done all the above mentioned steps?
    Thanks & Regards,
    Anirban

  • Incoming invoice number range per company code

    Hi!
    I have a doubt.
    Is there the possibility of create incoming invoice number range per company code?
    I need the MM doc, not FI doc.
    Thank's!

    Hi
    If the settings available in OMR4 and OMRJ don't cover your requirements, try with enhancement LMR1M003.
    Regards
    Eduardo
    PD: I found it, see Note 452127 - MIRO: Standard number assignment per company code, you have a sample of coding for this enhancement
    Edited by: E_Hinojosa on Jul 11, 2011 6:37 PM
    Edited by: E_Hinojosa on Jul 11, 2011 6:38 PM
    Edited by: E_Hinojosa on Jul 11, 2011 6:42 PM

  • How To create number range for custom BO

    Dear All,
    I have created a Custom Business Object and i have created its alternative key.. I want an Internal number range to be used against that alternative key.
    How do i achieve this functionality?
    Regards,
    Dhruvin

    Hi Dhruvin,
    Find the below discussion where I answered to generate number.
    Does anyone have sample code to auto generate Alternate key/ID field data
    in this example number will start from 1, you can enter your own starting number.
    If it help you or  have any doubt, let me know.
    regard
    Sunil

  • Number Range buffering size increase.

    Hi All,
    How to analyze whether to increase number range buffering size for the simple infobject. For dimensions and masterdata we can check  number of data records loaded. But to analyze for infoobject if it is not master data, whether to increase the buffering size or not. And what is the maximum limit of increasing the size.
    Regards,
    Asim.

    Hi,
    Yes I have gone through the documents it is discussing about dimension and master data object.My doubt is how to analyze whether to increase the buffering size of simple infobject.
    Thanks,
    Asim

  • Transport Number range intervals

    Hi,
    I have created a custom number range with intervals (from & to number range values) i need to transport this to production and unit testing boxes. how to create a transport for this.
    and also it is advisable to transport number ranges?
    Thanks
    Sa_R

    Hi,
    Thanks for your reply.
    But my doubt is , the number range is newly created. have 250 subjects inside , User already maintained the intervals in the config box. So i need to transport this higher box. If i am transport this , whether all other number ranges get deleted? including SAP standard also?
    Thanks
    Sa_R

  • Depreciation external  number range

    Hi,
    I am having one doubt:
    the depreciation posting always happens with external document number range If the external no range tick is not clicked then the system should take the internal number range.
    But if the check is not ticked then the system is not taking internal number range although it is asking for the number range to be external.
    I just want to ask is there any other setting which defines that depreciation should be posted with external number range.
    Regards,
    Meenakshi

    In earlier version i.e prior to ecc 6.0 the asset depreciation document type number range was external. There is no special settings required , since it is standard procedure.
    However from ECC 6.00 you need not define the document type to be external.

Maybe you are looking for

  • How to install the sms and phonebook

    how can I install the sms and phonebook

  • Leopard/external HDD issue.

    Being that my paltry 80GB hard drive in my Powerbook cannot hold even my music collection, I run my iTunes library from my external HDD. Since externals are notoriously unreliable, I have it stop spinning after a time without usage. However, since ge

  • Any way to limit memory which XSLT processor uses?

    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production PL/SQL Release 11.2.0.3.0 - Production CORE     11.2.0.3.0     Production TNS for Linux: Version 11.2.0.3.0 - Production NLSRTL Version 11.2.0.3.0 - ProductionWe use the xml

  • Question about using Jtable

    hello eb i have this code Table_Ecg = new JTable(); String[] columnNames = {" Num�ro ", " Nom ECG ", " Date de Transfert "}; aModel = (DefaultTableModel) Table_Ecg.getModel(); aModel.setColumnIdentifiers(columnNames);           Table_Ecg.setModel(aMo

  • Can Mac mini boot into 64-bit kernel

    http://macperformanceguide.com/SnowLeopard-64bit.html says: To determine if your Mac has 32-bit or 64-bit firmware, copy/paste the following command into Terminal: ioreg -l -p IODeviceTree | grep firmware-abi ...output: | | "firmware-abi" = <EFI64> A