Cannot add row without complete selection of batch / serial numbers SBO 8.8

Hi
I have written some code to import a goods receipt po document in SAP 8.8
When the item is a batch number I get the message 'Cannot add row without complete selection of batch / serial numbers'
This is my code -
                    doc.Lines.SerialNumbers.SetCurrentLine(0)
                    doc.Lines.SerialNumbers.InternalSerialNumber = batchno
                    doc.Lines.SerialNumbers.ExpiryDate = CDate(bbdate2)
                    doc.Lines.SerialNumbers.ReceptionDate = CDate(Now.Date)
Can anyone see what is wrong please ?
Many thanks
Regards Andy

Hello
You would like to import items with batches or items with serials?
This code is importing items with serials.
Hereby an expample for each cases
'bacthes
        oDoc.Lines.BatchNumbers.SetCurrentLine(0)
        oDoc.Lines.BatchNumbers.BatchNumber = "1"
        oDoc.Lines.BatchNumbers.Quantity = 1
        oDoc.Lines.BatchNumbers.Add()
        oDoc.Lines.BatchNumbers.SetCurrentLine(1)
        oDoc.Lines.BatchNumbers.BatchNumber = "2"
        oDoc.Lines.BatchNumbers.Quantity = 1
        oDoc.Lines.BatchNumbers.Add()
        ' here you should apply condition: sum of batch qty = oDoc.Lines.Quantity -this completes the selection
        oDoc.Lines.Add()
'serials
        oDoc.Lines.SerialNumbers.SetCurrentLine(0)
        ' Use the correct line for selection of serial numbers:
        ' I have the settings "None" -> Systemserialnumber will be used
        ' query: SELECT T0.[SriUniqFld] FROM OADM T0
        oDoc.Lines.SerialNumbers.SystemSerialNumber = "1"
        'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
        'oDoc.Lines.SerialNumbers.InternalSerialNumber = "1"
        oDoc.Lines.SerialNumbers.Add()
        oDoc.Lines.SerialNumbers.SetCurrentLine(0)
        oDoc.Lines.SerialNumbers.SystemSerialNumber = "2"
        'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "2"
        'oDoc.Lines.SerialNumbers.InternalSerialNumber = "2"
        oDoc.Lines.SerialNumbers.Add()
        ' here you should apply condition: count of serialnumer lines = oDoc.Lines.Quantity
Regards
János

