Generating batch numbers

Hi All,
I have a requirement to generate batch numbers for every 200-item records of source file.
I have to populate to the target filed with generated batch number + the item sequence number (both are not available in file).
Thanks,
venu.

Hi Venu,
You can go with the option of Number Range objects in the ABAP . So from the mapping you can call this lookup table and generate the new number . For this you need to use JCO call . It is a kind of RFC lookup
This number range object you can maintain in the XI integrtaion Server(ABAP stack ) itself. To avoid overheads of call to the SAP r/3 systems. And also, while transporting, it is not required to change the IP address etc in the JCO call. 
And one more option is maintaining Java Tables. with property files etc..
Hope this helps,
REgards,
Moorthy
Message was edited by: Krishna Moorthy P

Similar Messages

  • Standard report to see the Batch numbers for the materials

    Hi Gur's
    I am searching for a standard report that would give out details from the purchase order. The details that i need are as following fields 1. Purchase order batch, 2. Purchase order number 3. material
    can you any one help me on this
    regards
    AM

    Hi Teja
    You can use T-Code - MB51, here you can generate report material wise purchase order with batch numbers and here to see stock in so give movement type 101 to see all Batches received against purchase orders
    regards
    madhu

  • Multiple batch numbering in one client.

    Hi PP Gurus,
    We have a business scenario wherein more than one business exist. For clients pharma business then batch numering logi is different and for other businesses it is different.
    We have a proposal by which the Batch numbering at the time of Process order creation will be checked by User Exit about the existence of the batch key in manually.
    But for other business we want to keep Internal batch numbering with other User Exit.
    Can we have more than one kind of batch numbering; Internal & External both with different batch numbering logic?
    Thanks,
    Abu Arbab

    Hi Abu,
    For the movement type where the batch is getting generated, in customizing for Batch creation
    set it for Automatic / Manual check in USER EXIT. 
    Try this out & revert.
    Regards
    Mithun

  • How to config the batch numbers internally from remaining?

    Hi All
    Firsr i followed the path and activated the internal batch number assignment(IMG ---> Logistics - General ---> Batch Management ---> Batch Number Assignment ---> Activate Internal Batch Number Assignment)
    then i have maintained the number ranges for the batches
    Still when I do MIGO the batch tab appears but the system is not generating the batch numbers internally instead its asking to enter the batch number.
    Please suggest if I have missed any other config or any master data towards the settings for Batch Management and also to have the system create the batch numbers at the GR stage.
    Thanks&Regards
    SRK

    Hi SRK,
               You may miss to confing this thing......
               IMG ---> Logistics - General ---> Batch Management ---> Creation of New Batches > Define...
    you can find the solution
    Regards
    Madhu

  • Function module to generate Batch number

    Can anyone please let me know, the function module to generate the batch numbers. if possible the procedure to generate the batch number.

    Hi Venkat,
    Check function module <b>VB_CREATE_BATCH</b>.
    Thanks,
    Vinay

  • Serial/batch numbers  Problem

    Hi  All,
    I am trying to Genetate  a goods receipt  through Code .
    when i m trying to generate it gives me error like
    You should use existing serial/batch numbers for this document type
    But i have to create new serial/batch
    so what can i do over here.
    Hari

    Hi Hari,
    In 2007 version, there is a change in SystemSerialNumber Property
    When you set this property (SystemSerial Number)it means that you want
    to use an existing serial number
    If the system serial number does not exist, any action will fail.
    When you do not set this properyt (empty) it means that you want to
    create a new serial number
    You cannot provide a system number of your choice to create a new
    serial number
    Regards,
    Vijay Kumar
    SAP Business One Forums Team

  • BAPI_GOODSMVT_CREATE, and automatic batch numbers

    Hello,
    I am using BAPI_GOODSMVT_CREATE and doing good receipt vs., a Purchase Order, GM 01.    The material is auto batch managed and I see the batches are generated when I go into MSEG for the good receipt line items.   However, batch numbers are not returned in the bapi return information.
    Is there a way to get the batch numbers to return in the BAPI_GOODSMVT_CREATE bapi?  If so, please let me know.  If not, please also let me know and I will do a subsequent look-up to get that info.
    Thanks

    BAPI_GOODSMVT_CREATE will return the material document number posted. Use that to get the batch number from table MSEG.
    CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
      EXPORTING
        GOODSMVT_HEADER  = LS_GOODSMVT_HEADER
        GOODSMVT_CODE    = LS_GOODSMVT_CODE
      IMPORTING
        GOODSMVT_HEADRET = LS_GOODSMVT_HEADRET
      TABLES
        GOODSMVT_ITEM    = LT_GOODSMVT_ITEM
        RETURN           = LT_RETURN.
    IF LS_GOODSMVT_HEADRET-MAT_DOC IS NOT INITIAL.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          WAIT   = GC_TRUE
        IMPORTING
          RETURN = LS_RETURN.
      SELECT SINGLE CHARG FROM MSEG INTO LV_CHARG
              WHERE MBLNR EQ LS_GOODSMVT_HEADRET-MAT_DOC
                AND ZEILE EQ '0001'.
    ENDIF.
    *Assumes single item document posted

  • How to print batch numbers on the AR invoice print out

    Hi Gurus;
    Here is my question; I need to be able to print batch numbers on the print out of AR invoices, I used variable 492 in PLD and I am able to see the batch numbers directly linked with the AR invoice, meaning that I wont be able to see batch numbers that I entered on the Delivery even is the delivery doc was copy to the AR invoice.
    Is there anyway that I can see the batch numbers on the AR invoice print if I entered the batch number on the delivery and then copied that delivery to an invoice??
    My client wants to be able to send their customers and invoice with a batch number but he always follow the process from sales order to delivery and delivery to AR invoice and what this means is that he always entered the batch numbers on the delivery documents.
    Please help me!!!
    Thanks
    Jenny

    If the ad hoc printer mode is not available for the envy, there are some reasonably cheap ways to get a wifi network in your car.   A cheap router from best but will generate the wifi network.  Does not matter if you have Internet or not.  A ifi device will also work, and most/ all of them run on batteries.  Lastly, if you have a smart phone or I phone that generates a wifi hotspot, that may be enough to support the printing function.  ( I need to test my I phone later today to see if that works.)

  • Batch numbers in MIGO

    Hi guys,
           When doing GR in MIGO batch numbers are auto generated. I want to know where they r configured . And my requirement is i want to give the number range for this batch numbers depending upon the plant or certain period. as that number which is auto generated is not coming in series. is it possible to customize the batch numbering using any methods like configuring or using user exits or badi.
           Please help me in this regard..
      Thanks,
      Dippy

    hai dippy, they are generated bcos it is internal numbering
    and u have to configure of external numbering and it can be doen through spro
    just ask  ur functional to do that
    regards
    m.a

  • BADI for MIGO-populate batch numbers in Split screen

    Hi All,
    I have a requirement in which a user enters a Purchase order and then clicks on Distribute Quantity button.
    Now another split screen opens up in which we enter the different quantities and their corresponding batch numbers.
    I want that when user clicks on distribute qty button the screen shows some default values in Batch column.
    These values should be picked from mchb depending on the material and largest batch no already generated for that material.
    Suppose material1 has max batch number as :123, then I want to display in the split screen foll batch numbers:
    124
    125
    126....so on
    user can also change them if required.
    I have gone through the foll BADI's:
    MB_MIGO_BADI
    MB_MIGO_ITEM_BADI but could not find a solution.
    Please help.
    Shilpa.

    Hi Pranav,
    I have tried the BADI..
    It does trigger when we click on distribute quantity button.Thanks
    But I want that user should enter the starting batch number for each material in that PO and then depending upon the number of rows in which qty is distributed, batch numbers should be incremented by 1 and displayed there.
    For this I need an exit when we click on Check button in split quantity screen.
    Thanks,
    Shilpa
    Edited by: Shilpa Bansal on Apr 9, 2010 11:47 AM

  • Instock with Batch Numbers Query/Report

    Hello Experts,
    Can anyone help me with a query to generate Instock quantity with respective batch numbers for an Item. The item uses Moving Average costing method.
    For Example: Say i have an Item A0001 with Qty 10 instock ( 5 with 4343 batch#'s, 5 with 6648). I need to generate a report as shown below:
    Item         Qty     Batch
    A0001     5        4343
    A0001     5        6648

    Dear parneeth,
    As requested please try this Query to fulfill your requirement.
    SELECT T0.docnum,
    T2.BatchNum,T2.ItemCode,T2.Quantity,
    T2.ItemName,T0.CardName as Supplier,
    T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
    convert(varchar(8000),T2.Notes)
    FROM OPDN T0  INNER JOIN PDN1 T1 ON T0.DocEntry=T1.DocEntry
    inner join
    OIBT T2 on   T1.ItemCode = t2.ItemCode and T0.objtype=T2.basetype    and T2.baseentry=T1.Docentry
    inner join
    oitm T5 on T1.Itemcode=T5.Itemcode
    WHERE
    T2.quantity>0
    group by T0.docnum,T2.BatchNum,T2.ItemCode,T2.Quantity,
    T2.ItemName,T0.CardName,
    T2.SuppSerial,T2.IntrSerial,T2.ExpDate,T2.PrdDate,T2.InDate,T2.Located,
    convert(varchar(8000),T2.Notes),T1.Linetotal,T1.Quantity
    REGARDS
    MANGESH PADHARE.

  • Both External & Internal Batch Numbers

    We have turned on batch management @ material level. Is it possible to have both external and internal batches.
    Eg.
    M1 has external batch no.
    M2 has internal batch no.
    M1 is ROH
    M2 is Fert, whose batch will be generated during autoGR
    Regards.

    Hi,
    What Mr. Rajesha told is right It is not possible to have two different type of batch no assignmenmt External & Internal Batch Numbers.
    You can use some of the standard User Exits or develop a custom user exit for this purpose.
    You can use SAP enhancement SAPLV01Z for internal batch number assignment. This enhancement contains two function module exits that you can use to define number ranges or templates for batch numbers:
    EXIT_SAPLV01Z_001. You use this exit to replace the number range object and/or interval proposed by the system with your own number range object and/or interval.
    In addition, you can, for instance, stop the system from assigning an internal number depending on the material or plant. You can also use this exit to stop the dialog box from appearing.
    EXIT_SAPLV01Z_002. Using this exit, you can either change the number assigned by the system, or assign your own number.
    There are many such user exits, please check and use the appropriate user exit.
    Regards,
    R.Brahmankar

  • Slow when fill batch numbers in matrix

    Hi,
    I am using the following code to fill a matrix in the batch numbers windows, this codes come from other windows where the user set his batch numbers and click ok.
    My problem is this routine is slow based in the user simulation clic and I need this become more fast.
    I use the .Freeze(true) command to get more speed, but doesnt work.
    Actually this give me 18 codes per minute. My problems is when the user set 6.200.000.
    Can provide me some tips to do it? or other way to get the goal.
    Thanks.
    EDIT: sorry when I want to mean is "Slow" is when my code write on the matrix (the batch number window) how can I get more speed in the process?
    oBultosForm.Freeze(true);
                        z = 1;
                        foreach (var item in seriales)
                            SAPbouiCOM.EditText oEditTex3 = (SAPbouiCOM.EditText)oGrid.Columns.Item(2).Cells.Item(z).Specific;
                            oEditTex3.Value = item.Serial;
                            SAPbouiCOM.EditText oEditTex4 = (SAPbouiCOM.EditText)oGrid.Columns.Item(5).Cells.Item(z).Specific;
                            oEditTex4.Value = item.Cantidad;
                            oGrid.Columns.Item(20).Cells.Item(z).Click(BoCellClickType.ct_Regular);
                            SBO_Application.Menus.Item("5888").SubMenus.Item("5963").Activate();
                            oBultosForm = SBO_Application.Forms.GetForm("1470000006", 0);
                            oBultosForm.Freeze(true);
                            oGrid1 = (SAPbouiCOM.Matrix)oBultosForm.Items.Item("1470000019").Specific;
                            SAPbouiCOM.EditText oEd4 = (SAPbouiCOM.EditText)oGrid1.Columns.Item(1).Cells.Item(1).Specific;
                            oEd4.Value = item.Ubicacion;
                            SAPbouiCOM.EditText oEd5 = (SAPbouiCOM.EditText)oGrid1.Columns.Item(2).Cells.Item(1).Specific;
                            oEd5.Value = item.Cantidad;
                            SBO_Application.Forms.ActiveForm.Items.Item("1470000001").Click(BoCellClickType.ct_Double);
                             z++;
                        oBultosForm = SBO_Application.Forms.ActiveForm;
                        oBultosForm.Freeze(false);

    hi Maik, the Active Form is a Form  created by with visual designer this is called "Gestion de bultos" is used for pack management,
    1.- you insert your goods receipt PO and clic add
    2.- this open a batch setup windows. here you select the document and later clic in "bultos button".
    3.- this open a pack management window (Gestion de bultos) where you insert how you can distribute the quantities, ex. I want 6 pack of 100 and the location is A-01-2-3.
    When you clic ok. this close the window (Gestion de bultos) and in the Batch - Setup window insert the batch generated based in the requirement.
    my problem is this is slow due at use a GUI for this. I dont know how to do it with DI API, I think in some Transaction Notifications. But is only ideas.
    Thanks for your time

  • Report for a selection of items+batch numbers that I would have had on hand

    I would like to run a report for a selection of items and batch numbers that I would have had on hand (only) for September 30th.  I have run the batch numbers report but this gives me all transactions from August 1/09 to September 30/09.

    Hi
    If you need to know quantity onhand ,probably you need to run query against OINM tables but If you are lloking for information then I guess this batch and serial number would be handy ....
    Hope this helps
    Bishal

  • What are the Pros and Cons of Using Batch Numbers over Serialization

    Dear SAP Gurus:
    Will someone please give me the benefits of using Batch Management over serial numbers in this case scenerio, or vice versa:
    Client wants to trace all the components of an assembly in a BOM.  Even the Raw material.  The client sends the material out today and has the vendor assign serial numbers to the individual pieces, the client gives the range of serial numbers to use.  We are looking at using batch numbers to accomplish this and issue one material and batch number to a production order.  Then use MB56 batch where used functionality to view history.  I am wanting to understand the benefits of this.  Please advise and points will be awarded as always. 
    Also, in this scenerio, can you issue multiple material/batch numbers to one vendor op that has its own production order?

    Yes it is a subcontract. 
    Example:  This is the solution but need the pros and cons of doing this scenerio
    Sheet of metal sent to vendor to make lets say 1800 peices of material number nas5703-01.  All 1800 pieces come back and issued to a production work order using one bacth number for one material item so that batch number can be traced in history in MB56 and a fit up report.

Maybe you are looking for

  • HT4993 when trying to connect to iTalk radio stations it says out of 3G/WiFi, my wifi is good, but only have 3 little service bars

    I have an iPhone 4 and when trying to listen to iTalk Conservative Talk Radio Station, somedays it works fine, but today it wouldn't connect at all, and this is not first time happened......I have 3 little service bars showing, and my WiFi connection

  • Podcast RSS feed rejected after months of smooth sailing

    iTunes recently started rejecting our weekly RSS podcast feed: http://www.texastribune.org/feeds/podcasts/the-tribcast/ . I checked it with a feed validator, and it gets a clean bill of health. I can manually locate our podcasts by entering the URL,

  • Playing WMV over a wifi network

    I have flip4mac installed and it works fine locally, however. When I stream WMV from my windows PC to my mac QT takes literally minutes to start playing them. I get the application not responding message often. The confusing part is that it's not due

  • Linux download fails, cksum & size incorrect

    Trying to download http://download.oracle.com/otn/linux/oracle10g/ship.db.lnx32.cpio.gz. The web page says it should be (647,967,959 bytes) (cksum - 100612388). I've downloaded it twice, and both times got 682,049,536 bytes, cksum 1590703373. Gunzip

  • Cannot find CFC

    All, I am receiving a CANNOT FIND CFC error when trying to run this app. This is my first Flex app and I am simply trying to bind a query result from a CFC to a datagrid. Here's my code. I have verified the CFC is there and works. <?xml version="1.0"