Number Generation for GR

Hi all..
Is there any user exist to generate document numbers(based on plant) for GR creation instead of standard numbers.
Thanks in advance,
Regards,
Sweeeeeeeeeeethaa

we have two options for Number ranges  1.internal and Extermal. In second option u can have BADI for generatiing Numbers .i am also checking where we can maintain ? check OMJ6 For GR number range or SNUM
Message was edited by: Prabhu Peram

Similar Messages

  • Serial Number generation for the records in a Z-Table

    Hi,
    I have created a Z-Table to store Request Details. User provides the details of the request.
    when ever user saves the Request i will generate the Request Number.
    My Constraint is these Request Numbers must be in serial.
    I don't want to hit the database every time to know what the Latest Request Number is? Because these requests would be in thousands. Please suggest me the better way.
    Thanks,
    Sekhar.J

    u can do this by using Number Range...
    Maintain number range and intervals in transaction code SNUM
    Coding...
    call function 'NUMBER_RANGE_ENQUEUE'
             exporting
                   object              = 'ZOWNNO'   "Create with SNUM
             exceptions
                   foreign_lock        = 1
                   object_not_found    = 2
                   system_failure      = 3
                   others              = 4.
      if sy-subrc ne 0.
    *   message e086 with 'Lock error' sy-subrc.
      endif.
      call function 'NUMBER_GET_NEXT'
             exporting
                   nr_range_nr         = wnorange
                   object              = 'ZOWNNO'
                   subobject           = wsubobj
             importing
                   number                  = wdocno  "Number generated by SAP
             exceptions
                   interval_not_found      = 1
                   number_range_not_intern = 2
                   object_not_found        = 3
                   quantity_is_0           = 4
                   quantity_is_not_1       = 5
                   internal_overflow       = 6
                   others                  = 7.
      if sy-subrc ne 0.
    *   message e086 with 'Number Range' sy-subrc.
      endif.
      call function 'NUMBER_RANGE_DEQUEUE'
        exporting
          object                 = 'ZOWNNO'.
      if sy-subrc <> 0.
        MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                 WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

  • 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

  • Problem on forms for serial number generation with last record next_record.

    Hi Experts,
    currently i'm facing one problem like :
    i'm populating one receipt detail in Multi block , like when user key in one receipt number that time record should go in first record ,and if they key in second receipt number then record should go in second record . mean to say every time record go in last record ..but the problem is i want to generate Serial no correspondence to every last record ..
    here is my approch :
    cursor c1 is
    select * from table
    where cname =:blk_name.clm_name.
    Last record;
    next_record;
    for v1 in c1 loop
    processed record;
    next_record;
    end loop;
    last_record;
    go_block(___);
    first_record;
    :sno := system.cursor_record ;
    next_reocrd;
    end loop;
    first_record;
    And in block level i'm writing code for Serial number generation when user key in manual entry for receipt detail:
    :blk_name.coulumn_name := :system. cursor_record;
    so in this approach their is no problem it is working properly but the problem is that
    when user fetch one receipt automatically and then after he want to enter next record manually and he decided to go in detail block ,
    and once he reached in detail block that time block level trigger i firing .ans serial number 2 generated and then suddenly he came to know no i want to fetch next record automatically mean to say now user going again master block and fetching next receipt detail ,
    but the problem is when user leaving seccond sr no and going in master block and population next receipt detail that time cursor going on 3 record
    but logically have to replace the second Serial no and generate the again serial number 2 record population .mean to say its not refreshing last_record..
    so i'm appreciating is anyone if came accoross this type of issue please corrrect my code and send updated code ..plsssssssssssssssssssssssssssssss
    Thanks
    Abhishek
    [email protected]

    hi
    I put this below code on when_new_record_instance on block level..
    :blk_name.column_name :=system.cursor_record;
    so can you please help me.....
    Thanks
    Abhishek

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

  • Same number range for two different series groups?

    Dear all,
    There are two scenarios
    1.Normal export under bond case, series group is 20 and number range maintained,running number is 300016
    2.Another scenario,where ARE1 document generation for Deemed exp customer(already customised) , series group is 30.
    But, client requirement is , for this second scenario also, system should pickup running number range of series group 20(under bond case)  as per excise legal requirement
    Ie running number is for series group 20 is 300016
    For the above deemed exp case (second scenario)it should pickup 300017
    And again when they do under bond case(first scenario), it should pick up 300018 like that
    Is it possible to maintain the same number range for two different series groups(20 and 30)?
    Even if you maintain the same number range for 30, as per running number range of 20
    Will the system update simultaneously the same number range for 20 and 30 series groups?
    Please suggest the way.

    With two different series groups, it is not possible to have the same number range. Even if you maintain it, they will be treated independently.
    Normally, you should not use different series groups if the same number range has to be used. In fact, the concept of series group has been developed to ensure that number ranges can be maintained separately.
    Regards,
    Aroop

  • EDI Error : "Number assignment for ML document is incorrect"

    Hi All,
    We are getting the below error in EDI invoice generation.
    "Number assignment for ML document is incorrect".
    We have checked the number range for Material Ledgers. And the status is fine.
    We are using EDI for Inbound invoice creation.
    Can any body please guide us to solve this issue?
    Regards
    RS

    Hi Srikanth,
    The document types are assigned to the Parnter. But how will it be related to the Material Ledger.
    We are getting the error while number assignment for Material Ledger Document.
    Did we miss any settings are missing related to Material Ledger?
    Regards
    RS

  • Number Generation & Remote Key Updation

    Hi Experts,
    We have a scenario of integrating MDM with SAP and 3 Non SAP systems
    All the systems have the same number range for the account types
    Whenever there is a request , a copy should always go to SAP plus the requested system
    Doubt:
    The request comes to the import server and the requirement is to automate it
    Now the question is how to generate the number in main table and it should update the key mapping of 2 remote systems automatically
    Kindly help
    Regards,
    Antony

    Hi Antony,
    As you have 4 remote systems, one SAP and 3 non-sap systems, you need to create 4 remote systems in MDM Console ( as shown in page 3/10, 1.2 Create/modify the remote system u201CSAP R/3u201D and specify type as u201Cinbound/Outboundu201D and key generation as u201CQualified Rangeu201D in below article).
    While syndicating you have to select remote system one by one as it is shown here for SAP R/3 (on page 5/10, 2.5 Specify the type as u201CFlatu201D and remote system same as created in step 1.2 : u201CSAP R/3u201D ), you need to do it for all the 4 remote systems one by one. you need to be carefully map remote key for all of these remote systems as shown in section, 4.2 The u201CSAP Material Numberu201D field, which is to be generated during syndication, is to be mapped to the remote key field u201CValueu201D.
    For complete understanding, Please refer the below Article.
    [Using qualified ranges to generate SAP numbers|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/807ce1ba-94c0-2a10-a398-afdfd8135ebd?quicklink=index&overridelayout=true]
    Regards,
    Mandeep Saini

  • 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

  • Process Order Batch number generation at the time of order creation

    Dear All,
    I m facing some issue at the time process order creation:
    Current Settings:
    1. Batch Number Creation at the time of order create.
    Reason for this setting: Release of order is done  by releasing operations one by one, therfore batch number will be generated on the final operation release, thats why we set up batch creation at the time of order create.
    2. For FG batch number generation there is a program that copy the SFG(in Order BOM) Batch number to FG. ITs a industry requirement.
    Problem:
    when we create FG order system generate the error message at the time of order creation tht No batch could be determine.
    Please suggest the solution
    Thanks,

    Hi
    Hope you have cretaed Batch serch strategy in COB1
    U need to maintain it as per your strategy type.

  • OMX4 - FBN1 - Number range for Material document and FI document

    47 - is for FI document number range in Material ledger FBN1.  OMX4 gives number range for Material document.  My question is how big the number range must be?  Since thousands of Materials involved, I couldn't imagin this?
    Anybody knows, how to determine the size of no. ranges in Material Ledger configuration?  SAP simply says, check no. ranges whether it meets the requirement....
    I don't expect an answer again, just check your business, how many transactions would be in a period, which is not quantifiable now?
    I would like to understand this from somebody's experience of using insufficient or excessive no. ranges, especially in this area.
    Cheers,
    Ashok

    What is the number range you are using? Year Dependent or Independent?
    When you don't know the document number consumption pattern you should use Year dependent number range in both OMX4 & FBN1. Observing this for a month will give a rough Idea and observing for a Quarter will give you a fair Idea and the result for a year gives almost near to accurate consumption of number ranges.
    The generation of documents is dependent on the number of materials and Profit centers involved. As much as possibe use Summarization at profit center level when posting to FI. This will reduce the number of documents and line items that are getting generated.

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

  • Enq: TX - row lock contention in forms 10g sequency number generation

    Iam Getting the Deadlock issue in oracle formdeveloper 10g database is 11g Acutually in our small Hospital organization using different forms generating entrying labrequest form finally save time
    one sequency number will generated i have give procedure below every save criteria form using below procedure some time iam getting lock iam using blocksession query i have find out some
    OSUSER
    MACHINE
    TERMINAL
    PROGRAM
    SQL_ID
    LOGON_TIME
    BLOCKING_SESSION_STATUS
    BLOCKING_SESSION
    EVENT
    user423
    UMCCDOM\LEVEL4-MICU
    LEVEL4-MICU
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 11:34:41 AM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 11:32:50 AM
    VALID
    186
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    22/09/2013 2:49:47 PM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 7:00:22 AM
    VALID
    186
    enq: TX - row lock contention
    user290
    UMCCDOM\LEVEL2-N
    LEVEL2-N
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 10:28:06 AM
    VALID
    277
    enq: TX - row lock contention
    lock are happen after open the code i have find out used FOR UPDATE in procedure please tell me any alternative for this every labrequest form saving time using this procedure for generating prefix sequence number multiple user using with different systems
    PROCEDURE   Gsp_GenSeqNum (I_SvPrefixCd IN VARCHAR2,I_SvUserName IN VARCHAR2,
                              O_SvSeqNum OUT VARCHAR2) IS
    --This Procedure generates the sequence number
    --by retrieving the prefix based on the code
    --supllied to the procedure.
      CURSOR  crSeqGenerator IS
             SELECT Gsn_prefix_last_num, Gsn_prefix_year
                FROM G_SEQUENCE_NUMBER
             WHERE Gsn_prefix_Cd = I_SvPrefixCd
                   AND Gsn_prefix_year = TO_CHAR(SYSDATE,'YYYY')
      FOR UPDATE OF Gsn_prefix_last_num;
      udSeqNum        G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udNextSeqNum    G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udYear          G_SEQUENCE_NUMBER.Gsn_Prefix_year%TYPE;
      udPrefix        G_SEQUENCE_PREFIX.Gsp_Prefix_Value%TYPE;
    BEGIN
      SELECT Gsp_Prefix_Value
      INTO udPrefix
      FROM G_SEQUENCE_PREFIX
      WHERE Gsp_Prefix_Cd = I_SvPrefixCd;
      OPEN crSeqGenerator;
      FETCH crSeqGenerator
       INTO udSeqNum,
            udYear;
      IF crSeqGenerator%FOUND THEN
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum     := udPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                                   ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      ELSE
    INSERT INTO G_SEQUENCE_NUMBER VALUES(I_SvPrefixCd,TO_CHAR(SYSDATE,'YYYY'),0,I_SvUserName,SYSDATE);
         udSeqNum      :=0;
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum:=UdPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                             ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      END IF;
      UPDATE G_SEQUENCE_NUMBER
         SET Gsn_Prefix_last_num=udNextSeqNum
       WHERE Gsn_Prefix_Cd = I_SvPrefixCd
         AND Gsn_Prefix_year=TO_CHAR(SYSDATE,'YYYY');
      CLOSE crSeqGenerator;
    END Gsp_GenSeqNum;
    Thanks
    subbu

    This application is inbuit with some modules VB (cath ,cardio)and oracle forms for required sequence number generation different time used this procedure whereever required the sequence Prefix generation.If i replace the procedure sequene to oracle standard sequency if the user cannot save the form unnessary sequency generated order is missing from sequence.

  • 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

