Sequential numbers in non-buffered number range object

I need some help pointing in the right direction to analyze and prevent a problem with a NON-BUFFERED custom number range object.
This process works well.  Once or twice however, sequences have been created with an apparent delay and are out of order.  I don't know why, or where to look to diagnose the timing, etc.  It's very difficult to recreate.
We have a custom number range object; ZFSEQ in SNRO that is responsible for assigning a sequential number to a series of flat files produced by number of different interfaces.  Those interfaces all use the FM  'NUMBER_GET_NEXT' and then they build a file name with that sequence number.  That object is not buffered.
During heavy volume of updates (where lots of these sequences are being called and created by different interfaces, the table NRIV is locked and released by each interface.  During this time of heavy updates, we have an infrequent problem that has occurred where a standard sales order create created a sequence number that is greater than the sequence number generated by the delivery create.  (The delivery was created a couple of minutes later than the order, yet the order created a flat file sequence number greater than that of the delivery.
I hypothesize that the flat file call for the order (using the  FM  'NUMBER_GET_NEXT') was somehow delayed(because of heavy lock/usage of NRIV).  The actual order document and delivery document were created normally.  I also am thinking that buffering on the object would prevent this.  I cannot at this time implement buffering on the object, but we are working towards that.
The order create originates from our e-commerce system through a webserive, and in SAP, flows like this:
Main webservice RFC:     Z_ORDER_CREATE
          Call Z_create_order_bgd  IN BACKGROUND TASK
                                  Call BAPI_SALESORDER_CREATEFROMDAT2 )
                                   MV45AFZZ--> userexit_save_document.
                                        call Z_FUNCTION_TO_GET_SEQUENCE
                                                  CALL FM  'NUMBER_GET_NEXT'    <---- order create sequential file created
          commit work.
The delivery sequential file is created in
     MV50AFZ1  (the Delivery User Exit)
Where can I look to conclusively see what happened to delay our sales order sequence?  What could be done to prevent it?
Thanks
Jeremy H.

Just want to post the answer that we found to this issue and close it, though more comments are always welcome!
We are going to move forward with buffering the Z object for the range as studies have shown and all other consulting input seems to be that buffering will solve this problem.

Similar Messages

  • Number Range object skipping numbers SAP

    Hi All,
    Number Range object skipping numbers SAP "EINKBELEG" . While creating Purchase order with transaction code me21n, the purchase order is skipping odd numbers. I have checked the transaction code "SNRO" there is no buferring set on the object.
    Please help

    Are multiple users creating Purchase Orders at the same time?
    If yes then this is possible. Because Number Range (unique Number) is assigned to Purchase Order at the start of the Transaction (ME21N).
    Thus if multiple users are creating Purchase Orders at the same time & some of these users may have not saved the Purchase Order after partially creating it... This may lead to particular Number Range to be skipped as the following number is already assigned to some other Purchase Order.
    Hope this helps,
    Thanks,
    Jignesh Mehta

  • Number range object issueing the  numbers randomly

    Hi All,
      We have created a number range object and used in a program,but it is issuing the values randomly if it  is issues 8 yest ,today is issuing 7 .
    do any any idea on this issue?
    Regards
    Channa

    Hi,
    Please check the number range configuration.
    [Number Range Example:|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=50004015]
    Shiva

  • Number Range Object for a Infoobject

    Hi Gurus,
    Can anyone explain me what is the significance of Number Range Object for a perticular infoobject and what do you mean by Buffering of those Number Range Object...
    Your help will be appreciated..
    Thanks a lot in advance..
    Thanks,
    Shalaka.

    Hai Shalaka,
    The number range buffer is used to increase performance when assigning
    numbers. Instead of fetching the numbers each time from the database,
    a single access to the buffer suffices. Only when the buffer is empty,
    is it refilled from the database (table NRIV).
    Use of the buffer has the following benefits:
    · Accessing the main memory is a thousand times quicker than accessing
    the database. Speed is particularly important for applications that
    assign numbers frequently.
    · Database accesses are always subject to the database transaction
    mechanism. Once an application has assigned a number for one user, a
    second user cannot assign a number until the first user has executed a
    commit operation on the database. The application blocks further
    assignment, and the second user has to wait, until the commit has been
    executed.
    · The number range buffer can also prevent deadlock situations, which
    may arise from assigning different numbers in a different order.
    Since the SAP kernel accesses table NRIV directly for the number range
    buffer, the structure of the table must never be changed. This also
    applies when adding new fields.
    We can set number range buffering inSNRO t code.
    Loading Master data - The number ranges buffer for the SID's resides
    on the application server and reduces DB server accesses. If you set
    e.g. the number range buffer for one InfoObject to 500, the system
    will keep 500 sequential numbers in the memory and need not access the
    database.
    #####>>> whenever master data loading is done system creates SIDs, &
    to create SIDs system look into a specific table, check the latest
    number & generate the next no in the series, so to check this latest
    no for every time ( every record) system needs to go back to database
    table & generate the next no in series. when I do the buffering I
    provide the whole series to system at application level so it need not
    to go back to table to check the latest no & generate the next one. It
    just picks up the next in available on application server.
    >>>####
    Please refer - SAPnote 130253
    Loading Transcation data - The number range buffer for the dimension
    ID's resides on the application server and reduces DB server accesses.
    For example, if you set the number range buffer for one dimension to
    500, the system will keep 500 sequential numbers in memory and need
    not access the database
    If you load a significant volume of transaction data (e.g., initial
    load), increase the number range buffer. If possible, reset it to its
    original state after the load in order to minimize unnecessary memory
    allocation
    Hope this information helps u....
    Asign points if helpfull
    regards
    KP

  • Document number range object

    Hi
    Please tell document number range object . T-code :FBN1
    PLEASE URGENT
    Thanks
    Krishna

    Hello
    A number range must be assigned to each document type in the SAP System. Via the document types, you distinguish the postings according to the different business transactions, for example customer payment, vendor credit memo, and so on. To store documents separately according to document types, you must assign a separate number range to each document type, for example to invoices or to credit memos.
    In the following activities:
    You define your document number ranges.
    You can determine which intervals of document number ranges are to be copied from one company code into another.
    You can determine which intervals of document number ranges are to be copied from one fiscal year into another.
    Define Document Number Ranges
    In this IMG activity you create number ranges for documents. For each number range you specify (among other things):
    a number interval from which document numbers are selected
    the type of number assignment (internal or external)
    You assign one or more document types to each number range. The number range becomes effective via the document type specified in document entry and posting.
    You can use one number range for several document types. This means you can differentiate documents by document type but combine them again for filing the original documents, provided you store your original documents under the EDP document number.
    Note
    The type of number assignment is of special importance. For each document type you should check whether a separate number range must be used and which type of number assignment is most appropriate.
    One example of a case where external number assignment would be suitable is when you transfer documents into your SAP system from a non-SAP system. The numbers must be unique. The number range is not displayed with external numbers. You must therefore ensure that you do not skip any numbers when entering numbers manually (for organizational reasons).
    You should use internal number assignment if the original documents do not have a unique document number. This is the case, for example, with vendor invoices.
    Number ranges for documents are company code-dependent. You must therefore create your number ranges for each company code in which the document type is used, namely with the same number range key.
    The number intervals must not overlap. If you use year-dependent number ranges, you can specify the same interval with the same key several times for different to- fiscal years  (the limit up to which a number range is still valid). If you want to define number ranges which are independent of the to-fiscal year, enter 9999 in the to- fiscal year field.
    Caution
    For sample documents, use a number range with key X2, for recurring entry documents with key X1. These keys may not be used for other number ranges.
    Recommendation
    Store your original documents (paper documents) under the EDP number of the SAP System. You should write the EDP document number on the original document. In this way, the original document for a business transaction can be found at any time.
    Activities
    1. Determine how document filing is to be carried out in your company codes.
    2. Define your number ranges accordingly.
    3. Make sure that the number ranges are assigned to the corresponding document types.
    Copy to Company Code
    In this activity, you can copy intervals of document number ranges from one company code to other company codes. To do this, you have to store the following information:
    Intervals which are copied
    To fiscal year(s) (validity limit up until which the number range is valid)
    Company code from which you copy (source company code)
    Company code(s) into which you copy (target company code(s))
    Activities
    Make all necessary specifications for copying the number ranges.
    Note
    The number ranges are only copied into a target company code if no number ranges exist there within the selected "To fiscal year" interval.
    Notes on transporting
    The documentation for the step "Define document number ranges" describes how to transport document number ranges.
    Copy to Fiscal Year
    In this activity, you can determine which intervals of document number ranges are to be copied from one fiscal year into another per company code. To do this, you have to define the following information:
    Company code(s) within which you copy
    Number range number(s) which are copied
    Fiscal year from which you copy (source fiscal year)
    Fiscal year into which you copy (target fiscal year)
    Activities
    Make all necessary specifications for copying the fiscal years.
    Note
    The number ranges are only copied per company code into the target fiscal year if no intervals exist there for this fiscal year.
    Reg
    *assign points if useful

  • SNRO - Creation of Number range object problem

    Hi Experts,
    i wanted to create a number range object thru SNRO.
    The creation was successful in DEV system.
    when i tried to create the same number range object in QA server, i am getting the following error
    "Changes to Repository or cross-client Customizing are not permitted - Choose 'Display object' or 'Cancel'."
    this is a Znumber range used to generate sequential numbers using FM NUMBER_GET_NEXT
    What could be the problem. how to over come this?
    Is it the missing authorizations? if so what could be the authorization object (SU53 shows nothing)
    Appreciate any help in this regard.
    Thanks
    Simha

    Hi All,
    I am confused with the conflicting answers for my problem. But anyways i could transport the number range object and could create a number range interval in QAS.
    Thanks a lot for all your valuable inputs.
    But i am still not out of this so called misconception - Are number range objects to be transported to QA or to be created afresh in QA/PRD?
    Earlier some one told to be created but now i see they can be transported.
    I was not ready to edit the options in SCC4 for the client to enable object creation.
    Thanks again,
    Simha

  • Error in Number range object  - URGENT

    I changed one attribute(let say X) of a characteristic(A)  from dis to nav and transported to QA. The transport failed saying that the intervals for the number range object for X does not exist.
    In DEV RSRV check on X, A shows no errors
    any suggestions how can I fix this prob

    try attribute change run first if dont work try this
    you can increase the number range buffering size... go to se37 use functional module rsd_cube_get and then click on the test/execute(f8) button, then put in your cube name , then for i_obj put in a and then for i_bypass put in x press the execute button. the click on the blue icon next to E_T_DIME. you se your dimensions there. you now need to increase the buffer size for the dimensions that are receiving high volumes of records. so on the same screen not the dimention tht you want to increase the size of, scroll to the right hand side extreme and note down the NOBJECT number starts with BID. then go to transaction SNRO, put in the number you noted down and click on the change icon.
    Now in the edit tab on top drop down set up buffering and select main memory.
    now under "No. of numbers in buffer type in 500
    save and click yes to continue
    setting the number range too low will not help in load performance significantly, whereas setting it too high will consume a lot of memory on the application server, which will effect other applications.monitor the memory usage during data loading to find an appropriate number.
    hope this helps

  • Number range object maintenence

    Please let me know the usage or functionality of Buffer in Number Range Object
    T.Code SNUM

    The buffer indicates how many numbers should be reserved when a jobs starts.
    say in order settlement. If two persons are doing settlement.  When the first one starts, the system buffers 100 (in ourmpany) numbers for that persons use. -say 3000101 - 3000200.  the second person starts and the system will reserve 3000201-3000300 for that person.
    Thank you for asking, because I didnot know where the buffer config was.
    althea

  • ODS Activation Failure due to Number range object for char doesn't exist

    Hi
    I am having problem regarding ODS actvatn, My oDS is gttng fail due to number range for char object doesn't exist.
    error when checking sid for ODS.
    I have made all tests in RSRV for dat Infoobject
    can any one suggest me ...........
    points will be assigned
    kindly mail me 2      [email protected]

    Hi,
    chk tis blog.. hope it clears wat buffering is
    /people/vikash.agrawal/blog/2006/04/05/load-lots-of-data-147faster148-with-buffering-number-range
    What is buffering number range:
    “Buffer the Numbers ( which system picks up from database -in case of Master Data – SIDs & in case of Transaction Data Dimension Ids) and use these buffered numbers rather than hitting the database (for each new master data records or for each new combination of SIDs to create a new Dimension Ids). So the concept is –
    “SID Number Range can be Buffered Instead of Accessing the Database for Each SID”
    Hope its clear!

  • About Number range object

    Hi All,
    what is Number range object and what is the purpose of this.?
    thanks in advance ...

    Hi,
    1) Goto Tcode SNRO
    2) select ur concerned OBJECT there.
    3) Click on Number Ranges Push Button.
    4) then click on Display Interval Button over there.
    Document:
    A number range must be assigned to each document type in the SAP System. Via the document types, you distinguish the postings according to the different business transactions, for example customer payment, vendor credit memo, and so on. To store documents separately according to document types, you must assign a separate number range to each document type, for example to invoices or to credit memos.
    In the following activities:
    You define your document number ranges.
    You can determine which intervals of document number ranges are to be copied from one company code into another.
    You can determine which intervals of document number ranges are to be copied from one fiscal year into another.
    Define Document Number Ranges
    In this IMG activity you create number ranges for documents. For each number range you specify (among other things):
    a number interval from which document numbers are selected
    the type of number assignment (internal or external)
    You assign one or more document types to each number range. The number range becomes effective via the document type specified in document entry and posting.
    You can use one number range for several document types. This means you can differentiate documents by document type but combine them again for filing the original documents, provided you store your original documents under the EDP document number.
    Note
    The type of number assignment is of special importance. For each document type you should check whether a separate number range must be used and which type of number assignment is most appropriate.
    One example of a case where external number assignment would be suitable is when you transfer documents into your SAP system from a non-SAP system. The numbers must be unique. The number range is not displayed with external numbers. You must therefore ensure that you do not skip any numbers when entering numbers manually (for organizational reasons).
    You should use internal number assignment if the original documents do not have a unique document number. This is the case, for example, with vendor invoices.
    Number ranges for documents are company code-dependent. You must therefore create your number ranges for each company code in which the document type is used, namely with the same number range key.
    The number intervals must not overlap. If you use year-dependent number ranges, you can specify the same interval with the same key several times for different to- fiscal years (the limit up to which a number range is still valid). If you want to define number ranges which are independent of the to-fiscal year, enter 9999 in the to- fiscal year field.
    Caution
    For sample documents, use a number range with key X2, for recurring entry documents with key X1. These keys may not be used for other number ranges.
    Recommendation
    Store your original documents (paper documents) under the EDP number of the SAP System. You should write the EDP document number on the original document. In this way, the original document for a business transaction can be found at any time.
    Activities
    1. Determine how document filing is to be carried out in your company codes.
    2. Define your number ranges accordingly.
    3. Make sure that the number ranges are assigned to the corresponding document types.
    Copy to Company Code
    In this activity, you can copy intervals of document number ranges from one company code to other company codes. To do this, you have to store the following information:
    Intervals which are copied
    To fiscal year(s) (validity limit up until which the number range is valid)
    Company code from which you copy (source company code)
    Company code(s) into which you copy (target company code(s))
    Activities
    Make all necessary specifications for copying the number ranges.
    Note
    The number ranges are only copied into a target company code if no number ranges exist there within the selected "To fiscal year" interval.
    Notes on transporting
    The documentation for the step "Define document number ranges" describes how to transport document number ranges.
    Copy to Fiscal Year
    In this activity, you can determine which intervals of document number ranges are to be copied from one fiscal year into another per company code. To do this, you have to define the following information:
    Company code(s) within which you copy
    Number range number(s) which are copied
    Fiscal year from which you copy (source fiscal year)
    Fiscal year into which you copy (target fiscal year)
    Activities
    Make all necessary specifications for copying the fiscal years.
    Note
    The number ranges are only copied per company code into the target fiscal year if no intervals exist there for this fiscal year.
    http://help.sap.com/saphelp_47x200/helpdata/en/2a/fa02e3493111d182b70000e829fbfe/frameset.htm
    Regards,
    Shiva Kumar

  • Number Range Object

    Hi
    During data extraction im getting the following error message
    "Error calling number range object ZMATNO for dimension D2"
    pls help me out.. how should i proceed from here...
    Thanks in advance,
    Sowdha.

    Hi Sowdha,
    First any way you have to correct the number range interval using RSRV. If it reports error with number range interval for this particular dimension.
    (RSRV should report error when you check the dimension)
    The reason(s) for the error could be:
    1. The number range interval for this dimension is "Buffered"
    2. There are not many "Dialog processes" available in the system
    To avoid such error:
    1. restrict the number of parallel processes while loading the data using the option
        "PSA and then into Target"
    2. or make sure that sufficient number of dialog processes available at the time of  
        loading
    Check the note "708297" for details why the error occurs though it is not directly pointing to Dimension ID number ranges, the explanation suits your problem also.
    Assign points if this helps.
    thanks
    sarma

  • Number range object interval - Production Orders

    Dear All,
    In number range object AUFTRAG, no. of numbers in buffer mentioned as 20,
    To my knowledge, because there is buffer defined as 20, system may skip some numbers in production order number range amounting to 20.
    But today I have observed that, in the system numbers skipped is not 20 but less than 20, i.e 17.
    Can anyone tell me why is this happened?
    Regards,
    Pavan

    hello
    pls check as per below
    SPRO Production-Shop Floor Control-Operations-Confirmation---
    >>>> then you can check in the follwing in the
    Define Confirmation Parameters
    Confirmation Parameters for Collective Confirmation/Fast Entry
    Define Time for Confirmation Processes
    Define Paralleling Type for Confirmation Processes
    Define Reasons for Variances
    Define Field Selection for Confirmation
    Define List Layout
    Check if required information available in the
    rgds
    Brijesh

  • Number range object reset daily

    We would like to generate a unique numeric value to represent an external invoice number. This number begins with the current date e.g. 20110905 followed by the next number in the sequence 0-9999. The sequence needs to also be reset to one at the start of each day.
    We currently use a program to select and update a database table which stores the date and next number in the sequence and reset and finally reset the number at the start of each day. Unfortunately we sometime experience duplications of the invoice numbers.
    I've tried using a SAP number range object (transaction SNRO) but I can't find a function to reset the number.
    Is there a function to reset a SAP number range object or an alternate method to obtain the required results?

    Dear Nicholas,
    Have you use locking mechanism on your custom number range table ? (using enqueue/dequeue or else)
    or you may want to check this function : NUMBER_RANGE_INTERVAL_UPDATE.
    Regards,
    Oki

  • FI number range objects

    Hi All
    Can please give  the list of number range objects that FI needs to maintain ?
    Thanks in Advance
    Regards
    Praveen P C

    Hi,
    RF_BELEG (general ledger entry view)
    If newGL is acitve and there are local ledgers with different fiscal year variants you need additional doc. numbers: FAGL_DOCNR
    ANLAGENNR (asset number ranges)
    Table TNROT contains number range objects and their description, maybe you are looking for some other number range objects.
    best regards, Christian

  • Interval 01 was not created for number range object HRTEM_REFN

    Dear expert!
    Now, I'm getting some issues in Training and event management module.
    - The first, I created business event
    - Second, I process to book for business event by tcode: PSV1 --> book --> book/payment info --> activity allocation.
    But when I was booking, the system displayed error: "Interval 01 was not created for number range object HRTEM_REFN"
    Help me, please!
    Best regards, Huy!

    Go to the customization as below
    Training and event mgt>Basic settings>Number range maintanence>Define number ranges for External operation
    and maintain number ranges as 01 Internal
    Hope ur problem will solve
    with regards
    partha

Maybe you are looking for

  • Lightroom Installation Failed on Windows 8.1

    While installing Lightroom cc on my windows 8.1, I met this message. Photoshop and illustrator have been installed successfully. Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------

  • Illustrator won't save when a gradient is being used...

    In CS4, as soon as I apply a gradient and try to save, I get an error message. I've tried saving as all file types. I was able to export the image as a jpeg but would like the know how to fix the problem.

  • Quick question about import wizard

    I logged into XI 3.1 Import Wizard with my AD user id (member of Administrator group), it is not giving me an option to imports users and groups. Is that only Administrator account can import users and groups?. Source system is XI R2 SP3 and destinat

  • Updated to iOS 6.1 now my SMS messages won't send

    I updated to iOS 6.1 over the air yesterday afternoon. I got some good news so I sent out a couple messages to people but kept getting failure to send notifications. Before 6.1, I did not have any problem sending SMS messages. iMessages still works p

  • Creating calendar problems

    Spent a few hours last night making a calendar in iPhoto only to have it crash on the month of December. Any way to find the auto save file? Thanks