Check if number range is already taken or not...

Hello Experts,
I have a requirement wherein I need to change the number range of variant articles(We are using IS-Retail).
By default, variant articles/materials is having a length of 10 instead of 7 and our external system cannot
take more than 7. So, what I am doing is to just increment the main article/material number for its variants.
For example:
Default:
main article/material - 3111111
variant article 1     - 3111111001
variant article 2     - 3111111002
variant article 3     - 3111111003
What I want to do:
main article/material - 3111111
variant article 1     - 3111112
variant article 2     - 3111113
variant article 3     - 3111114
So I will just increment the main article by 1 but I want to check thr next available number to see if
its existing or not.
Thank you guys and take care!

Hi ,
You can use the function module NUMBER_GET_NEXT
CALL FUNCTION 'NUMBER_GET_NEXT'
      EXPORTING
        nr_range_nr             = '01'
        object                  = 'Z_PRD'
      IMPORTING
        number                  = lv_number
      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.
pass the number range object of standard of article master ....
Thanks,
Shailaja Ainala.

Similar Messages

  • How check the number range buffers in bw..

    can any one tell me the procedure...
    how to  check the number range buffers in sap bw,,,,can any one help me on this???
    regards

    Please follow the steps mentioned below for checking the number ranges:
    TCODE: /nse37
    FUNCTION MODULE: RSD_CUBE_GET
    Then click F8
    From there I_INFOCUBE : Cube name(Here we can give the cube names from /nrsa1(click on infoprovider on leftside menu…)
    I_INFOCUBE                      Cubename
    I_OBJVERS                       A
    I_BYPASS_BUFFER                 x
    I_WITH_ATR_NAV
    Click on F8
    In Export Parameters : select below one
    E_T_DIME
    There we will get the Time stamp and number range
    Regards.
    Message was edited by:
            cnu babu

  • Internal number ranges  for accounting documents are not updating

    Dear Experts,
    We are existing user of SAP 4.6 C , are facing probelm while posting accounting document , the accounting document number ranges are not getting updated.
    When I post first document it got alloted first number from the interval when i post another document the system showing message Document Number XXXXXXX is already assigned to other document.
    And we have checked through T.C FBN1 and checked the number ranges where first document didn't showing in the alloted number range status.
    Early reply can be highly appreciated.
    thanking you.
    Regards,
    Y.Kiran Babu.

    hi Rajesh,
    check if any document exists with that number in table BKPF. Also check: the number (current number) you see in FBN1 should be the highest existing document number in BKPF (inside the range).
    ec

  • Number range 01 is internal, do not enter a personnel number

    Hi,
    Im using PA40, and when I propose a personal number, the transaction sends this message "Number range 01 is internal, do not enter a personnel number"...  BUT I NEED to propose a personal number for my employees!!!... is it possible???!!!...
    Can anybody help me?...
    Thanks in advance!.
    Alfredo.

    hi alfredo
    see "Number range 01 is internal, do not enter a personnel number"... " if the message comes like this that means that particular number range is set for the internal number range i think so you are giving the personnel number if you remove that personnel number in IT0000 then save this case if you want to take the personnel number internal. if you want to take your personnel number then go to pa04 and assign personnel number range make it as external in the last column you can see there check box just click on that check box. and assign this same personnel number range (for ex you have given in pa04 07-00000000-10000000) the 07 in my example you have to assign in the numkr feature in TCODE PE03. in that assign countrygrouping-company code-personnel area-personnel subarea-ee group-eesubgroup- number range 07. i hope it is clear
    bye
    naveen

  • Error: Number range  for object RESB does not exist

    Hi
    I'm trying to convert a planned order (to purch requisition) partially via trxn code MD04. Upon saving I get the above error msg. The complete text of msg is as  follows. I've maitained the number ranges of all the objects specified in this error msg. Can somebody explain on how to overcome this problem?
    Many thanks
    BE
    Error Msg Text:
    Number range  for object RESB does not exist
         Message no. 61501
    Diagnosis
         The system cannot create a document for an MRP element if no number
         range or interval has been maintained in Customizing of MRP or if t
         number range you have maintained is not allowed.
         Below is a list of MRP elements that are affected:
         Number range object  MRP element
         PLAF                 planned order (operative oder simulative)
         EBAN                 purchase requisition
         RESB                 dependent requirements
         MDSM                 simulative dependent reqmts (long-term plannin
         MDTB                 MRP list
    Procedure
         Check the number ranges in Customizing. If you do not have the necessa
         authorization, please get in touch with your systems administration.

    Hi
    Thanks for the reply. But I have maintained the number ranges for matl. reservations/dependant requirements at OMI2. Here is the screen shot..Do find anything wrong with it? Pl advice.
    NR Object                             MRES/DREQ
    No.                          From Number            To Number          Curr Number          Ext
    01                           0000000001               8999999999           380                    blank
    02                           9000000000               9500000000           blank                  checked
    RB                          9500000001               9999999999           blank                  checked
    Number ranges for the plants are assigned to 01 (0000000001 to 8999999999).
    thanks
    BE
    Edited by: Brian Elfie on Jan 10, 2008 11:27 AM

  • Number range  for object MDTB does not exist - Message no. 61501

    Hi All ,
      I have done the necessary configurations in PP say
    Order Type
    Order Type Dependent Parameters
    Scheduling parameters for planned & production order
    Confirmation parameters
    Availabilty check etc
    and iam able to create planned & production order and confirma the production order.
    I want to configure for MRP: -
    Settings done are
    Have activeted planning file entry for all plants.
    When i run MRP system throws a error <b>Number range  for object MDTB does not exist - Message no.61501 </b>
    Is there anything to do with plant parameters OPPQ and Mrp Group OPPR.
    I just tried plant parameters,standard 0001 is not available for copying.
    Suggest me how to proceed to set MRP.
    Shankar

    Hi shankar
      it is a good practice while creating the plant copying the plant from the standard plant so that all the standard table enteries will be copied  for the plant as the standard plant is not there youcan think of copying from any other plant similar to your plant which has the required entry. else
    in SE16N  check the NRIV table for the Object MDTB. if enteris found then make the table entry with the help of abaper.
    hope this helps
    regards
    SK

  • Number range" A to ZZZZZZZZZZu201D is not replicating to ECC

    Number range" A to ZZZZZZZZZZu201D is not replicating to ECC.
    Number range A to ZZZZZZZZZZ is assigned to u201CAS04u201D Grouping in CRM system and this same number range are configured in ECC system as well.
    I understand that in order to replicate business partner we need to have same number ranges in both the systems and if CRM having external number range, R/3 number range
    Should be internal.
    I found in my systems, external check box is checked for this number range in both the systems.
    I tried to uncheck the external number check box in R/3 system and System gives an error message to u201Center a numeric numberu201D and it doesnu2019t allow me to uncheck the external number check box and save.
    Please advise, can we use alphabetic number range from CRM to R/3?
    Regards,
    Silpa.

    Hi Arup,
    Thanks a lot for your reply,
    Yes, we have configured the same number range in ECC as well.
    We have three account groups in CRM, number ranges configure correctly in both the systems.
    1)AS01
    2)AS02
    3)AS04
    AS01 is replicating from CRM to R/3 fine, but AS02, AS04 Groupings are not replicating to R/3.
    But i found some thing wrong in PIDE settings for AS02, AS04 groupings, below are the PIDE settings.
    CRM->R/3
    Classification/Account Group/Name
    A/AS01/End customer
    B/AS01/End customer
    E/AS01/End customer
    R/3->CRM
    Account Group/Name/Classification/Group/External
    AS01/End customer/B/03/External
    AS02/Agent/B/04/External
    AS04/Trading house/B/05/External
    Kindly note that, for AS04 grouping we would like to use external number range in CRM system.
    Please advise what should i change in PIDE settings?
    Regards,
    Silpa.

  • Error Number range 10 is internal, do not enter a personnel number

    Hi guys, When I try to hiring new emp this message appear Number range 10 is internal, do not enter a personnel number. Why this message appear. I still want to use this emp number. TQ

    Hi,
    While hiring an employee if you want the personnel number to be given by you then go to PA04 maintain number range and mark as external.
    Go to NUMKR feature and assign your Interval No: to your employee sub group & save it.
    Then go to PA40 and enter the Number and maintain the rest of the Info types
    Regards,
    Abhee..

  • Number range  for object BANF does not exist

    Hi Guru's
    I have been trying to convert the Planned orders to Purchase requisition and unfortunately the system consistantly giving me the error as reflected below  despite changing the numbering range on the affectred documents. Please help.
    Number range  for object BANF does not exist
    Message no. 61501
    Diagnosis
    The system cannot create a document for an MRP element if no number range or interval has been maintained in Customizing of MRP or if the number range you have maintained is not allowed.
    Below is a list of MRP elements that are affected:
    Number range object MRP element
    PLAF planned order (operative oder simulative)
    EBAN purchase requisition
    RESB dependent requirements
    MDSM simulative dependent reqmts (long-term planning)
    MDTB MRP list

    Hello,
    You can define number range for Purchase requistions in OMH7 transaction agaist each number range number and you assign can assign these number range number to your purchase requistion document types in SPRP >> Materials management >> Purchasing >> Purchase requistion >>Define doucment type.
    E.g for NB doc type number range number is 20
    and in OMH7 number range number 20  has interval from- 2000000000 to 2099999999
    same way
    for RV doc type number range number is 21
    and in OMH7 number range number 21  has interval from- 2100000000 to 2199999999
    Regards,
    Shailesh

  • 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.

  • Check a number range with date range.

    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.

    990690 wrote:
    i have table test which is having column
    Start Range
    End Range
    Start Date
    End date
    how can i check start range and end range does not exists b/w existing record also with date range of this record.
    end date can be blank also.Your question makes absolutely no sense whatsoever. We could make guesses, but then we may be wrong in our guesses.
    Please provide sufficient details for people to be able to help you. Read the FAQ: {message:id=9360002}

  • Assign number ranges

    Hi
    i am having a problem in migo(Number range 49 missing) can anyone let me know how to fix it

    Hi
    Goto SPRO-> Material Management->Inventory mgmt & physical inventory->Number assignment->define number assignment for accounting documents.
    click on fist one financial accounting document types select WE & check for number range 49 (if it is not there enter 49) then come back & click on
    financial accounting number ranges enter your company code click on intervals
    check for number 49 if it is not there insert number range for 49.
    Regards

  • Copy, delete, check personnel subarea and Number ranges

    Hi All,
    I am creating a new personnel subarea using copy the personnel subarea in enterprise structure definition.
    (Copy, delete, check personnel subarea)
    While doing this I am getting prompt about number ranges over writing issue.
    It seems that number ranges in production system may get affected due to this transport.
    So I am planning to note all the available number ranges in production system before transport and reset similar as earlier after the transport directly in production
    OR
    set number ranges in development similar in production then to transport to production.
    Please comment on the above approach.
    I am planning to check on the following number ranges only
    Tcodes u2013OONR ( for OM)  and PA04 (for PA)
    Can you suggest in case if any other number ranges to be taken care?
    Regards
    Thomas

    Hello,
    Do you have another option for the copy  : Copy (without reference) ?

  • Issue on Number Range for MRP Purchase Requisition

    Hi Gurus,
    Please help me on the issue explained below.
    We are already using SAP ECC 6.0 and SRM 5.0 and now we are implementing Plant Maintenance Module.As a result of this implementation ,we have created number of PR document types and assigned to unique number ranges in ECC. One of these document types has been maintained for MRP group for a material type in order to identify the MRP purchase requisitions created on the shortage of the materials for these material types.
    This functionality is working fine. MRP run for the materials is picking the appropriate PR document but number range of the document is not the same what was assigned to the linked document type.Some other number series is getting picked by system .
    There is setting under SPRO Consumption Based PlanningNumber RangesPurchase Requisitions
    Here, number range assignment is against plant. This is the same number range which is being taken by system on running MRP. But the desired number range is the one which has been linked to PR document type.
    If I change the number range above then number range for MRP PR in present system will get affected..
    Can you please advise me on above so that PR generated on MRP run should have appropriate number range?
    Thanks & Regards,
    Niti

    Hi,
    As per my understanding, what you have mentioned above is exactly the way SAP is designed. Its SAP Standard behaviour.
    But if you check your PR document type - no:range & the CBP no:range both will be same only since both refers to the same object.
    Please check the PR document type that you have assigned in the CBP & its no:ranges.
    Thanks & Regards,
    Ram

  • Excise invoice number range - for selling to SEZ

    Dear All,
    While creating excise invoice for selling in SEZ unit, Excise invoice type is taking Deemed instead of LOU.  Because of this system is asking to allocate number range using J_1IEXLOC number object. Series group is 12 for EXPORT. As selling to SEZ is export under LoUwe would like to use number range in combination series group 12 and   number object J_1IEXCEXP which is already maintained for export under LoU.
    Please give solution as soon as possible.
    Regards,
    Sagar

    Dear Sagar,
    Because in case of SEZ, they get a special status by the Tax authorities in which various Tax scenarios doesn't come into picture, they can be a export oriented org and so get exempted from duties like Excise etc in normal scenarios but the SAP system picks the number range object J_1IEXLOC or J_1IEXCEXP based on your ship to party..and some other factors...so obviously in deemed export your ship to party will be within India, check with your ABAPer...that is why in case of deemed export J_1IEXLOC is getting picked by the system.
    In case you want to change..you need to write a exit..say for these kind of customers..maintain a seperate customer group..and from that system should check which number range object should be picked.
    Thanks,
    N

Maybe you are looking for

  • Multiple OS on a single VM

    Is it possible to have multiple OS on a single VM? I want to use two window servers; therefore, do I need to buy two VMs or can I have both the servers on a single VM? Thank you! Ginni Atul Sharma Ginni Atul Sharma

  • Function Keys (fn+F2, fn+F3 and fn+F4) doesn't work

    Hello. I have ProBook 4730s and today i cant use my hotkeys for brightness and for external monitor. I need help for this trouble. I already reinstal HP hotkey driver an even graphic control driver but this did not work. Any other solution? I use thi

  • Manual creation of PPDS PPM in SCC03

    Hello Experts We are currently in process of experimenting PPDS PPM, since we have multiple components to sourced and produced from subcontractor. I need a step by step instruction of how to create manual PPDS PPM. I did tried SCC03 and create Activi

  • JPD Document Upgrader options in Weblogic 10.3.1 not working

    Anybody have any idea why this option is not working in weblogic 10.3.1?

  • Move Page at runtime

    Hi, i will create a new page at runtime. I have a form with 2 page: form1           P1           P2 I make a button with this code to duplicate the page: form1.P1.occur.max = "2"; form1.P2.occur.max = "2"; form1.P1.instanceManager.addInstance(true);