Creating Multiple Number Range

Hi
I am required to create strings of the following format: XXXXYYYYY. A customized program will read in a string of 4 characters (XXXX) and generate a running number (YYYYY) for it. Every unique XXXX has its own running number range. The strings XXXX are stored in the database. More XXXX could be added to the database in the future.
For example,
TA0100001,TA0100002....
SB0200001...
SB0300001...
Is there a function to create the number ranges? Any advice on how I should approach this problem? Thanks!

Hi,
     I will suggest two idea's for the same.
Create one number range object for YYYYY and then append it to XXXX that is there in database, but here the number of strings that you can generate are limited.
Another Idea is to create say 5 Nmber range objects.
And have it like if XXXX is in range1 to range 2 use Number range object1 to get YYYYY.
And if XXXX is in range 2 to range 3 then use number range object2 (Or interval 2 of the same number range object 1 that is if you want only one number range object and have 5 intervals instead of 5 number range objects.) to get YYYYY. With this you will more options for generating the required XXXXYYYYY.
Transaction for creating number ranges is SNRO.
Regards,
Sesh

Similar Messages

  • 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

  • HOW TO CREATE EXTERNAL NUMBER RANGE IN OM

    HI ALL
    HOW TO CREATE EXTERNAL NUMBER RANGE IN OM
    PLEASE GIVE ME SPOON FEEDING
    IT IS VERY URGENT FOR ME
    PLEASE PLEASE AND PLEASE
    REGARDS

    ok i understood u want the img path for maintaing
    positions ,jobs , Org units
    Path:IMG->Personnel Mgmt->OM->Basic Setting->Maintain Number ranges.
    IMG go to Personnel Management -> Organizational Management -> Basic Settings
    -> Maintain Number Ranges.
    Select subgroup $$O to maintain number range for Org Unit and click on Number range Maintenance. Then click on change Intervals. Now you can create both internal and external number range for Org Unit according to your requirement.
    Similarly for Position select subgroup $$S and follow the same process.
    Edited by: Sikindar on Feb 7, 2008 11:23 AM
    Edited by: Sikindar on Feb 7, 2008 11:28 AM

  • Create document number range 22 using internal number assignment

    Hi friends,
    now i am working upgradation project from 4.7 to 6.0. sandbox i created one Asset, After that i posed amount to that asset by using f-90.now i run depreceation in ABAF T code the bellow issue is comming
    Create document number range 22 using internal number assignment
         Message no. AA776
    Diagnosis
         Processing terminated because the document number range 22 for year 2011
         was set up with external number assignment.
    System Response
         For periodic posting of depreciation, you have to create a document
         number range with internal number assignment, since the document numbers
         are assigned from Financial Accounting.
    Procedure
         Change the number assignment for the number range 22 from external to
         internal in Customizing for Asset Accounting. See SAP Note 890976 for
         more information.
    But no ranges for that particular year having, if any changing that one it s not come edit or deleating
    ple any one help me
    Regards
    Gangadhar reddy

    Hi Gangadhar,
    after 4.6C the Internal Number Range was changed into external Number Range due to technical requirements.                                                                               
    As the error messages due to posting manual into the affected  number ranges could not be hindered in this case with ERP2005 the desicion was made to rechange to internal number range. Note 890976 describe what to do here.                             
    regards Bernhard

  • How to use SNRO to create daily number range?

    Dear all,
    I would like to know how to use SNRO to create a daily number range.
    We would like to have the following sequence. The first 8 digits are date and the last 2 digits are number sequence. Each day, the last 2 digits will start from 01 again. i.e. <8-digits date><2-digit sequence>
    For example, today is 22 May 2006,
    2006052201
    2006052202
    2006052203
    Tomorrow will have sequence like this:
    2006052301
    2006052302
    2006052303
    Thanks!

    Thomas,
    I don't there is a automated way of doing as the dates do NOT follow a numbering sequence. What you can do is to create a number range for getting the last two digits every day and manually concatenate the date with the serial number.
    However, as you have to reset the counter every day that might be a issue.
    Regards,
    Ravi

  • Multiple number range for planned order

    Hi,
    I want maintain different number range for MRP related planned order and manual creation planned orders. I have checked OPPQ and OMI2 transaction but i could not get any clue to create different number range for same plant. Let me know is how we can create.
    Regards / US

    Hi Uma,
    number range is dependent on plant alone and I don't think there is an user exit or badi to change number range at planned order creation.
    I guess the alternative is an enhancement or using some other field to determine what planned orders are manual.
    regards,
    Edgar

  • Steps to create a Number Range.

    Can anyone please send me the steps to create a Number Range..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.
    *****************************************************Other code
    Create number range object using OYSN.
    Then call the following function modules.
    FORM get_next_id CHANGING p_discrep.
      DATA: last_id LIKE zrecaudit-discrep,
            quant   LIKE inri-quantity,    "dummy
            code    LIKE inri-returncode.  "returncode
      CALL FUNCTION 'NUMBER_RANGE_ENQUEUE'
           EXPORTING
                object           = 'ZRECAUDIT'
           EXCEPTIONS
                foreign_lock     = 1
                object_not_found = 2
                system_failure   = 3
                OTHERS           = 4.
      IF sy-subrc = 0.
        CALL FUNCTION 'NUMBER_GET_NEXT'
             EXPORTING
                  nr_range_nr             = '01'
                  object                  = 'ZRECAUDIT'
             IMPORTING
                  number                  = last_id
                  quantity                = quant
                  returncode              = code
             EXCEPTIONS
                  interval_not_found      = 1
                  number_range_not_intern = 2
                  object_not_found        = 3
                  quantity_is_0           = 4
                  quantity_is_not_1       = 5
                  interval_overflow       = 6
                  buffer_overflow         = 7
                  OTHERS                  = 8.
        CALL FUNCTION 'NUMBER_RANGE_DEQUEUE'
             EXPORTING
                  object           = 'ZRECAUDIT'
             EXCEPTIONS
                  object_not_found = 1
                  OTHERS           = 2.
      ENDIF.
    ENDFORM.                    " get_next_id
    Don't forget to reward if useful..

  • Error when creating a Number Range

    When I use transaction ZNRO to create a number range, I get an error message:
    "Invalid call sequence for interfaces when recording changes".
    All I did was enter the text and a domain for the numbers.   There was an earlier error regarding buffering.  It said that I should not use buffering for accounting documents.   I am not using this for accounting documents and do not care if numbers get skipped.  So I continue through that error. 
    But after that, the "Invalid call sequence . . ." error pops up.
    I searched this forum generally, and with portions of the error text, and do not find any discussion of problems creating number ranges.
    The number range I'm created is very simple.  I just need "one up" numbers for a custom database used to store custom schedule information.
    I'm at release 4.6c.

    Here is the error message and text.
    I have no idea what it means by "interfaces".
    When at release 3.1i, I had no trouble creating number ranges.
    <b>Message no. TK 425
    Diagnosis
    The function you selected uses interfaces to record changes made to your objects in requests and tasks.
    Before you save the changes, a check needs to be carried out to establish whether the objects may be changed. This check must be performed before you begin to make changes.
    System Response
    The function terminates.
    Procedure
    The function you have used must correct the two Transport Organizer interfaces required. Contact your system administrator.</b>

  • Multiple Number Ranges for AP Document Type not getting triggered

    Hi all,
    We are posting receivables in the system using BAPI_CTRACDOCUMENT_CREATE. We have huge data of 3.9 million records for which receivables has to be posted. So multiple number ranges has been configured in the system for AP document type.
    The issue is even though multiple number ranges for mass processing are configured in the below location in SPRO, none of them are getting triggered. The number range at the first level on the screen is only getting triggered, due to this it is taking lot of time to post documents. Any help on this?
    Financial Accounting(new)
         Contracts Accounts Receivable and Payables
         BasicFunctions
         Postings and Documents
         Document
         Maintain Document Assignments
         Document Types
         Maintain Document Types and Assign Number Ranges
    Regards,
    Karthick.

    Karthick:
    Mass ranges are only used for FICA parallel mass activities.  For your situation, you can define and assign multiple ranges for individual processing in the same IMG activity.  Those would then be chosen for your mass postings.
    regards,
    bill.

  • How to create a number ranges in QM notification?

    Hi Exprets
    How to create a number ranges in QM notification?
    Please help me...
    Ram

    Deat Thyagarajan,
    Notification type 01
    Notification cat   05
    Parameters
    Notification origin General Notification
    Catalog profile SAPISR
    Early no.allocation  06  Number range
    My Notification type 01, I am assined 06 number range. 06 number range have limit 1-100000.
    I have used upto 100000. Now how I can extend my number limit.
    Thanks for support...
    Ram

  • How to create a Number range?

    Hi,
    How to create a number range for a field to give our own number for a field?

    Hello,
    Go to transaction SNRO.
    Take a look at these: [https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822#q-13] and [http://help.sap.com/saphelp_nw04/helpdata/en/7b/6eb2aa7aed44ea92ebb969e03081fb/frameset.htm]
    Regards,

  • Create document number range 03 using internal number assignment in AFAB

    Hi Experts,
    Where i have to create number range to Depreciation Posting ? Please mentain Transaction code .
    I had check T Code:AS08 (No Tick is assign)  & FBN1 (Intrenal Tick is assign)
    I am doing T Code AFAB
    Folowing error coming
    Create document number range 03 using internal number assignment
    Message no. AA776
    Diagnosis
    Processing terminated because the document number range 03 for year 2011 was set up with external number assignment.
    System Response
    For periodic posting of depreciation, you have to create a document number range with internal number assignment, since the document numbers are assigned from Financial Accounting.
    Procedure
    Change the number assignment for the number range 03 from external to internal in Customizing for Asset Accounting. See SAP Note 890976 for more information.
    Waiting for reply
    Regards,
    Girish

    locked.  please read the error message and search the IMG (very easy).

  • AFAB:AA776 "Create document number range ## using internal number assignmen

    Good afternoon
    I ask for your guidance to see if anyone knows me that is generating errors in the transaction AFAB AA776 "Create document number range ## using internal number assignment", the peculiarity of this is that I'm in an environment that is proving to migrate V5 to V6 ranges in environment QAS is marked as external and no problems to run on v6 change in SAP itself. Test by removing the flag marking for external control and run, causing an alarm is that it does not work as in my QAS v 5 and that I should remove this flag is removed and remove it in all the years this range of numbers is that it can hurt if you make this change.
    Can anyone guide me please.
    Thanks for the support.
    good day

    Hello ,
    Kindly have a look at the below  notes that will help you resolve the
    issue :
    890976 - Converting closing report to internal doc number assgnmnt
    If note 890976 has been applied in your system already (package
    level is = or > SAPKH60005), so what you need to check is the
    following :
    In transaction FBN1, in your company code  you should see that the
    period and number range in question is ticked as external.
    Please untick the indicator for "External" and press enter. If this
    box happens to be uneditable then untick the number range for the
    previous year and press enter. All other entries will update
    automatically.
    Here is a brief explaination to why this change has been made:
    Before ERP2005(RAPOST2000 exists as of release 4.70)the number usage
    was external, because RAPOST2000 internally managed the document number
    handling. As this was not possible any more with the New General Ledger
    functionality, and as the usage of internal number ranges is much
    simpler and more efficient, we changed the number range management
    inside RAPOST2000 (and by the way also the new periodic posting report
    RAPERB2000).
    Please kindly check the attached notes 683313 for your reference.
    I hope this provides some clarification.
    regards
    Ray

  • J_1IINTPR2 object which transaction is creating this number range.

    J_1IINTPR2 : Despatch serial Number  Excise Group:21
    Current Number range is running ,in SNRO but i want to know where this number is generating  in data base Tables
    and in which sales transaction is creating this number range.

    Hi,
    This no. range is asigned at J1I9 also,
    it will be generated at J1IIN.

  • How to create Alphanumeric Number Range

    Hello Experts ,
    I want to create a alphanumeric number range for vendor .
    Could you please give some information on the the format to specify in Number range transaction ?
    For Example :
    How do I create  CDPDM01DKK   vendor
    Regards
    Shashank

    HI
    create number ranges in XKN1.
    define A to ZZZZZZZZZ and click the the ecternal number range
    Then
    Assign the number range to vendor account groups.
    Check it out.
    Path: SPRO- SAP IMG- Financial accounting- Accounts receivables and payables- vendor accounts- master data - preparations of creating vendor master data - create number range for vendor accounts
    SPRO- SAP IMG- Financial accounting- Accounts receivables and payables- vendor accounts- master data - preparations of creating vendor master data - Assign the number range to vendor account groups
    Check it out.
    Regards,
    Raman

Maybe you are looking for