Similar Messages

  • Cannot add row without complete selection of batch/serial numbers while creating Goods receipt purchase order

    Error:Cannot add row without complete selection of batch/serial numbers
           Dim oPDN As SAPbobsCOM.Documents
           oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
                         Dim serno As String = "SH-A1,SH-A2"
                        Dim sernoval As String() = serno.Split(",")
                        Dim mnfser As String = "SH-B1,SH-B2"
                        Dim mnfserval As String() = mnfser.Split(",")
                        For k = 0 To sernoval.Length - 1
                            oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
                            oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
                            oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
                            oPDN.Lines.SerialNumbers.SetCurrentLine(k)
                            oPDN.Lines.SerialNumbers.Add()
                        Next
                    oPDN.CardCode = "C232323"
                    oPDN.Lines.ItemCode = "A00004"
                    'oGR.Lines.LineNum = 0
                    oPDN.Lines.BaseLine = 1
                    oPDN.Lines.BaseEntry = 202
                    'oGR.Lines.BaseRef = 203
                    oPDN.Lines.BaseType = 20
                    oPDN.Lines.Quantity = 1
                    oPDN.Lines.UnitPrice = 2
                    oPDN.Lines.WarehouseCode = '01'
                 oPDN.Lines.Add()
                 lRetCode = oPDN.Add

    Hi Vasanth,
    Invert the SetCurrentLine () and Add() at the end of the SSSerialNUmbers loop.
    Regards,
    Eric

  • Can you please help me resolve this issue on Batch Management Completion. "Cannot Add row without complete selection of batch number." Message 29-77

    'Another user or another operation modified data, to continue open the window again ' Inventory Transaction Log' (OITL)(ODBC-2039) (Message 131-183). If I click again on add I get the following message : 'Cannot add row without complete selection of Batch / Serial Nos. [Message-29-77]
    Path:
    Inventory -> Item Management -> Batches -> Batch Management - Complete form.
    Before this I use Return Components on Receipts from Production as I am mistakenly issued it more than what was needed.
    Were anyone be able to explain why it worked for certain items  and not for others? I have successfully done  “return components with some batches"

    Hi Nagarajan,
    I'm one of colleague of caterine, we only accessing the batch management-complete window, no other window is open, still the error occurs; see image below
    Before that error occurs(in image); first error we encounter was batch number is already exist, then upon click add another person modified the window; but we tried to restore the db then try to add the batch number in different transaction like SI 1658(Goods Issue), and it is okay.. but on the SI 50003 which is Receipt from production we can't add it.
    Hope you can help us.
    Regards,
    Lean

  • When I type I cannot add text when I select the text area and double click. Why?

    When I type I cannot add text when I select the text area and double click. Why?

    Premiere Elements 11  trial version for macMac computer photos uploaded to the timeline just finetrying to make a new title, streaming or in a framedouble clicked on the text in the box and nothing shows up when I type on my keyboard. I can delete the words that are there but not type in new ones. I selected the type and size, etc.
    Thanks if you can figure it out. I gave up!
    I may just un-install it all together if I can't get to work.Joanne
    Date: Thu, 9 May 2013 17:59:08 -0700
    From: [email protected]
    To: [email protected]
    Subject: When I type I cannot add text when I select the text area and double click. Why?
        Re: When I type I cannot add text when I select the text area and double click. Why?
        created by A.T. Romano in Premiere Elements - View the full discussion
    Joanne Murray J2 What version of Premiere Elements are you using and on what operating system (including 32 or 64 bit) is your Premiere Elements installed? Forgive the questions if you have been there and done that, but I do not want to take anything for granted that might hinder a speedy resolution to your issue. Are you opening an already created title that is sitting on the Timeline in order to edit it in the Titler or are you trying to create a new Title (Default Text or other)? Do you know how to work with the Selection Tool and Type Tool in the Titler? Once I know what version of Premiere Elements that you are using, I will give you specific how to details. Thanks. ATR
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5307494#5307494
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5307494#5307494
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5307494#5307494. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Premiere Elements by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • 'Master data type User table cannot add row'-DTW error

    Hi All,
          I am creating a template for user define Master data table from DTW, when i am trying to port data by using that template through DTW. it is giving error like--'Master data type User table cannot add row'
    So can any one have solution for this.
    Regard's
    Hari

    Hari,
    Please see SAP Note 1234690 on the SAP PartnerEdge Portal.  This seems like a similar problem although the example is using the Business One SDK which uses the DI API.  The DTW also uses the DI API ... so there may be a relation.
    You may want to check the latest patch level for SAP Business One 2007A as the note says it is a known issue.
    Eddy

  • Cannot add mac pro to my products as serial number is associated with another

    I cannot add my mac pro to my products as serial number is associated with another Apple ID.???

    This is a User-to-User forum. We have no means to escalate such problems.
    You will have to contact Apple directly, such as Customer Service.

  • Include batch/serial numbers with Count Sheets

    When performing a cycle count for items that are managed by batch or serial numbers, it is necessary to record the count by batch or serial number, since discrepancies must be entered with this information.  There should be an option or alternative PLD layout that would include a list of batches or serial numbers with quantity > 0 in the warehouse.  Users could then enter the count for each batch, or check off the serial numbers that are counted.

    Hi Marcia,
    I just made a query to pull that data.  I had the item and item group table in there because we were filtering by item group.
    SELECT
      T0.[ItemCode]
      ,T0.[ItemName]
      ,T0.[BatchNum]
      ,T2.[ItmsGrpNam]
      ,T0.[Quantity]
      ,NULL as 'Counted'
    FROM
      OIBT T0 
      INNER JOIN OITM T1 ON T0.ItemCode = T1.ItemCode
      INNER JOIN OITB T2 ON T1.ItmsGrpCod = T2.ItmsGrpCod
    WHERE
      T0.[Quantity] > '0'
    It will give you the list of all batches with quantities to count.  Then you can make a PLD query layout and print that.  Problem is you have to aggregate the items into a total by item code anyways for doing the counting, but then you need to have the batch data when posting.
    Hope that helps,
    Mike

  • Why am I ineligible for Creative Cloud Complete when I have serial numbers for CS3 products??

    I am trying to purchase Creative Cloud Complete for $29.99, as I have previously purchased Illustrator, Photoshop, and InDesign CS3, and have the serial numbers. However, when I entered the serial numbers on the form to order Creative Cloud, it said I was not eligible, but had no explanation why.

    Rave wrote:
    Hi mccalel,
    CS3 is a very very old software and is not a qualifying version for upgrade.
    Not sure I follow.
    The discounted promotional deal (for the first 12 months) for existing owners of CS3-CS6 suites is what the OP is trying to take advantage of.
    https://creative.adobe.com/plans

  • Batch/Serial No error when adding Stock Transfer

    Hello,
    I'm trying to add Stock/inventory Transfer thru SDK Code using the SAPbobsCOM.StockTransfer Object. It works fine except for items with, Manage by serial no property.
    Here is the error i'm getting:
    WTR1.WhsCode line: 1, 'Cannot add row 109106010 without complete selection of batch/serial numbers.'
    Please help, how can i select batch/serial nos.?
    Edited by: Rohanp on Nov 23, 2009 12:30 PM
    Edited by: Rohanp on Nov 23, 2009 12:31 PM

    Hello
    when you adding the  inventory transfer, use the following code as an example
            oDoc.Lines.SerialNumbers.SetCurrentLine(0)
            ' Use the correct line for selection of serial numbers:
            ' I have the settings "None" -> Systemserialnumber will be used
            ' query: SELECT T0.[SriUniqFld] FROM OADM T0
            oDoc.Lines.SerialNumbers.SystemSerialNumber = "1"
            'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "1"
            'oDoc.Lines.SerialNumbers.InternalSerialNumber = "1"
            oDoc.Lines.SerialNumbers.Add()
            oDoc.Lines.SerialNumbers.SetCurrentLine(0)
            oDoc.Lines.SerialNumbers.SystemSerialNumber = "2"
            'oDoc.Lines.SerialNumbers.ManufacturerSerialNumber = "2"
            'oDoc.Lines.SerialNumbers.InternalSerialNumber = "2"
            oDraft.Lines.SerialNumbers.Add()
    Of course you should know the serial number you would like to transfer
    Regards,
    J.

  • Bin Location In Pick List - Cannot select batch/serial number after pick list created

    Hi,
    When i set up the item master as "Issued Primarily By Bin Location". There are no way for me to assign batch/serial in back end. In contrary, when item set up as "Issue Primarly By Batch/Serial Number", SAP prompt to pre-select the batch/serial no. during creating pick list.

    Hi,
    Please check this thread for the reason why system information is not correct.
    Variables - Sap business one
    Thanks & Regards,
    Nagarajan

  • 2 table rows - one "Add Row" button

    I am a novice, not alot of training with javascript.
    I need 2 table rows added to a table without having multiple "add row" buttons. I would like to be able to add both rows with one button.
    right now the button is set for the most current row:
    Table1._Week.addInstance(0);
    the row above is Table1._Codes
    How do I script this in order to have both rows appear when the Add Row button is selected?

    Hi,
    A couple of things without benefit of seeing the form.
    Are the repeating rows called:
    'Week' / 'Codes'?
    OR
    '_Week' / '_Codes'?
    The underscore '_' is shorthand for instanceManager, which is used to call the addInstance. If I assure that the repeating rows are just 'Week' / 'Codes' then the following javascript in the click event of the button should work:
    Table1._Week.addInstance(true);
    Table1._Codes.addinstance(true);
    This should add a row to each repeating row in one button.
    Please note that the parameter for the addInstance is either 0 (false) or 1 (true), which relates to whether the row will be data merged with the form.
    Hope that helps,
    Niall
    hmmm, see you have another thread on this: add multiple rows with add a row button ???

  • Add row in Smart View

    Hello,
    I've created a form in Planning and have allowed users to dynamically add rows. This works fine while I'm in Workspace but if I open the form in Smart View, I cannot add rows. How can I add rows while in Smart View??
    Thanks!
    Edited by: user10701291 on Apr 10, 2009 12:15 PM

    Hi,
    have a look at polymorphic view objects
    http://download.oracle.com/docs/cd/E21764_01/web.1111/b31974/bcadvvo.htm#CEGDCCCB
    Frank

  • Exactly 1 serial numbers must be selected (instead of 2)

    Hello friends
    i give  stock posting to unrestricted, block , return delivery etc and save a pop up will come for each of the posting asking for serial numbers
    then i selected all serial nos.(i have 2 serial nos,out of 2 ,one accpted ,one rejected) then system shows thefollowing message
    Exactly 1 serial numbers must be selected (instead of 2)
    Message no. IO212
    Diagnosis
    You or another user have entered an incorrect number of serial numbers.
    The maximum number of serial numbers may equal the amount of document items. If there is a serial number obligation, this must equal the document quantity.
    System Response
    The system cannot perform the function.
    Procedure
    Delete the serial numbers or add further serial numbers.
    How to do UD for this serial nos(i tried both the ways i.e selected one at at time also i tried both at a time,but system showing above message)
    Thanks & regards
    Gajendranath

    Hi
    As per my understanding you have 2 SR numbers.
    Now you want to perform the multiple stock posting like ,to unrestricted or RD or block stock.
    What you can do is when you get serial number pop up,
    Suppose there its is saying block stock then select the serial numbers which you don't  want to put in to block stock.
    now delete all the serial numbers which you have selected in such a way that only the serial number which you want to  put into block stock will remain ,then select the same & continue...
    Now say you want to do RD of serial number system will propose you all serial number (excluding you have put into block stock)
    select and delete irrelevant SR numbers & continue.
    Now last will be unrestricted which will be rest of the numbers ....system will put this automatically.
    I hope you understood.
    Regards
    Sujit

  • Add a stolen iphone to icloud using serial number from original box

    My iPhone 5 was stolen after I upgraded to the iPhone6.  My iCloud only has my new iPhone 6 listed.  Is there a way I can add my stolen iPhone 5 to my iCloud using the serial number or IMEI/MEID from original iPhone 5 packaging/box without having the iPhone 5 in hand?

    You cannot add a device to iCloud with a serial number or any other number. The only way to track the device is if Find My iPhone is activated prior to the device being stolen. If you turned off Find My iPhone and/or removed the device from your iCloud account, then you will not be able to track it.

  • DI-Error: You cannot select batch or serial numbers for a closed row

    Hello Experts,
    I have several B1-Systems connected to R/3-Systems via B1iSN.
    In B1 for example I have 2 rows in Purchase Order. One row was closed by a goods receipt - 1 row is still open.
    From our R/3-System we send Order-Acknowledgements to B1. Because line 1 is already closed we want to ignore row 1 and update only information in row 2. By using KeyExpansion I could solve that requirement (check in B1-System if row is already closed -> insert row in IDoc only with LineNum). For example:
    <Document_Lines>
      *<row>* <!-- ignore -->
        *<LineNum>0</LineNum>*
      *</row>*
       <row> <!-- update -->
        <LineNum>1</LineNum>
        <ItemCode>ABCDEFGHIJK</ItemCode>
      </row>
    </Document_Lines>
    Unfortunately DI-API does not allow to update each row separated. I always have to send all rows in IDoc even if one row is closed.
    For one B1-Company batchnumbers on every transaction is required. When creating Goods Receipt we have to define a batchnumber for item. But now if I want to update a open row (as described above) I get an B1iSN-Error:
    DI Error: (-10) You cannot select batch or serial numbers for a closed row
    Any ideas to solve that Error? Thanks.
    Regards,
    GB

    Hi Bastian,
    I have still one open question. How to tread Document Lines Additional Expenses?
    If I use the logic of visual order I still get the error "You cannot select batch or serial numbers for a closed row".
    Example:
    <Document_LinesAdditionalExpenses> 
    -      <row>
               <LineNumber>4</LineNumber>*no expenses*
    </row>
    -      <row>
               <LineNumber>0</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>1</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>2</LineNumber>*no expenses*
    </row>
    -     <row>
               <LineNumber>3</LineNumber>*expenses correct*
               <ExpenseCode>3</ExpenseCode>
               <LineTotal>10.00</LineTotal>
    </row>
    </Document_LinesAdditionalExpenses> 
    How can I solve that?
    Thanks and regards,
    GB

Maybe you are looking for

  • Sales invoice Price difference

    Hi gurus, Please help me to solve this  scenario. I sale 10 units  material for 100 each  price to my customer. But due to some problem if he returns my material. When we Replace the material there is a Price Difference. Now we are using Moving Avera

  • Need validation on PO header payment terms forn a Pur Org

    We need to make the payment term field at PO header as non-editable after PO release for a company code/Pur Org. However, other company code/PurOrg, it should be editable thru ME22N after PO release. Pls suggest a solution. Rgds, Ganesh

  • Acrobat X Standard - slow to open

    Good morning; I am working to resolve an issue with Acrobat X Standard (10.1.5).  It appears that loading stamps when Acrobat opens causes a timely delay, depending on the number and size of stamps files.  This has not previously been an issue with 8

  • How to Execute SSIS package through MySQL Procedure

    Hi Everyone, How to Execute SSIS package from MySQL Stored Procedure. Please share your suggestions on this. Regards, Vaishu

  • About MIRO and MIGO

    Hello, I am new for FI module.I want to know about MIRO and MIGO relation and what is it.and from which tables i can find values of it? thanks soniya