How Vendor Number appears in Batch

In table MCH1 there is a field LIFNR (Vendor account number) which is populated for some batches and not for others. All of these are purchased items from a vendor. Is there some customizing needed to get the vendor number to always appear in the Batch information? Anything else to do besides manual procedure? We need it to be automatic in our company.
Thank you

Suppose I have placed a Purchase Order for 'X' Material for 500 qty. At the time of GRN system generates one batch number for this 500 qty. let us say batch B1 is generated by the system. But my requirement is I have to maintain uniqueness in this batch for every quantity. this uniqueness like B1-1, B1-2, B1-3, B1-4 ..........................B1-500. So that they can trace which material is in which placce and to whom we have sold out. How to maintain this scenario in batch management.
Please don't suggest "use serial number for this scenario". This is not acceptable for my scenario.
You should use serial number management. There's no point in speaking about batch if you give batch number for each pc of your material.
If you want to give a unique ID for each piece of your material, your "batch" is called serial number...
batch - Longman dictionary:
quantity of food, medicine etc that is produced or prepared at the same time
batch - SAP glossary:
Subset of the total quantity of a material held in stock, which is managed separately from other subsets of the same material.
Examples: different production lots (such as paints, dyes, wallpapers, and pharmaceutical products), delivery lots, quality grades of a material.
serial number - Longman dictionary
a number put on things that are produced in large quantities, so that each one has its own different number:
serial number - SAP glossary
Number that you give to an individual item of material in addition to the material number, in order to differentiate that individual item from all the other items of the material.
The combination of material and serial number is unique.
So, I think you should give the reason why you don't want to use SAP standard solution...and you should justify your requirement because you seem to be against the meaning of batch & serial number....
Regards,
Csaba
Edited by: Csaba Szommer on Apr 5, 2009 6:52 PM
Edited by: Csaba Szommer on Apr 5, 2009 6:54 PM

