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

Similar Messages

  • Enter batch number - No Automatic Batch Number assignment allowed for plant

    Hi SAP Gurus,
    Upon checking the created new Goods receipt for Purchasing Order in tcode migo_gr, checking with the Batch tab, we can't see a batch number, then clicking the classification tab showing the message Enter batch number - No Automatic Batch Number assignment allowed for plant - XXXX
    the question is there any missing configuration based for this kind of error? ive checked the availability check for the plant and it already setup. Hope for your kind responses.
    Thanks

    HI,
    Kindy check the below configuratoin
    Logistics - General>Batch Management>Creation of New Batches>Define Batch Creation for Goods Movements
    for your movement type check what is the Strategy for the new batches.
    here you should assigne only automatic.
    Also let me know what is the level of batch mgt> is it at client level, Plant level, Material level.?
    reg
    Dsk

  • How  to modified automatic batch number with plant and current year details

    hi all,
            i want tomodify automatic batch number with plant and current year details. if any one understand plz explain.
    thanks,
    radhakrishna.

    Hi,
    I am not clear what is u r requirement exactly?
    I  mean you don't want automatic batch no or modify the batch no.  with plant means and Current year details means.  Can give details more
    Regards
    Ganesh

  • 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

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

  • 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

  • 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

  • Automatic Batch Number to Be Picked Up

    Hi Gurus,
        Need a urgent help from u guys. While doing Finished Goods Posting (MIGO),I want to automatically pick up the Batch Number from the Mother Coil Number. The batch number should be the same as the one as entered (Batch Classification) during RM Posting.
         Could u please help me on the configuring the same.
    Regrds,
    Binayak

    Hi
    You need the following settings
    a) condition tables (you can use available in SAP)
    b) Acess sequeences (you can use available in SAP)
    c) Strategy types (you can use available in SAP) Here assign your class for batches and sort sequence.
    d) Batch search procedure (you can use available in SAP)
    Path: Logistic General > Batch management>Batch determination and batch check --> Batch search procedure Definition --> Define Inventory Management Search Procedure
    e) In tcode OMCG, assign your batch search procedure to your relevant movement type and if required then assign to a movement type and special stock indicatior too.
    f) Maintain condition records. tcode MBC1
    This will resolve your problem. If useful then please dont forget to reward points.

  • Automatic Batch number for rETURN Delivery

    When creating a return delivery, without reference, we need to manually input the batch number (assign dummy?).
    Is it possible to have the system automatically generate the batch number for returns? If yes, how?

    Hi,
    No you can' not
    even if you try to create Return delivery without refrance to any order then it will determine item category,but gives error that,
    YOU CAN NOT ADD THIS ITEM IN DELIVERY
    because it is controlled by delivery document category
    the delivery document category is - T (Returns delivery for order)
    Kapil

  • Automatic batch number in migo_tr with movement type 301

    Hi!
    I am trying to do a transfer from a plant to another with MIGO_TR movement type 301.
    The thing is that I must enter manually the batch number in the destination plant.
    Is there a possibilty to configure the system  in order to copy in batch number field for destination plant the same batch number entered in the plant from where  I want to transfer?
    Thanks!

    your system does not work like designed
    please read this very old but release independend OSS note 555 - Batch treatment during stock transfer and transfer posting:
    Key word: Transfer batch
    If you enter materials for stock transfers or transfer postings with movement types 301 to 316 via collective processing and in this case enter the batch number for materials to be handled in batches, the system automatically sets 'Receiving batch' equal to 'Issuing batch'.
    Additional key words
    Cause and prerequisites
    The collective processing screen does not provide space for an additional transfer batch in the two lines provided for a material movement.
    Solution
    During the stock transfer of material, the batch is usually retained. If you want to change the batch number, you have to enter the item in question step by step (F8=New item).

  • 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

  • Automatic Batch number

    Dear PP Gurus,
    How to  do Auto matic batch number activation.
    PLease tell me the step by step procedure.
    The requirment is . The client wants that batch should come automatically  as per below logic .
    For example  a Batch is    A31039542
    In th above batch   A  denotes  Month ,    Posting  date is    31  , Year is 2010, and a work order number is 9542
    A   is Jan month
    B   is Feb month
    c    is  March month
    How to map this logic?

    Dear,
    Yes you can do this with Enhancement   SAPLV01Z      CFCs for internal batch number assignment.
    With customer exit EXIT_SAPLV01Z_001, you can replace the standard number range (object, sub-object, number range and year) with a user-defined standard number range. Later, this is used for the determination of a new batch number.
    You change an assigned batch number using the exit EXIT_SAPLV01Z_002 .batch number would assigned according to self-defined rules.
    Also refer these links,
    http://help.sap.com/saphelp_40b/helpdata/ru/dc/1d4b6e5733d1118b3f0060b03ca329/content.htm
    Re: Batch Management In Production
    Regards,
    R.Brahmankar

  • 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

  • Automatic serial number creation in delivery

    Hello All,
    Can you help me to know if any user exit available to create serial number for line item in delivery automatically.
    Business does not want to use existing serial numbers and user may wrongly select the same. So need restrictions to use existing serial numbers and create new one automatically.
    Regards,
    Rohit

    Hi Ulhas,
    Check if User Exit - IQSM0001 (Automatic serial number assignment)
    The other user exits are:
    IQSM0002  Check when copying object list                            
    IQSM0003  Serial numbers, user exit for additional data             
    IQSM0004  Serial numbers, user exit after exiting the serial screen 
    IQSM0005  Serial numbers, user exit in the update                   
    IQSM0007  Serial numbers, user exit for goods movements             
    IQSM0008  Serial number character string check                      
    REWARD if it helps you!!
    Regards,
    Ajinkya

Maybe you are looking for