Auto batch number creation on CO15 GR

Hi experts,
Can you guide me how to setup CO15, where during confirmation and auto GR of FG, system can supply a Batch Number (via specific logic in exit) automatically?
Thank you!

CO15 is the production order confirmation screen  and  if you acitvated AUTO GR for the order and if the material is batch managed ,  you should have configured  batch internal number active,  system will create a batch number automatically.
Based on where you have created user-exit  ( if it is part of batch creation  BADI),  that should also kick in.
You can also look in creation of batch at the production order level itself when the order is released. 
cheers
Rav
Edited by: Rav on Jan 6, 2011 11:24 PM

Similar Messages

  • Automatic Batch Number Creation

    Dear All,
      is it possible to create automatic batch number creation through DI API..? tell the me the solution to create Automatic batch number..
    Thanks in Advance

    Shankar,
    If you have SDK samples, you will be able to find the 04.SerialAndBatch sample that explains what you want.(usually located at \Program Files\SAP\SAP Business One SDK\Samples\COM DI\VB.NET\)
    still have doubts, post back.
    Binita

  • Batch Number creation through DIAPI

    Dear all,
         i tried batch number creation through DIAPI.. but its shows error message [WTR1.Whscode][Line:1],'No matching Records found(ODBC-2028)' any body helpme  in this regard..
    thanks in advance.. here i have attached my coding..
    Dim objLines As SAPbobsCOM.StockTransfer_Lines
            objForm = objAddOn.objApplication.Forms.Item(FormUID)
            Dim objStockTransfer As SAPbobsCOM.StockTransfer
            objStockTransfer =    objAddOn.objCompany.GetBusinessObjectSAPbobsCOM.BoObjectTypes.oStockTransfer)    
            objStockTransfer.DocDate = System.DateTime.Today
            objStockTransfer.TaxDate = System.DateTime.Today
            objStockTransfer.FromWarehouse = "01"
            objStockTransfer.PriceList = 1
            objStockTransfer.Lines.ItemCode = "B000001"
            objStockTransfer.Lines.Quantity = "1"
            objStockTransfer.Lines.WarehouseCode = "BAP"
            objStockTransfer.Lines.BatchNumbers.BatchNumber = "B10"
            objStockTransfer.Lines.BatchNumbers.Quantity = "1"
                  objStockTransfer.Lines.BatchNumbers.Add()
                If objStockTransfer.Add <> 0 Then
                objAddOn.objApplication.SetStatusBarMessage(objAddOn.objCompany.GetLastErrorDescription, SAPbouiCOM.BoMessageTime.bmt_Short, True)
                objAddOn.objApplication.MessageBox(objAddOn.objCompany.GetLastErrorDescription)
            Else
                objAddOn.objApplication.SetStatusBarMessage("Inventory Transfered Successfully", SAPbouiCOM.BoMessageTime.bmt_Short, False)
            End If
    With Regards
    G.shankar Ganesh

    Shankar,
    your code looks fine. just ensure that the warehouse code and batch you are specifying , do exist in owhs and oibt tables respectively, with the specified quantity. ( and the best way to check it is, try stock transfer from UI with the same parameters.)
    also, may be off topic, but, before specifying batch lines, you need to ensure that items are managed by batch or not )
    regards,
    Binita

  • No New Batch number creation at the time of Material Transfer Movement(309)

    We are upgarding from 4.6C to ECC6.0. We have an issue in regards with the material movement type 309. At the time of creating the material tranfer using the same material as issuer and receiver, the same plant and storage location ( this process is used by the business to diferentiate batches).
    In 4.6C a new batch number is created automatically when 309 movement is posted; stock and characteristics transfered are allocated at the new batch created automatically.
    The same case in ECC6.0 does not create a new batch as done in 4.6C. We have looked for any SAP note or forum discussion without success.
    If anybody has an answer for this issue, let us know.

    As a matter of fact these configuration has been checked before, additionally we compare configuration at 4.6C and ECC6.0 and it is the same but the new batch creation (for this specific case) is working at 4.6C, not at ECC6.0.

  • Duplicate Batch number creation during MIGO wrt PO

    Dear al SAP
    We have activated batch management at material level and set external number range. During MIGO say for the first line item, I have entered external batch number as 123. If I give the same batch number for the second line item of the same material code, system should throw an error message.
    Pls explain in detail SPRO setting required for this.

    In Logistics General -> Batch Management -> Creation of New Batches -> Define Batch Creation for Goods Movements select the option "E" Manual and check against external number range

  • Auto batch no creation in prod.order

    Dear gurus,
          I have an issue,I am working on STO scenario in that we are creating batch externaly at the time of sales order creation and assign that batch to sales order.
          I want that batch number should be assign automaticly to production order whitch I am going create against that S.O.
         How it will be possible?
    Is there any custumizing setting or need any user exit for it
    Please suggest ........
    Nilesh Ithape
    +91 99229 16016

    Dear gurus,
          I have an issue,I am working on MTO scenario in that we are creating batch externaly at the time of sales order creation and assign that batch to sales order.
    I want that batch number should be assign automaticly to production order whitch I am going create against that S.O.(co08)
          How it will be possible?
    Is there any custumizing setting or need any user exit for it
    Please suggest ........
    Nilesh Ithape
    +91 99229 16016

  • PP : BATCH number creation

    Hi All,
       I am assigning batch number externally during the production order creation by using user exit. In my case i have to do
    "The same batch number generated for the Main co-product should be assigned to the other co-products at the same time".
         Please suggest how to achieve the same.
    With regards,
    Pravin

    Hi Pravin,
    These exits will help you change the batch number to specific i.e. sales order number or production order number or date or plant etc. as in the function module documentation. But if you want to assign any batch which you've created using MSC1N or BAPI_BATCH_CREATE, then I feel that probably you've to use some other user-exit, these are not the ones which are going to help.
    Try these BADI's:
    WORKORDER_CONFIRM
    WORKORDER_GOODSMVT
    WORKORDER_UPDATE 
    Hope this helps.
    Regards,
    Satya

  • Auto Batch Number

    Hi,
    How to map the following scenerio.....
    When the user confirm the specific quantity using CO11N transaction,The system should give the specific customized batch number.
    The system should not allow the repeatation of batch number.
    Thanks in advance.
    regards

    Hi Subhash,
    It can be possible to determine the batch number during the CO11N confirmation, check the following settings has been maintained for the scenario.
    1. Materials having the Batch Management.
    2. Go to OMCW, here create the strategy and assign the class and sort sequence to it.
    3. Go to MBC1, here select the condition Plant/Material, maintain the plant and the materials for which you required the batch determination at the time of confirmation. then select the material and assign the appropriate class and the sort rule to the materials.
    4. Take the trials during confirmation.
    Please check this setting and revert.
    Thanks
    Hrishi

  • Auto Batch Number FMS

    Hello Everyone,
         I tried to create FMS to generate Batch Number. it works fine for the item in which I have multiple items having all the quantities been entered in to one batch but what if I have multiple items say I001 and I002 having quantities 100 and 50 respectively. But I have to enter I001 in 2 or more batches say B001 having quantity 50, B002 having quantity 25 and B003 having quantity 25.it also works fine till here.
    the problem arouse when I select I002, its batch number is not calculated correctly as it must have to be B004, but it gives me B002..
    Can anyone came across this situation and solved it then please share the query.
    Thanks in advance,
    Idrees

    Hi Ashish,
    What version of SBO are you using? If it's 8.8 or higher then I recommend that you don't use OIBT for your query. In SBO 2007 and earlier this was the main table for batch data but this was removed in 8.8 and replaced with a number of new tables. A new view called OIBT was created for backwards compatibility but it is not very efficient and is most likely the reason for your query's slow performance.
    You can find details of the new batch tables in the latest SDK documentation.
    Kind Regards,
    Owen

  • Batch Number Creation

    One of our requirements is:
    We need to assign batch no to the materials procured from an external vendor and for the materials procured internally from a different company code - use the same batch no.
    How to do this configuration and what are its implications.

    Hi,
    You mean to say that purchase order receipt and production order receipt should have the same batch number for the material.
    I think you can have a reserve batch by creating in MSC1N for this material and can assign the batch when you take goods receipt instead of allowing the system to suggest batch
    But what will be business requirement for keeping the same batch if you are procuring from two different places as the characteristics of both may differ.
    Cheers,
    Sridhar

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

  • Stock to Stock Transfer (Changing Batch Number)

    Occasionally we need to "correct" a batch number.  Most often because the user let the system assign an auto Batch Number instead of using our site procedure to create a "Smart" Batch Number (i.e. MMYYYYXXXXX).  We correct this by executing the MIGO Transfer Posting, Other, Movement Code 301.  This works for us, but is there some display screen that could be transacted, and them printed so it could be included in our Batch History Files?  This print out would need to show the "OLD" and "NEW" Batch Numbers.

    I m just wondering if this approach is a good one. or just a waste of time and resources.
    The problem starts with the fact that the user do not follow your procedures to assign "smart batch numbers" . And you want the same users to take a screenshot and attach it to some file.
    Will this really work or just create another gap to be monitored?
    Like for goods receipts and goods issues you can well have a material document printed for transfer postings. But I consider this as well as waste of environment since it has no more info than you have anyway in your system and you can find this evidence with MB51 whenever you want.
    MB56 Batch where used list should also be able to display the transition from one batch to another.
    I also wonder why you are using 301 movement, this is called plant to plant, I tend to use simple movements  where the users have not many options to do something wrong, hence I would do the batch to batch movement with 311.
    And last but not least I would use the user exits for batch number creation to create this smart number automatically instead of manually, further it will ensure that you do not get any other internal batch numbers if the user forgets about your process

  • Block internal batch number at plant level

    Dear Experts,
    I have activated the internal batch number assignments at client level. But for some plants or one of the company code, I want to block the internal batch number creation during the goods receipt at production order confirmation(CO11N). Is it possible ? How? Can we restrict for some of the plants/comany code and allow for other plants/company code?

    Check this link:
    http://help.sap.com/saphelp_46c/helpdata/en/25/2838bf4f7811d18a150000e816ae6e/content.htm
    FF

  • Batch number format setup and auto batch creation during first GR

    Dear all,
    This is a batch question.
    I know that both the master batch and the stock data for the batch are created automatically during the first goods receipt. Thus, I do not need to create this data manually.
    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    Thanks.

    My question are following:
    1 - what is the machnism that trigger this auto-batch creation in the system during the first goods receipt? is it from some kind of configuration?
    ==> Yes - See IMG activity 'Define batch creation for Goods Movements'
    2 - If I want my batch number to appear in certain format, for example, first four digit is customer code, middle two code is country code (i.e. US, UK), and the remaining as goods receipt date. How do I setup this in the SAP system.
    ==> See exit EXIT_SAPLV01Z_003
    3 - If batch classification is active, one can assign characteristic values to the batch when entering the goods receipt. HOwever, normally when I perform a goods receipt in MIGO, after putting in the production date and the batch number, I will hits the checkbox and if no problem, I will post the 101 document. WHERE in the MIGO screen I can assign the characteristic value to the batch?
    [[> See IMG activity 'Activate Batch Classification for Goods Movements in IM"

  • Inspection type 01 - inspection lot creation based on vendor batch number

    Hi Guys,
    this topic has been discussed several times here, but I was not able to find a suitable answer for my question.
    I am facing the folowing requirement:
    I have activated inspection type 01 for a raw material.
    I am receiving a firs goods receipt from vendor A with vendor batch number 0001.
    The system creates its own goods receipt batch number 0546 based on internal numbering.
    A new inspection lot is created.
    I am posting a second goods receipt from vendor a with vendor batch 0001.
    The system creates a new batch number 0547 based on internal numbering.
    A new inspection lot is created.
    I do not want to get the second inspection lot, because I received vendor batch 0001 before and I am assuming it has been inspected or is in inspection.
    Option 1: Post the second goods receipt against the first internal batch number created.
    I am aware of this need at the moment, but a user is not always checking if there is an internal batch with the same vendor received before.
    Can I customize the system to create inspection lots based on the fact that the vendor batch number was received before?
    Or do I have to use an exit and some ABAP code to get the wanted result?
    Thanks for your advice in advance.

    You need to use one of the enhancements that Do-Wook has suggested.  There is no standard SAP way to suppress the inspection based on the vendor batch number.
    With the first enhancement you use the system to check for a previously received vendor batch and if one is found, then that batch number is proposed and not the next one from the numbering series.  In this case, the lot isn't created than due to the inspection lot control of the inspection type.
    With the second enhancement you check the vendor batch number and if it's been received you suppress the inspection lot creation and the stock goes right to unrestricted.
    You'll probably need to do one or the other.  Myself, I prefer the first enhancement.
    Craig

Maybe you are looking for