Regarding Number Generation

Hi Experts,
I am SAP MDM Consultant and have recently come across this issue pertaining to number generation,need your expert guidance to solve it.
Problem Definition : In our landscape Number generation takes places through a BAPI function call to ECC system,This data is then filled in the form and then on submission data gets saved in MDM.Later the same gets syndicated to ECC after enrichment and approvals.Recently in dev system we have encountered Duplicate Vendor number in MDM system.MDM is not generating number,its the BAPI call from ECC which does this.I think some previously used numbers must have be released for use and the same has been used by BAPI.
So,can you please guide what can be reasons of inconsistent number generations and which methods are used to release the same unused numbers for use?
Quick help will be appreciated.
Thanks,
Ravi

.I think some previously used numbers must have be released for use and the same has been used by BAPI.
SAP has no process to release old numbers,
There is a function module to get the next number: 'NUMBER_GET_NEXT'
It just uses the  the number range number and the number range object and reads then the next number from the number range table NRIV.
Usually you cannot create duplicates, SAP ends in a dump.
So I guess your problem is created by either resetting the number range in ERP production system manually, or somebody transported the intervals from DEV to PROD system despite of the endless warnings, which obviously has then the lower current number as you usually have not as much materials in a DEV system like in a PROD system.
It can already be years ago that a number range was resetted, and you are just approaching  numbers that are already used.
You have to analyze the numbers in MARA table  and compare it with the number range intervals and their current number.

