Missing PRCTR from Number Range Table

Hi There,
I need to find out all the the available profit centre which not created yet ie no profit centre  available in CEPC from the number range table NRIV.
I tried the FM number_get_next but nothing happened.
Details given below:
In the NRIV table I have got say following details :
Object          From Number     To Number    etc     etc
Y_PC          0000000001     0000000100
Y_PC          0000000101     0000000150
Y_PC          0000000160     0000000200
Profit Centre Created Available in CEPC say
In the no range 1 to 100
     0000000001
                0000000002
                0000000003 (Not created)
     0000000004
                5 ,6 & 7 missing
     0000000008
In the no range 101 to 150
     0000000101
                0000000102
     0000000103
                0000000104 (Not created)
     0000000105
                6,7....upto 149...(Not created)
     0000000150
Similarly in other ranges few nos missing
My requirement is to read the NRIV table take all  from number and to number into an internal table  and for those nos find the  missing nos from the CEPC table .
Appreciate your help.
Regards.
Sunanda

Resolved by myself !!
Cheers.

Similar Messages

  • Missing orders in Number Range

    Hi Friends,
    We are facing an issue in our production systems where once in a while we find some orders missing in the number range provided. We have a custom report which tells us whenever a particular number on a sales document number range is skipped. Usually when this report identifies a missing order we will be able to find some error information from ST22 or SM13 logs and from that we identify the user who was trying to create this order and we contact them to re-enter the order. In most cases they are unaware that there has been an error since they get a success message when they save orders. But in some cases no information is available in these transactions and we are unable to identify who was creating this missing order and Business team fears that we are missing some legitimate orders which the customer thinks was created. I read thorugh lot of messages in the SDN forums and lot of similar issues were due to number range buffering but we do not have number range buffering set in our systems for sales documents. Have any of you faced this issue before and do you have a suggestion to prevent this?
    Regards,
    Praveen

    Hi Praveen,
    I remember that the module pool drwas a numer from the number range before the order is actually saved. If the creation process is cancelled, the number has been used.
    You could try to check that by setting a break-point at function module NUMBER_GET_NEXT and then manually create an order, play around with the different tabs and views, create and delete items and check when the number is drawn.
    If it is drawn as it should be in update task, you may find update fails in the update monitor and the users responsible should have received an express mail.
    Regards,
    Clemens

  • Missing numbers in Number Range

    Hi all,
    I have a requirement like this. When I do a standard process I need to generate batches depending on the cuts in the cable. I'm doing this using Number Range. After I get the batches I may save the document or may not save it. Suppose my first document generated batches 100,101,103,104. At the end if I dont save and exit for the next document the batches are coming as 105,106 ans so on. However since I didnt save earlier I need from 100. How can I do this?
    Thanks&Regards,
    Manjula.S

    I don't think so. You have to understand that number ranges take care of concurrency. Hence you can have more application servers, more users running same program and SAP guarantees that you will get each number once. So generally implementing number range with possibility of returning number is really tricky thing and you have to be careful about concurrency. As I said, common approach how to avoid wasting numbers from number range is to use temporary numbers and during saving process replace these numbers by real numbers from number range.
    Good luck

  • MB51- Missing sequent Doument number range.

    Dear All,
    Here when I execute transaction MB51,I am un able to get all MIGO (GR) Document in sequential, even though I have maintain input fields for  MB51 only posting date from- to, but when I see MIGO documents in MB51few documents are missing. Where can we see those missing documents and why in between number ranges are missing?
    Example :
    MB51 number range(MIGO) showing like this 500000645 to 500000660 then, 500000667, 68,69, then 75. now i want to see missing number, where can i see and why it's happening like this.
    Kindly advice me to get more things on this issue...
    Thanks
    Madhusudhan.B

    For Eg..
    Go to SNRo. choose overview.. YOu ll get  a list. choose for eg AUFTRAg..THis is for production orders..
    Double click .. you ll see No.Of numbers in the Buffer..It ll be set as 5 ,10 or 20..
    If its 20 ,then 20 numbers will be thr in the bufer for assigning to the orders..
    PLs check if its maintained...
    At the time of server crash or something,This buffer would ve been reset...
    That may be ur problem..
    Please reset the value in the buffer as 10 or 20 and proceed ur GRs etc...

  • Reg. Number range table problem

    Dear Friends
    During request move from development to Production unfortunately Tabel NRIV is moved and all the number ranges is collapsed but data is exist, I want to restore the same as old. Please help me.    And is there any tcode to see all the last document number for the year 2011.
    Please help me
    Thanks
    Rajakumar.K

    You can find last number from report(for example purchase order - ME2N) which will be current number,
    Go to SNRO,for example purchase order, enter object - 'EINKBELEG',Click status(pencil icon),
    enter last number which is current number for internal number range(Also refer internal number range assigned to document types).
    Repeat above step for objects carefully one by one.

  • Billing Document Number saved with Preceding Number from Number range...

    Hi Everybody,
    I am facing with some irregular problem which is as follows :
    For example, Billing Docs created in the month of January was saved with number series like 10161, 10162, 10163 .....and so on....
    But the user has creatd the document in February and it got saved with number like 10121......which is a preceding number and there is only one document like this....
    The number range is Internal Number Range...even though it got saved with preceding number.
    Can anybody plz tell me why this has been happened ?????
    Proper answer will be rewarded....
    Thanks in advance....

    Hi Chaitanya,
    Please check whether someone has changed number status in VN01 and previously 10121 was not used.
    also check whether you are using ztable for number range depending upon plant.
    Regards,

  • Number range table for MM document types

    hi
    Can anybody help me to find the number range for the mm document types.
    Regards
    rajeev

    Hi,
    go to transaction SPRO, Materials Management, then choose one of the following:
    Purchasing or
    External Services Management or
    Logistics Invoice Verification or
    Inventory Management and Physical Inventory
    and look for the document types you would like to customize.
    Like within purchasing for purchase order -> Define Number Ranges. In this step, you maintain the number ranges for the following purchasing documents:
    RFQ/quotation
    Purchase order
    Contract
    Scheduling agreement
    After that you can add the number ranges to the document types under Define Document Types. ...
    Please be more specific next time as MM document types can relate to 4 main areas within MM.
    Regards,
    Edit

  • Assigning sequential number from number range

    Hi All,
    My Zreport is updating Ztable with sequential number field assigned for each document numbers for each period. Below are the numbers assigned for period 5 in Ztable.
    00001000000000000000
    00001000000000000001
    00001000000000000002
    00001100000000000000
    00001200000000000000
    00001200000000000001
    00001200000000000002
    00001200000000000003
    When I ran for period 6 the sequence number is coming as below.
    00001000000000000003
    00001000000000000004
    00001100000000000001
    00001200000000000004
    00001200000000000005
    00001200000000000006
    It should give me the below.
    00001000000000000003
    00001000000000000004
    00001100000000000000
    00001200000000000004
    00001200000000000005
    00001200000000000006
    I am fetching the data from Ztable and sorting in descending order. Below is the data in my internal table in debugging.
    bukrs belnr           blart   monat   numkr      zsequence
    2700 |1700002431 |KA   |05         |03         |00001200000000000003
    2700 |5100000804 |RE   |05         |02         |00001100000000000000
    2700 |2200000004 |P2   |05          |01         |00001000000000000002
    Below is my code.
          loop at t_ztable.
            clear w_zsequence.
            unpack t_table-zsequence to t_ztable-zsequence.
            if (t_ztable-zsequence = '00001200000000000000' or
                 t_ztable-zsequence = '00001100000000000000' or
                 t_ztable-zsequence = '00001000000000000000' ).
            w_zsequence = t_ztable-zsequence
            else.
              w_zsequence = t_ztable-zsequence + 1.
              unpack w_zsequence to w_zsequence.
            endif.                                              "BK003
    *   shift w_zbelnr left deleting leading space.
            loop at t_bkpf
                  where bukrs = t_ztable-bukrs
                    and groupnumber = t_ztable-numkr.
              move-corresponding t_bkpf to t_ztable_load.
              t_ztable_load-zsequence = w_zsequence.
              t_ztable_load-numkr = t_ztable-numkr.
              append t_ztable_load.
              w_zsequence = w_zsequence + 1.
    *         shift w_zsequence left deleting leading space.
              unpack w_zsequence to w_zsequence.
            endloop.
          endloop.
    How to acheive this. Please help me.
    Thanks,
    VBK

    Hi Haritha,
    Can you show us the table t_bkpf dataon which you are looping?
    Regards,
    Sudeesh Soni

  • Buffering from number range AUFTRAG

    At this moment we have the following problem:
    The sequence of how processorder numbers are issued is not in
    chronological sequence.
    we have already implemented note 840901 for object type AUFTRAG.
    Data LS_IGNORE_BUFFER type C .
    if OBJECT = 'AUFTRAG'. "For process order NR
    LS_IGNORE_BUFFER = 'S' . "NOTE 840901,to guarantee seq.assign
    else. "FM called also with other objects
    LS_IGNORE_BUFFER = ' '. "Standard value for buffering
    endif.
    Example:
    1000098815 21-12-2006
    1000098816 21-12-2006
    1000098818 21-12-2006
    1000098819 21-12-2006
    1000098840 21-12-2006
    1000098854 22-12-2006
    1000098856 22-12-2006
    1000098857 22-12-2006
    1000098858 22-12-2006
    1000098859 22-12-2006
    1000098860 21-12-2006
    1000098861 21-12-2006
    1000098862 21-12-2006
    1000098863 21-12-2006
    1000098864 21-12-2006
    1000098865 21-12-2006
    1000098866 21-12-2006
    1000098867 21-12-2006
    1000098868 21-12-2006
    1000098869 22-12-2006
    1000098870 22-12-2006
    1000098871 22-12-2006
    1000098872 22-12-2006
    1000098873 22-12-2006
    You see above that the ordernumbers were not issued in chronlogical order.. does anyone has an idea?

    Hi
    some times if multiple users are working on same transaction code or in between if you have any connectivity problem like sudde log off, it may happen.
    also please check SNUM transaction and check how is buffer maintained.
    regards
    Srinivas

  • Object RV_BELEG  number range interval 01 does not exist

    Hi Gurus,
    I need suggestion or solution to solve my problem when creating sales order(standard order) from VA01 transaction.
    Error Descriptio and Message:
    For object RV_BELEG , number range interval 01 does not exist
    Message no. NR751
    Diagnosis
    The database table NRIV has the delivery class 'C', i.e. the SAP default settings are only in client 000.
    Procedure
    Create the missing number range interval in customizing.
    Transaction code:
    Reporducing the error:
    Screen flow: VA01 Intial Screen Input
                          Order Type: SD  'Subs.Dlv.Free of Ch'.
                          Sales Org : 
                          Enter.
                          Next Screen: Click on "Complete Dlv" push butoon.
                          It will take to next screen go with "SAVE" option.
                          Iam getting an incomplete Delivery want to edit.
                          Go with "EDIT" and give Input in "ORDER REASON" drill down option.
                          select any one option and go with arrow symbol in the menu "EDIT NEXT DATA" or F5.
                          Provide Input In "Customer Group" drill down option select any one option from it.
                          Again go with arrow symbol in the menu "EDIT NEXT DATA" or F5.
                          Here iam getting an status "Document is complete".
                          Click on "SAVE" option.
    Here status message error showing: "For object RV_BELEG , number range interval 01 does not exist".
    This is the issue occuring with me while creating Sale Order from VA01.
    help me if any one have know solution or suggestion to solve error.
    Tnks & Rgds
    Bhaskar

    This because of the missing SD Document Number Range.
    You can check this in tcode SNRO for object RV_BELEG.
    Ask your SD Consultant to Change the number range assignment  or create that missing 01 number range number object.
    This will solve your problem,
    Regards
    Karthik D

  • 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

  • Number Ranges inBI

    Hi,
    Can anyone please tell me what are number ranges and what is there use in BI, how we create it, What are there benefits.
    Thanks

    The SAP BW system uses number ranges when loading master data or transactional data into BW. The system uses a unique master data number ID for each loaded record. Each new record reads the number range table NRIV to determine the next number in sequence. This ensures that there are no duplicate numbers. Not using unique number range values could compromise the data’s integrity.
    Number ranges can cause significant overhead when loading large volumes of data as the system repeatedly accesses the number range table NRIV to establish a unique number range. If a large volume of data is waiting for these values, then the data loading process becomes slow.
    One way to alleviate this bottleneck is for the system to take a packet of number range values from the table and place them into memory. This way, the system can read many of the new records from memory rather than repeatedly accessing and reading table NRIV. This speeds the data load.

  • No authorization for number range object type BTI and activity SHOW

    Hi All,
    When I try to execute
    SAP Easy Access screen - > Auto-ID Infrastructure -> Master data -> Number Ranges -> Number Range Administration
    on the next web window when I select the object type BTI , it comes up with the error
    Number range table not maintained for object BTI in customizing  
      No authorization for number range object type BTI and activity SHOW  
    I am using AIN 5.1 .  Is this an authorization issue ?. If so which all roles I should give to the user?  IF you have any idea about this please share some tips.

    Hi Sahad,
    Only few number range object types are available in the standard system:
    Follow the link for help .
    http://help.sap.com/saphelp_autoid2007/helpdata/EN/45/e2240c7abb56dde10000000a114a6b/frameset.htm
    Follow the for setting up the others.
    http://help.sap.com/saphelp_autoid2007/helpdata/EN/45/e2240c7abb56dde10000000a114a6b/frameset.htm

  • KP06 - No transactions for cost planning are defined in the Nos range table

    Dear CO Experts,
    I m trying to post Cost Planning using T-Code KP06.
    please help, the Error which pops is :
    *No transactions for cost planning are defined in the number range table*
    *Message no. K8007*
    *Diagnosis*
    *You want plan primary or secondary costs/revenues in controlling area 9000. This is not possible because no entries exist in the number range table for the cost planning transactions you want to perform.*
    *This is an internal system error.*
    *System Response*
    *Processing is terminated.*
    *Procedure*
    *Start program RKTKA04C.*
    *Execute*
    *After the program has run successfully, start planning again.*

    HI,
    the planning subobjetcs to be assigned in KANK to a CO-number range are (maybe you do not need all of them):
    KAZP
    KOAP
    KPPB
    KPPZ
    KSP0
    KSPB
    KZPP
    KZRP
    PAPL
    RKP1
    RKP2
    RKP3
    RKP4
    RKP5
    RKP6
    RKP7
    RKP8
    RKP9
    RKPB
    RKPL
    RKPQ
    RKPS
    RKPU
    RKPV
    RKPW
    RKPX
    RKPZ
    best regrads, Christian

  • Number Range-OM

    Hi,
    Requirement for number ranges is as follows
    $$S Positions- 20000000-29999999
    $$O Org Units number range-10000000-19999999
    $$C Jobs-30000000-39999999
    Used the following process
    I went to Personnel managementOrganizational ManagementBasic SettingsNumber Ranges and created the following
    I ticked the setting NUMRG COMP as X in T77S0.
    If I goto PO10 and the number range is still coming as 50000000 instead of 10000000-19999999 for organizational unit.
    Kindly guide me?
    Regards,
    Garima

    ohh
    here is full implementation step for number range in OM
    For validity across plan versions
    Organizational Management  > Basic settings > Maintaining Number Ranges> Set Up Number Assignment for All Plan Versions
    Table        : V_T77S0SC ( T-code : SM30)
    maintain
    NUMRG    COMP       X
    Organizational Management  > Basic settings > Maintaining Number Ranges> Maintain Number range
    Table        : T77IV ( T-code : SM30)
    Create new entries with $$X , where $$ indicates the plan version and X is Object type like O  is the org unit .
    after this Selecting the object (Org unit, Job, Position and task) click on number range button
    This will take u to the Screen saying number range for pesonnel planning.
    click on change INterval button
    maintain  the no ranges with the range u want  keeping the current number range
    0 while creating for the first time.
    Its done
    Regards
    Manish
    Reward points if helpful

Maybe you are looking for

  • Replacing a Superdrive - is there a better option?

    I have a third-generation iMac that is about 18 months old. Suddenly (i.e. today) the DVD drive will not read data DVD disks that it wrote in the last 3 days. This is a problem because these DVDs were supposed to be my backup of some critical data. I

  • Hard disk short dst failed

    hello! my system is hp pavillion-g6-2312ax and my system got hanged in between of my computing . as usual when it hangs i will wait for that to recover, but this time it took a long time so, i shut it down by pressing the shutdown forcely. when resta

  • Check the hints used in SQL Query (Parallel, First_Rows)

    Hi, I have used above hints in my sql query and found no difference in execution time. I just want to know whether the hints are used in my sql are not. Could you please let me know where to check for it. Thanks in advance

  • Purchased applications lost in sync process

    Hi i have reinstalled my windows so the old sync is gone and after that i installed itunes + i tried to sync the applications but it said around 28 programs didnt synced and it asked me to authorize my iphone in store, i did it but still my programs

  • Debug problem

    I installed the sneak preview Enterprise portal on my machine. Yesterday i was able to debug my portal application. But today i wasn't. This problem was after the moment I deleted the old portal application. Can someone tell my how i can fix this pro