Similar Messages

  • How to retrieve the vendor number during creation of Purchase Order?

    Dear SAP experts,
    For our Purchase Orders, during PO creation (t-code ME21 or ME21N) we want to achieve the following:-
    1) default the delivery address to our plant A address if the vendor is local and
    2) default the delivery address to our plant B address if the vendor is foreign.
    At the moment, we are trying to use the user exit enhancement "MMDA0001" to achieve the above.
    The problem is how to retrieve the vendor number from the screen so we could pass the vendor number to ZXM06U32 to check the ktokk field in LFA1 table in the whether the vendor is foreign or local.
    Thank you in advance.
    Regards,
    Alex

    u can do one thing, create 2 partner function, like 1 for local, and second for import vendor.
    or make 2 batch  n activate vendor batch and make mandatory field from SPRO. 
    then goto SHD0, and do one by one step. first time take 1st requirement and second time take second . like that make two variant .
    i dont know how much it will be helpful. bt i want to suggest smth like that only.
    or, go for ABAPER help
    thanks
    nisha

  • Vendor Number in Batch Info

    In table MCH1 there is a field LIFNR (Vendor account number) which is populated for some batches and not for others. All of these are purchased items from a vendor. Is there some customizing needed to get the vendor number to always appear in the Batch information? Anything else to do besides manual procedure? We need it to be automatic in our company.
    Thank you

    One way of solving this can be by activating the below user exit
    Enhancement - MBCF0002
    Function Module - EXIT_SAPMM07M_001
    This will get triggered before the save.
    So you can try with this exit.
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=5207054&messageID=4012750">As suggested by Alfred Kingsley!</a>

  • Batch gets skipped or duplicate batch number appears

    Hi all,
    What should I have to do if Batch gets skipped or duplicate batch number appears while releasing Process Order?

    Hi,
    619913
    I can only tell you something about the skipping.
    You cannot prevent this completly in standard, please see note 619913 question 6.
    6.  Question:
         How can you achieve a chronological assignment of batch numbers
         without any gaps?
         Answer:
         A chronological batch number assignment without any gaps is
         impossible.
         Chronological batch numbers are achieved by using the internal batch
         number assignment. The absence of gaps cannot be guaranteed, however
         (cancelled entries, termination, /N, etc.).
         Gaps in batch number assignment can be eliminated by explicitly
         searching for them in the user exits for batch number assignment
         (EXIT_SAPLV01Z_001 through _004) - they can also be determined in a
         job and stored in a customer-specific table.
    Regards,
    Sabine

  • When I create a text message from my contact on my iphone 5, the contacts mobile number appears and not there name.  But when they respond to my text, is shows up as a new text message with there name.  How do I fix this?

    When I create a text message from my contact on my iphone 5, the contacts mobile number appears and not there name.  But when they respond to my text, is shows up as a new text message with there name.  How do I fix this?

    Double click the home button and swipe up the messages app to stop it, then open the app again. This pretty much completely stops the process and freshly opens it again, resolving problems at times. I have had this happen before as well on my iPad, I get a banner, check messages, and nothing new is there.
    If that doesn't work, close the app like suggested above, but then restart the phone by holding down the home and lock button for 10-15 seconds until the apple logo appears.

  • How to get the vendor number that was created using xk01..?

    Suppose i am creating a vendor with all the information by using a bdc program.
    In the same program if i want to go to the XK02 of that particular vendor that was created recently....how it possible..?
    Means how to get that particular vendor number that was created recently...?

    Hi...
    You Can Get the Vendor number after Calling the Transaction 'XK01' as below.
    <b>Declare a table for Collecting messages :</b>
    DATA: T_MSG TYPE TABLE OF BDCMSGCOLL,
              WA_MSG TYPE  BDCMSGCOLL.
    <b>Then Call Transaction Statment:</b>
    CALL TRANSACTION 'XK01'
               USING T_BDCDATA
               MODE 'N'
               MESSAGES INTO t_msg.
    if sy-subrc = 0.
      READ TABLE T_MSG INTO WA_MSG WITH MSGTYP = 'S'.
                                                                    MSGID = 'F2'
                                                                    MSGNR =  '175'.
    <b>Note: Bcoz the XK01 will issue this message</b>
      if sy-subrc = 0.
      write: / WA_MSG-MSGV1.  "This will contrain Vendor Number
    endif.
    endif.
    And you can also Try the Other method i.e. after the Call transaction statement
    <b> GET PARAMETER ID 'LIF' field V_LIFNR.
      WRITE:/ V_LIFNR.</b>
    Reward if Helpful.

  • How do you increase the maximum number of migration batches using EAC?

    When I try to run a new batch, I'm getting the following error message:
    The maximum number of migration batches is already running. Please remove a batch before you add another one.
    How do I increase the maximum number of migration batches using EAC? Thanks for your help.

    Hi WinndowsGuy,
    Is there any update on this thread?
    Thanks,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Simon Wu
    TechNet Community Support

  • Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    Deleted cell number appears (along with the edited number) when sending a text.  How do I get rid of it?

    It has nothing to do with iOS 6. It's always been that way. Given that it's been this way for so long, one assumes that Apple knows about it and has their own reasons for not changing it.
    Restore the phone as new, not from back up to delete the numbers. Or, wait until the cache gets overwritten.
    Best of luck.

  • 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

  • How to derive Company Code and Vendor Number from CDHDR / CDPOS ?

    Hi everyone,
    This is my first post and my apologies if this is a wrong forum to ask this.
    I'm creating an analytic that will track changes to the vendor master.  I know that I have to look into CDHDR and CDPOS tables and that CDHDR.OBJECTCLAS = KRED.
    However, part of the requirements is to be able to filter the results by Company Code and Vendor Number as well.  How do I do this? How can I link CDHDR to LFA1/LFB1 to get the company code and vendor code?
    Any information will be highly appreciated
    Thanks!

    I think you would have gotten answers sooner in the abap forum :P. Anyways the change pointer tables are kept in a different format, not in the normal flatly structured tables. What this means is that the data which comes through the pointer tables are somewhat encrypted. The object class and id present you records; Each change in master data (where the option is set) is recorded in these pointer tables.
    I believe there is a function module for converting the data into a readable format; that data should have your company code/vendor number in it.  You cannot link the chdr and lfa tables directly- you will need to first convert the data from the pointer tables

  • How to find the Transactions using vendor number ranges

    Hi All,
    How can we find out the employee vendor transactional data ?
    and what are the Tcodes used to find it?
    Are there any finance transactions which allow vendor number?
    Advance,
    Thnks

    Hello Gayatry,
    1. Goto ST03. Select choose for analysis. Choose only one application server  at a time in case you have mutiple application servers. Choose time period of your choice.
    2. In the next screen from menu choose GOTOPROFILESUSER PROFILES. Here you will get the list on users who have worked on that application server.
    3. Double click on the required user and you will get all the transactions he/she has executed.
    4. In case you select TOTAL in step 1  and then follow the steps 2 and 3 you will only get the list of application server on which the user has worked and not the transaction details.
    Regards.
    Ruchit.

  • How to fix where page number appears

    I completed book and submitted to iTunes via Producer. No errors noted. But there is one that I had to do a workaround for. Randomly (?) a page number appeared in the middle of the page rather than in the lower corner. I couldn't access it to move it or delete it. Does anyone know how to fix it or what I have done wrong? I made a small box and copied over the page numbers that appeared out of place on the page and then made the text flow around it so no one would know there was a page number there. I would like to fix it, though. Help! Thanks!

    What  I find confusing is that you say could not move or delete the number...but it will move once you place a text box with wrap.
    In the  template, make the footer number editable ...in Inspector. second icon right. leave unlocked till you resolve all problems
    There are times when changing objects in the template layout  have little or no effect  on a work page, so at times when moving an object and saving changes in fact duplicates the object on the work.
    If the footer page number box is moved out of place and you cannot see the number in iBA work page, it because it has been pushed down a layer or more.  The only way to resolve this is to bring it to the front..this will dhow the outline of every object that is not visible..then by moving content to make it visible..and then move it into place and then rebuild your page.
    You can try selecting everything and in Arrange ..bring To front..it may leave the page number box visible.
    Apple may yet issue a ticket about hidden objects, unless the book  got away with it and is in the store.

  • How to get Vendor number form Address number

    Hi all
    I need help in getting vendor number using address number. I need best performance in this process.
    I have tried
    select single lifnr
      from LFA1
    where adrnr = address
    put this is not good in performance.
    Do any one know better way?

    Hi Salam
      As your requirement is
    <b>address > ????? > LFA1</b>
    Dieter has provided ADRV to replace "?????" in the above.
    so it is address > ADRV > LFA1.
    Substitute <b>address number</b> for field ADDRNUMBER, <b>'LFA1'</b> for field APPL_TABLE in table ADRV to check the result in field APPL_KEY which is combination of key fields in table LFA1 i.e MANDT and LIFNR.
      Please award points to Dieter for this wonderful tip.
      Thanks for the tip Dieter.
    Kind Regards
    Eswar

  • How to caculate  with holding tax using vendor number

    Dear All,
    I need to calculate and simulate the with holding tax amount before the FI document post. input should be the vendor number fisical year and the company code and the with hoding tax base abount. plz help me to do this
    regard
    nawa

    Hello,
    For a record in BBSEG you can have multiple records in the data file which corresponds to Structure BWITH which allows more than one value for field WT_WITHCD. For ex:
    BBKPF
    Field1      Field2
    a     bb
    x     yy
    BBSEG
    Field1      Field2     Field3     
    a     bb     ccc
    x     yy     zzz
    BWITH
    Field1      Field2     Field3     WT_WITHCD     
    a     bb     ccc     WT_WITHCD1
    a     bb     ccc     WT_WITHCD2
    a     bb     ccc     WT_WITHCD3
    x     yy     zzz     WT_WITHCD7
    x     yy     zzz     WT_WITHCD8
    x     yy     zzz     WT_WITHCD9
    Hope this gives you some help to proceed further.
    Best Regards, Murugesh AS

  • How to get Partner Number based on Vendor Number

    Hi,
       I have vendor number(LIFNR), I would like to find out the partner number(PARNR) for this vendor number. I tried a lot but unable to find it.
    Any help will be appreciated.
    Thanks,
    Ibrahim

    Hi...
    have u checked the table VBPA(table for Sales Document: Partner)..in this table you can get the PARNR(Number of contact person)..
    Hope this solve your problem.
    Thanks
    shankar

Maybe you are looking for