Similar Messages

  • Regarding Number generation in a customized screen

    Hi All,
    I need to create a customized screen where after saving data a document no will be generated like PO/SO.
    Please help me how to solve it.
    Thanks
    Debraj

    Hi Debraj,
    You can generate a sequential number when ever user saves the record using function module 'NUMBER_GET_NEXT'.
    Firstly, Go to transaction SNRO and create a new Number range object. Here you can define the range of the numbers. say 'WXYZ'.
    Pass this to the import parameter object of the function module.
      CALL FUNCTION 'NUMBER_GET_NEXT'
        EXPORTING
          nr_range_nr             = '01'
          object                  = 'WXYZ'
        IMPORTING
          number                  = l_next_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.
      IF sy-subrc <> 0.
    Do Nothing
      ENDIF.
    The export parameter 'number' gives us the next sequential number.
    So when you click on save. Call this function module and get the next number and save it.
    Hope this helps.
    Do let me know in case you need any more details.
    Regards,
    Sravan Varagani

  • Number Generation Failure While Reversing Sub. Challan

    hi all,
    While reversing the sub contracting Challan, I am getting this Error "Number Generation Failure". Kindly guide where to maintain the Number range & Object.
    regards
    Dhinakar

    Hi Jeyakanthan,
    Thanks for your response
    I maintaned number range for object : J_1i57c in T.cde j1i9....
    still it is showing the same error.....
    hope to hear back from you......
    Thanks&Regards,
    Chand

  • How to Create an Custom Employee Number Generation ...

    Dear Friends,
    We are Implementing HRMS Suite Version12i, for one of the Client in Middle east.
    One question about Custom Person Numbering.
    How to create custom employee numbering Based on the User Person Type?
    Example:
    Two person types
    o Permanent Employee
    o Probationary employees
    We Need to give two different numbering schemes for each person type.
    eg Permanent Employee will use a seq begin 100000 whereas Probationary employees (other user type) will use a sequence beginning 200000.. Can any pls let me know how to handle the Custom Employee Number Generation (with Setups)
    With regards
    Swpana

    Hi,
    Could you please help me to write/or send a sample of a Person Number Generation Formula.
    I don't see the noteid : 279458.1 on metalink,I get the following message:
    Article or Bug cannot be displayed. Possible reasons are:
    The article Id or bug number was entered incorrectly. Please check and try again.
    The article Id or bug number does not exist (was referenced incorrectly).
    The article or bug is not classified as publicly accessible ("non-public").
    The content is being updated and it is temporarily unavailable but will be made available again soon.
    If you still have questions about why you could not access this article or bug, please use Feedback.
    Please help!!

  • Serial number generation

    Hi friends,
    I have a question regarding the serial number generation.
    1. In serial number generation  do we have option of generating either when creating and releasing the production order or when doing the GR for the production order.
    If yes, please let me know how we can do that.
    2. If we have the serial number activiated for the material can we use auto goods receipt for the material?
    Thanks and regards,
    Satish

    Dear Satish,
    Go to OIS2 and create the serial number profile which will be later assigned to the material master.
    Select the serial number profile and select serializing procedure
    Here,select "PPAU Serial numbers in PP order" and enter the value as desired in serial number usage column.
    Similarly you can try for order release.
    We cannot activate auto GR for the items with serial numbers.
    regards,
    Joseph Charles Vaikathussery

  • Enhancement for Automatic Serial Number Generation

    Hi,
    Has anybody worked on the enhancement iqsm0001?
    If so, please give me some idea on how to use this enhancement for automatic serial number generation.
    Thanks for your kind help.
    Regards,
    Renjith Michael.

    Hi Renjith,
    You can check the following link, Hope it helps you to some extent:
    Re: Implement unique serial number within a client
    And you can also try user exit EXIT_SAPLIPW1_001 for Automatic serial number assignment.

  • Automatic Batch Number Generation in tcode MIGO...

    Hi Experts,
                     There is automatic Batch Number is generated  after clicking on Pushbutton  "Check" in transaction code MIGO. Instead of that user want Batch Number Generation after clicking on Pushbutton "Post" . Can anybody tell me the procedure for the same..
                    Thanks in advance.
    Best Regards,
    Vinayak

    HI Vianayak,
    You can implement a Badi for your logic.
    You can implement Badi :MB_MIGO_BADI and write your logic in method CHECK_ITEM .
    Here you can restrict the Batch number based on Fcode for the Check and Post buttons.
    Like if the user click on Check button: based on the fcode for the check button u can restrict it and similarly if the user click on Post button you can pass the value for Batch number. This method get called in both the cases.
    Hope this solves your problem.
    Regards,
    Satyam

  • Sequnce Number generation in Message Mapping..

    Hello All,
    I am using this thread as a reference for declaring a Counter for unique sequence number generation...
    Sequence Number in XI Mapping
    -> define a global variable by clicking the JAVA_SECTION_TOOLTIP icon on the design tab of source message type of ur message mapping.
    enter the following in the GlobalVariables Section
    Integer counter =0;
    -> define a user defined function (SeqGen let's say)
    write the following code in it.
    Integer seq = 0;
    GlobalContainer globalContainer = container.getGlobalContainer();
    a = globalContainer.getParameter("counter");
    seq = globalContainer.getParameter("counter");
    seq = seq + 1;
    globalContainer.setParameter("counter",seq);
    return a;
    now use this user defined function (SeqGen)in all ur mappings to the sequence no of ur line items.
    If u could just elaborate on creation of UDF.. on what are we goin to pass in the variable 'a'...  while creating the UDF. ??
    Harpreet..!!

    Hi harpeet,
    A UDF can be of two types a  Simple UDF and Adavnced UDF.
    This is a case of a simple UDF,
    A simple UDF returns only 1 element  as  an output. 
    here 'a' is such an generated output.   you can assign this to any numeric filed of ur target stucture
    This UDf does not require any input Field from the message. 
    These functions are known as generating functions.
    Hope this explains.
    Reward points if useful.
    Regards,
    Abhishek

  • Material Document number generation

    Hi,
    The transaction GI, Trsfr Posting, Other Goods Movement is clubed to a wide category of Trans./Event Type(WA).So all the three documents has  been generated under a single number range.
    Still further based on certain specific mvt.types(transactions) can i  segregate the number generation to identify the transactions uniquely.
    Regards,
    Milton.I

    Hi
    The number range is generated for the trans/event type. One cannot have number range for specific movement type.
    Rgds
    SVJ

  • Lot number generation when ever GR is done

    Dear All,
    As there is a requirement like Lot number generation when ever GR is done.
    For each material Lot Number is defined by the client.
    And there is partial receipt of Goods.
    Whenever you do GR system automatically generates Lot number.
    So we need when ever we do GR system should generate Lot number once the
    Lot size as defined is completed.
    Regards,
    Veeresh

    When a material is batch managed, and you do GR, either you specify the batch ID, or, if not, system will generate one. There are some exceptions, like when you do GR from production order, and have created the batch ID in advance in the order.
    Otherwise, if you want to have some kind of private logic of the kind, you'll need to employ a user exit.

  • Automatic number generation using the function module

    Hai Everyone,
    I have the doubt in automatic number generation.
    i find the function module. the function module is
    report 123.
    *DATA: RC         LIKE INRI-RETURNCODE,
         NUMBER(10) TYPE C.
       CALL FUNCTION 'NUMBER_GET_NEXT'
            EXPORTING OBJECT          = 'HUGO'
                        NR_RANGE_NR     = '01'
            IMPORTING RETURNCODE      = RC
                        NUMBER          = NUMBER.
      CASE RC.
        WHEN ' '.
         everything o.k.
        WHEN '1'.
         the assigned number lies in the critical area.
        WHEN '2'.
         this was the last number, next time the first number
          will be assigned
      ENDCASE.
      write:/ number.
      in that function module what i want to give the  Exporting Object  'HOGO'. where i want to define the number range. what is meant by 'HOGO'.
    If any one faced the same problem plz help me.
    Thanks and regards,
    P.Naganjana Reddy

    Hai Chandrasekhar,
    in that what i have to give. Plz help me in this.
    Subobject data element
    To-year flag
    Number length domain
    No interval rolling
    Number range transaction
    Warning %
    Main memory buffering
    Group table
    Subobject field in group table
    Fld  NoRangeElement
    Fields int./ext. no.range no.
    Fld. NoRangeNo
    Display element text
    Thasnks and regards,
    P.Naganjana reddy

  • User exit after invoice number generation

    Hello,
    I need to fill the VBRK-XBLNR field with invoice number during creation of invoice.
    Can any one tell me if there is any user exit available after the number generation.
    Thank you!
    Best regards
    Sasi

    Hi Sasidhar,
    You can test whether the following Exit is applicable or not - using break-point --
    Exit Name           = V05N0001
    Function Module = EXIT_SAPLV05I_004
    Include                = ZXV05U04
    Kindly update us also.
    Thanks.
    Kumar Saurav.

  • Automatic employee number generation

    Hi,
    When installing Oracle HR, we had choosed manual employee number generation and then we changed to the automatical mode. Now, we need to return back the the manual mode.
    I ask if there tips to do that?
    best regards,
    Mourad.

    Pl see MOS Doc 452044.1 (Unable to Switch From Auto to Manual for Employee Number Generation in Shared Hr)
    HTH
    Srini

  • CProject Number generation

    Hi All,
    Like in PS wherein the number range is specified and the project numbers get generated automatically. Is the same thing possible in cProjects 4.0.
    I dont enter the name/number in the project definition, but i want the number to be generated automatically. Is this possible.
    Thanks in advance,
    Regards,
    Amit

    Hi,
    Can we specify a project coding mask similar to what we do in SAP PS for number generation for the Project definition.
    Can we restrict the users to use the same defined project coding mask as in SAP PS.
    Thanks in advance
    Amit

  • What algorithm does Excel 2010 use for Pseudo Random Number Generation (MT19937?)

    Does Excel 2010+ use the Mersenne Twister (MT19937) algorithm for Pseudo Random Number Generation (PRNG), implemented by the RAND() function?
    This has been a nagging question for some time now, with "hints" that it indeed does.  However, a relatively thorough search turns up no definitive documentation.  The most direct indication is perhaps given by Guy Melard [Ref 9] where
    he tests Excel 2010's RAND() function using the Crush battery of tests in TestU01 by L'Ecuyer & Simard.  Melard references a "semi-official" indication that Microsoft did indeed implement MT19937 for the RAND() function in
    Excel 2010, but this reference no longer seems to be available. http://office.microsoft.com/enus/excel-help/about-solver-HP005198368.aspx?pid=CH010004571033.
    The other references below [Ref 1-10] document the history of the statistical suitability of the PRNG and probability distributions in various versions of Excel.  This includes the Wichmann-Hill PRNG implementations supposedly (arguably) used in
    Excel 2003 & 2007 for random number generation.  But still, we have no answer as to which PRNG algorithm is used in
    Excel 2010 (and 2013 for that matter).
    Microsoft indicates that RAND() has been improved in Excel 2010; Microsoft states, "...and the RAND function now uses a new random number algorithm." (see https://support.office.com/en-ca/article/Whats-New-Changes-made-to-Excel-functions-355d08c8-8358-4ecb-b6eb-e2e443e98aac). 
    But no details are given on the actual algorithm.  This is critical for Monte Carlo methods and many other applications.
    Any help would be much appreciated. Thanks.
    [Ref 1] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 97. 
    Computational Statistics & Data Analysis. Vol. 31 No. 1, pp 27-37. July 1999.
    http://users.df.uba.ar/cobelli/LaboratoriosBasicos/excel97.pdf
    [Ref 2]L. Knüsel.  On the accuracy of the statistical distributions in Microsoft Excel 97. Computational Statistics & Data Analysis. Vol. 26 No. 3, pp 375-377. January 1998.
    http://www.sciencedirect.com/science/article/pii/S0167947397817562
    [Ref 3]B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2000 and Excel XP. 
    Computational Statistics & Data Analysis. Vol.40 No. 4, pp 713-721. October 2002.
    https://www.researchgate.net/publication/222672996_On_the_accuracy_of_statistical_procedures_in_Microsoft_Excel_2000_and_Excel_XP/links/00b4951c314aac4702000000.pdf
    [Ref 4] B. McCullough, B. Wilson.  On the Accuracy of Statistical Procedures in Microsoft Excel 2003. 
    Computational Statistics & Data Analysis. Vol.49. No. 4, pp 1244-1252. June 2005.
    http://www.pucrs.br/famat/viali/tic_literatura/artigos/planilhas/msexcel.pdf
    [Ref 5] L. Knüsel. On the accuracy of statistical distributions in Microsoft Excel 2003. Computational Statistics & Data Analysis, Vol. 48, No. 3, pp 445-449. March 2005.
    http://www.sciencedirect.com/science/article/pii/S0167947304000337
    [Ref 6]B. McCullough, D.Heiser.  On the Accuracy of Statistical Procedures in Microsoft Excel 2007. 
    Computational Statistics & Data Analysis. Vol.52. No. 10, pp 4570-4578. June 2008.
    http://users.df.uba.ar/mricci/F1ByG2013/excel2007.pdf
    [Ref 7] A. Yalta. The Accuracy of Statistical Distributions in Microsoft<sup>®</sup> Excel 2007. Computational Statistics & Data Anlaysis. Vol. 52 No. 10, pp 4579 – 4586. June 2008.
    http://www.sciencedirect.com/science/article/pii/S0167947308001618
    [Ref 8] B. McCullough.  Microsoft Excel’s ‘Not The Wichmann-Hill’ Random Number Generators. Computational Statistics and Data Analysis. Vol.52. No. 10, pp 4587-4593. June 2008.
    http://www.sciencedirect.com/science/article/pii/S016794730800162X
    [Ref 9] G. Melard.  On the Accuracy of Statistical Procedures in Microsoft Excel 2010. Computational Statistics. Vol.29 No. 5, pp 1095-1128. October 2014.
    http://homepages.ulb.ac.be/~gmelard/rech/gmelard_csda23.pdf
    [Ref 10] L. Knüsel.  On the Accuracy of Statistical Distributions in Microsoft Excel 2010. Department of Statistics - University of Munich, Germany.
    http://www.csdassn.org/software_reports/excel2011.pdf

    I found the same KB article:
    https://support.microsoft.com/en-us/kb/828795
    This was introduced (according to the article) in Excel 2003. Perhaps the references in notes 2 and 3 might help.
    The article describes combining the results of 3 generators, each similar to a Multiply With Carry (MWC) generator, but with zero carry. MWC generators do very well on the Diehard battery of randomness tests (mentioned in your references), and have
    very long periods. But using zero carry makes no sense to me.
    Combining the three generators only helps if the periods of the 3 are relatively prime (despite what the article implies). Then the period of the result will be the product of the 3 periods. But without knowing the theory behind these generators, I have
    no idea what the periods would be. The formulas for MWC generators fail here.
    Richard Mueller - MVP Directory Services

Maybe you are looking for

  • Error installing Itunes

    I have a problem with installing Itunes for my Windows 7. When i try to install it comes up with this error: An error occurred during the installation of assembly 'Microsoft.VC80.CRT.type="win32".version="8.0.50727.6195".publicKeyToken="1fc8b 3b9a1e1

  • Problem with Binary Search.

    Hi Gurus. I am using binary search to read data from internal table with approx more than 3lacs records. Also my table is sorted by BUKRS BELNR. But the problem is that i am getting records from lower half of table only and first half of table is ign

  • How to connect SGE2010 switches

    I have purchased a SGE2010 and a SGE2000P switches.  I wish to connect these two switches together.  Do I need to buy a MGBT1 mini-GBIC and connect them that way, or can I just use a switch port on each switch and connect them that way?  Is the MGBT1

  • I need a reset button ... and can't find it ...

    I have previously had no problems in connecting PB to PC and exchanging files. The last time I did so I got an error message - which I suppose I should have taken the time to read, analyze, act upon, etc.  However I did not. Now on connection (both d

  • Need Help with Creative Suite 6 Design Standard.

    I was working with a tech named Ashok Kumar Mohanty. I was sharing my screen with him and trying to install Creative Suite 6 Design Standard. We lost each other. He had me set up a new administer account but I can't get online with it because it has