Unable to automatically assign batch numbers in REM upon confirmation

Hi expert,
I did all required configuration:
the batch level is Material (OMCT)
internal Batch Number Assignment is activated (OMCZ)
Define Batch Creation For Mvt is set to C for type 131
Define Initial Creation of Data for Batch Master Transactions is set to C for my material type
the indicator for BM is set in the view Plant Data/Storage Location for the material/SL
But still when I confirme my production with MF42N, the system is not getting the internal number range for the batch.
Any idea why?

Hi,
U can assign the Batch Number for Finished material at MFBF screen . For Components batch number check with "Postwith correction screen " of MFBF. If u set bacth search procedure at REM profile batch number for Components will com automatically.
SPRO>LOGISTICS>PRODUCTION>REM>BACKFLUSHING>MAINTAIN GLOBAL SETTINGS FOR CONFIRM. & LIS> BATCH CLASSIFICATION ACTIVE FIELD.
Use the field value as '1'.
Maintain Batch search procedure at control data tap2 in REM profile (SPRO) which will be assigned to Finished material.
Please try and come back.
Regards,
R.Brahmankar

Similar Messages

  • Accessing batch numbers in SBO2007

    Hi
    I have added a button to the goods receipt po screen to print labels for a customer which includes batch numbers
    The problem I have is I cannot find out where the batch numbers are stored, I have looked in the OIBT table but that is not updated until the actual goods receipt is added
    Can anyone help me pls ?
    Many thanks
    Regards Andy

    Hi David
    Just did a test and I can't see it in the table.
    Please remember the user will have assigned batch numbers but the goods receipt form will not yet be saved
    Thanks
    Regards Andy

  • How to automatically assign a batch number

    Hello experts,
    Our customer have the "Manage Item by" settings on "Batches" and the "Management Method" settings on "On Release Only".
    He don't want to manually generates the batch numbers in Delivery Entry because he would like to have an automatic assignment of batch number like a progressive number for year.
    How can I achieve it using DI API ?
    I have tried to create a Delivery Document using the BatchNumbers object but I got the following error message "the batch number you selected doesn't exists".
    So I created a Goods Receipt for the batch number above and finally the delivery document has been created successfully.
    The issue came out is about the stock quantity for the itemcode because the Goods Receipt have increased it and as result I have the same stock quantity as before the delivery and of course it's not correct !
    I noticed that SAP B1 after the manually generation of batch number it creates a record on the OIBT table using an existing Good Receipt.
    How can I add a batch number in the OIBT table using DI API  without the need to create a Good Receipt ?
    Can someone help me ?
    It would be very appreciated.
    Many thanks for your time in advance.
    Best regards
    Andrea

    Hi,
    Try this code, May be it will help you
    Dim v_StockEntry As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenEntry)
                Dim v_StockExit As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInventoryGenExit)
                Dim str_ProEntryNo As String = oDBDSHeader.GetValue("DocNum", 0)
                'Dim str_DocDate As String = CDate(frmProductionEntry.Items.Item("t_DocDate").Specific.Value).ToString("yyyyMMdd")
                Dim str_DocDate As String = Date.Now
                Dim intStockRowCount As Integer = 0
                Dim FGCost As Double = 0
                Dim RMCost As Double = 0
                Dim RMQty As Double = CDbl(oDBDSHeader.GetValue("U_TotRW", 0))
                '---  RM Exist
                v_StockExit.Comments = "Stock Exit For Production Entry(RM) Production-Entry No: " & str_ProEntryNo
                v_StockExit.DocDueDate = str_DocDate
                v_StockExit.Reference2 = str_ProEntryNo
                intStockRowCount = 0
                For i As Integer = 1 To oMatrix1.VisualRowCount - 1
                    intStockRowCount += 1
                    If intStockRowCount > 1 Then v_StockExit.Lines.Add()
                    v_StockExit.Lines.ItemCode = oMatrix1.GetCellSpecific("ItemCode", i).Value
                    v_StockExit.Lines.Quantity = oMatrix1.GetCellSpecific("Qty", i).Value
                    v_StockExit.Lines.WarehouseCode = oMatrix1.GetCellSpecific("WarCode", i).Value
                    'v_StockExit.Lines.AccountCode = AccCode
                    Dim qty = oMatrix1.GetCellSpecific("Qty", i).Value
                    qty = IIf(qty.ToString.Trim = "", 0, qty)
                    Dim cost = oMatrix1.GetCellSpecific("Cost", i).Value
                    cost = IIf(cost.ToString.Trim = "", 0, cost)
                    Dim PerQtycost = CDbl(cost) / CDbl(qty)
                    v_StockExit.Lines.Price = PerQtycost 'GetItemPrice(oMatrix1.GetCellSpecific("ItemCode", i).Value)
                    Dim ManBtchNum = getSingleValue("Select ManBtchNum  from OITM Where ItemCode='" & oMatrix1.GetCellSpecific("ItemCode", i).Value & "'")
                    If ManBtchNum.Trim <> "N" Then
                        Dim rs As SAPbobsCOM.Recordset = GFun.DoQuery("select * from OBTQ where ItemCode ='" & _
                                                                      oMatrix1.GetCellSpecific("ItemCode", i).Value & _
                                                                      "' and WhsCode ='" & oMatrix1.GetCellSpecific("WarCode", i).Value & _
                                                                      "' And Quantity > 0 order by SysNumber")
                        Dim count As Double = oMatrix1.GetCellSpecific("Qty", i).Value
                        For k As Integer = 0 To rs.RecordCount - 1
                            If CDbl(rs.Fields.Item("Quantity").Value) >= count Then
                                Dim ss = rs.Fields.Item("SysNumber").Value
                                v_StockExit.Lines.BatchNumbers.BatchNumber = _
                                getSingleValue("select DistNumber from OBTN where ItemCode ='" & _
                                               oMatrix1.GetCellSpecific("ItemCode", i).Value & _
                                               "' and SysNumber ='" & rs.Fields.Item("SysNumber").Value & "'")
                                v_StockExit.Lines.BatchNumbers.Quantity = count
                                v_StockExit.Lines.BatchNumbers.Add()
                                Exit For
                            Else
                                v_StockExit.Lines.BatchNumbers.BatchNumber = _
                                getSingleValue("select DistNumber from OBTN where ItemCode ='" & _
                                               oMatrix1.GetCellSpecific("ItemCode", i).Value & _
                                               "' and SysNumber ='" & rs.Fields.Item("SysNumber").Value & "'")
                                v_StockExit.Lines.BatchNumbers.Quantity = rs.Fields.Item("Quantity").Value
                                v_StockExit.Lines.BatchNumbers.Add()
                                count = count - CDbl(rs.Fields.Item("Quantity").Value)
                            End If
                            rs.MoveNext()
                        Next
                    End If
                Next
                If oMatrix1.VisualRowCount > 1 Then
                    If v_StockExit.Add() <> 0 Then
                        StatusBarWarningMsg("Unable To RM Post Stock Document.......   " & oCompany.GetLastErrorDescription)
                        Return False
                    End If
                End If

  • Itunes assigns track numbers automatically

    iTunes 11 - When I play a track, sometimes iTunes will automatically assign a track number to it, but not always. So what happens is it winds up putting an entire albumn out of order. In other ones, it will assign track #1 to track 1, then track 4 to track 4 and so on. So the ones it doesn't assign a track number wind up displaying on that particular album before the ones that were given a track number. It's doing this pretty randomly and causing a lot of grief.
    I realize I can right click on the tracks without an assinged track number and assign the right number, but that's a pain for thousands of songs. I tried removing the Track# column, but that doesn't help. I still prefer to listen to listen to albums in their entirety and like to put them on my iPod, etc. that way.
    Can't itunes just sort by artist name, then album, then the correct order of the album? This never happened on a previous version. Why did they do this?

    The track numbers are all fine, the album and artist are exactly the same for all of them.
    If you dont understand my problem, just check this image:
    http://cncvision.org/itunesproblem.PNG
    the tracks arent going in the right order. IDK why it wont work. I bought the album on itunes, then bought the song "not now" cause itunes didnt include it on the album, and bought "stockholm syndrome" cause itunes didnt include it on the album. Both songs are on the normal cd. I tried to put those two songs onto the album in the order they would be if I bought the cd and ripped it, but itunes wont place them in that order.

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Automatic external batch number assignment

    Hi gurus,
    I'm facing to an huge issue.
    I've created an subcontracting PO. Into this PO, I have inserted a external batch number to a component.
    When I make a good receipt with MB0A transaction. movement type 101 for the finished product and movement type 543/O for component. the external batch number is populated in the material document. But I don't want the MB0A transaction populates this bactch number. I want to input it manually in this transaction.
    Is it possible to disengage the automatic external batch number assignment by the MB0A transaction and insert a external batch number manually?
    Thanks for your help.
    L. YDIR

    Try this exit, its for external bacth number assignment EXIT_SAPLV01Z_003 .
    EXIT_SAPLV01Z_003. Using this exit, you can replace the proposed number range object BATCH_CLT and/or external interval 02 with a number range object and/or external interval you have defined yourself.
    You also have the option of suppressing the batch number check, for example, based on the material or plant.
    Further : EXIT_SAPLV01Z_003. Using this exit, you can replace the proposed number range object BATCH_CLT and/or external interval 02 with a number range object and/or external interval you have defined yourself.
    You also have the option of suppressing the batch number check, for example, based on the material or plant.
    Just wanted to ask : which version of SAP are u working on?  is it some old version?  coz I see u using MB* Transactions, while SA now recommends most goods movements by MIGO TCODE, aslo most new enhancements are for MIGO .

  • 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

  • Batch numbering

    Hi
    Batch management there are 3 internal number ranges and 1 external number range.
    How system will automatically pick up the number range during batch creation (GR or release of prod.orders)?
    If i create one more internal /External number range - how system will verify and create new batch with new number range?
    Can you please through some lights on this....
    Thanks
    Sami

    Configure Customer Exits for Intern. Batch Number Assignment
    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.
    Further notes
    Both exits contain a communication structure with application data from the respective business transaction (plant or material type, for example).  If you need further information, such as the time, the user name or the date, you must include them yourself in one of the exits.
    The system always checks whether the assigned batch number already exists in the system. If it does, it terminates the function without assigning a batch number.
    Example:
    In function module exit EXIT_SAPLV01Z_001, the system uses the material type to determine number range interval XY. This number range is then used to determine number 0000100123 as the next batch number .
    In function module exit  EXIT_SAPLV01Z_002, the final batch number 'ABCD100123' is determined from batch number 0000100123 and plant ABCD. The system suppresses the leading zeros.
    If you do not use a sequential counter for the batch number, you can skip internal number assignment in exit EXIT_SAPLV01Z_001 to specify your own batch number in exit EXIT_SAPLV01Z_002. Further information and examples for EXIT_SAPLV01Z_001 and EXIT_SAPLV01Z_002 Further information and examples for EXIT_SAPLV01Z_002

  • Automatic multiple batches creation during GR

    Hi Experts,
    I have a problem, wherein in a PO i m entering 1 line with a material code, but vendor sends total quantity in multiple lots specified in invoice.My query is how can i do GR for multiple lots in single transaction?
    Thanks
    KDS

    kdshah wrote:
    Hi Experts,
    > I have a problem, wherein in a PO i m entering 1 line with a material code, but vendor sends total quantity in multiple lots specified in invoice.My query is how can i do GR for multiple lots in single transaction?
    >
    > Thanks
    > KDS
    Hi KDS,
    If your query is to assign automatic batch numbers in GR, then you need to configure this in IMF> Logistic General > Batch Management for relevant movement types.
    As I told, if the vendor is sending different split quantities (say 100 PC as 20, 35, 15, 20,10) you can assign different batch numbers for each of the receipts (Automatic system generated) OR if you wish you can also enter Manually.
    Remember that once the batch number is consumed (like cancellation of the GR), system takes next batch numbering still the canceled number can be manually used.
    Anything else pls revert
    Shiva

  • Batch numbers - eliminating batches in form

    Hi,
    I have some items with Batch Numbers. When Im creating invoice (through UI or user entry) and after click to Add button, the form with batches will be shown. In bottom left corner is there a matrix with list of disponibile batches. Is it possible to eliminate this list of batches only for batches I need (through some filter, query, ...)?
    Or - is it possible to assign batch number for line level of main matrix before I click to Add button?
    I spent on this whole day without any idea...
    thanks

    Hi Petr,
    it won't be very helpful but maybe you're interested how iam doing this.
    i trigger the "add button", the serial number form opens and i assign the serial numbers automatically.
    the user just have to watch how the "serial numbers" walk from left to right
    i don't think you can "filter" the list of avaible serials.
    lg David

  • Userexit EXIT_SAPLV01Z_001 for COR1 (batch numbering)

    Hi guys,
    I have a strange problem.
    Our customer is upgrading from 4.6B to 6.0 (701), and their user exit EXIT_SAPLV01Z_001 (used for automatic batch numbering in transaction COR1) stopped working.
    I just don't seem to pass through this code while debugging, even though the project seems to be active etc...
    Any ideas what might have changed between 46B and 701?
    cheers
    Rob

    >
    Vipin wrote:
    > Hi,
    >
    > Check whether Internal Batch Number Assignment is active.
    >
    > Regards,
    > Vipin
    Thanks, Vipin.
    For some reason, internal assignment was switched off on the DEV system, and on on the PRD system. I could 've been debugging until hell froze over

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

  • 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

  • Need tables for tracking Invoice Items back to the Batch Numbers/Item codes

    Trying to build report to show the Inventory movement from a Sales Invoice Item back to the source items and the Batch Numbers for assigned along the way.  Having problems finding all the tables to connect the Batch information to the Invoice information.
    In B1 under batch management I can see fields that belong to tables RBTN, RITL and OBTN  but I can only find OBTN in Crystal.
    Are these tables hidden for some reason or are they Temporary tables that B1 creates when opening the form/report.

    You may check this: Re: To what table are Batch# saved to with SAP 8.8

Maybe you are looking for

  • Form Authentication Servlet  and MD5

    Dear forum, I have the following servlet to authenticate a user via form. If you go to the root url you get the login html and the authentication works fine but if the user knows the url of a specific html just by typing the url gives access to the p

  • Dreamweaver 8 bug - strobing/blinking when rollover tables

    Does anyone else have this issue with Dreamweaver 8 in table view - when you rollover any graphic or table border the whole screen strobes and blinks enough to give you a seizure? I have mx and 8 installed on my computer, but I dont want to give up m

  • Using normal class file in the servlet

    Hello Friends; Now my problem is ; I generated a java file ; import drasys.or.mp.*; import drasys.or.mp.lp.*; public class optimize     public static void main(String[] args)     try         int r=1;         int s=0; .This file works perfect. It call

  • Hashing in PLSQL

    Hi How i can hash a field in a table , to the purpose of encrypting it ? Thanks

  • Getting error : Jre not found when using Loadjava command

    Hi folks, I am getting an error when I run the below load java command on a 9.2.0.8 database on Sun/Solaris platform. Command: loadjava -user user/[email protected]:1529:OLS2 -thin -force -resolve -verbose filename.jar Error: /olcdbt/u01/app/oracle/p