Maybe you are looking for

  • Mac vs. PC differences

    I get different results when viewing my form on mac and pc. Form created with Designer 7,0,041126,0 on a PC. Viewing on pc with Acrobat 7.0.8. Viewing on mac with Acrobat 7.0.3. Also, I am new to scripting with FormCalc. I have two calculated numeric

  • Formulas, superscripts and subscripts with Pages on iPad?

    How to write formulas, superscripts and subscripts with Pages on my iPad? Do i need a third part app? If so, could anyone suggest one? Thank you!

  • Problem getting mail to work

    I have all the account settings correctly set up for a TalkTalk account and have sent and received messages via TalkTalk webmail but I cannot get iPad mail to work. Any suggestions please.

  • File 2 RFC

    Hi, I wrote RFC Func. Module in R/3, with just a Remote Enabled func module and code i gave is Using SE37 Func Module Name: <b>ZDumpData</b> ZTakeData is the Table name in R/3. In Tables Tab: ITAB      LIKE    ZTakeData In Source Tab: insert ZTakeDat

  • Imac 2012. screen goes dark in the middle of working.

    while working on the imac the screen goes dark. to turn it back on hittingseveral keys and short tap on in/off button. after trying vsarious things it turns abck on and then happens againg. like its going into sleep mode intentionally? any ideas?