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

Similar Messages

  • 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

  • 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

  • New batch number for Draft Good Receipt Purchase Order

    Hello,
    I'm using SBO 8.81
    I'm looking for the table that contains the information about the batch number of a draft good receipt.
    DRF16 contains quantity of batch, but when itu2019s new batch, they are not in OBTN yet (in the table, SBO define object type as 10000068 while itu2019s 10000044 for existing batch)
    The query defined here  is not working as the batches are not in OBTN yet (not in stock)
    I used the profiler trying to understand in which table these data are recorder, without success.
    Any idea ?
    Thank you for your help
    Sébastien
    Edited by: Sébastien Danober on Aug 24, 2011 6:31 PM
    Sorry, wrong forum, I recreate it under SDK

    Hi Sébastien,
    The link is from DRF16 to ODBN:
    select * from DRF16 T0 inner join ODBN T1 on T0.ObjAbs = T1.AbsEntry
    DRF16 has a zero-to-many relationship with DRF1 (ie draft lines)
    Kind Regards,
    Owen

  • 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

  • Time machine says unable to complete back up an eror occurred while creating back up folder

    Time machine shows error message "unable to complete back up an error occurred while creating back up folder" No error code is diplayed but if I turn the whole system off and restart it time machine backs up just the once

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message that corresponds to a failed backup. Now
    CLEAR THE WORD "Starting" FROM THE TEXT FIELD
    so that all messages are showning, and scroll back in the log to the time you noted. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If all you see are messages that contain the word "Starting," you didn't clear the text field.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • Hello I bought a G-Raid GR4 4000 4 TB and used it for a backup with my new Imac27. Now this is all I get. "Time Machine couldn't complete the backup to "G-RAID". to complete backup. An error occurred while creating the backup folder.

    Hello I bought a G-Raid GR4 4000 4 TB and used it for a backup with my new Imac27. Now this is all I get. "Time Machine couldn’t complete the backup to “G-RAID”. to complete backup. An error occurred while creating the backup folder."
    Any idea what I should do?

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message. Clear the text field and scroll back in the log to that time. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If all you see are messages that contain the word "Starting," you didn't clear the search box.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • Error: Time Machine couldn't complete the backup to Time Capsule - Unable to complete backup. An error occurred while creating the backup folder.

    error: Time Machine couldn't complete the backup to Time Capsule - Unable to complete backup. An error occurred while creating the backup folder.

    If you have more than one user account, these instructions must be carried out as an administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Enter the word "Starting" (without the quotes) in the String Matching text field. You should now see log messages with the words "Starting * backup," where * represents any of the words "automatic," "manual," or "standard." Note the timestamp of the last such message. Clear the text field and scroll back in the log to that time. Select the messages timestamped from then until the end of the backup, or the end of the log if that's not clear. Copy them (command-C) to the Clipboard. Paste (command-V) into a reply to this message.
    If there are runs of repeated messages, post only one example of each. Don't post many repetitions of the same message.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Some personal information, such as the names of your files, may be included — anonymize before posting.

  • Batch search strategy based on goods receipt date

    Hello,
    Can some one help me with setting up Batch search strategy based on goods receipt date currently is on batch number.
    Thanks a lot
    Thanks!
    Best Regards
    Srw

    Hi
    If you want to set up Batch search strategy based on goods receipt date......then you have to create GR Date as one charecteristics in T.Code: CT04 and assign this charecter in Class with respect to class type  023
    Then assign this class in Material Master Classification view..
    Make sure in Material master, Purchasing view...you have activated Batch management active check box....
    Then when ever you do GR in MIGO, In batch tab, In classification field maintain the GR Date..
    Then Create sort sequence in  T.Code: CU70 and you can maintain in what basis ie)in assending or desending GR Date you have to search the batch..
    And then Create Batch Search Statergy in MBC1 and there you assign the sort sequence in Details...
    Now  you do your regular procedings.....the material Batch will be searched based on GR Date...
    Reward if useful
    Regards
    S.Baskaran

  • Time capsule won't back up - Unable to complete backup. An error occurred while creating the backup folder. Any ideas?

    I have tried all the resets, the firmware is the latest version, the green light is on.
    But I get this message "Unable to complete backup. An error occurred while creating the backup folder."
    Any ideas?

    Do setup again.. but make sure both your wireless and your ethernet have ipv6 turned on to local link.
    Done this OK, but no idea about IPv6 - something new to me and rather Appley I think?
    Unplug the WAN for the moment.. Just LAN port TC to the MBPr ethernet via thunderbolt.. (thunderbird was the kids puppet series.. Thunderbirds are go!!). Done - New real people Thunderbirds movie coming out soon I believe!!!
    Reset the TC again.. sorry.. !! You're welcome ... done.
    Make sure the ethernet now has an IP address.. 10.0.1.2 - Yep - done that - on ethernet anyway ...
    You need to open the network preferences to find out. Yep - that's good ...
    ****** I then reconnect the TC WAN to the router - is this right?
    And then I think I start going round in circles ... boot, reboot, restart, reboot again ...
    The final result is green light on TC, but error message when trying TM is "Backup disk is not available".
    Then open the airport utility and you should be able to setup the TC.
    Do as little setup as possible and then run the TM backup and see how it goes.
    I have managed to get Thunderbird to LAN on TC to create a folder on TC and copy a file onto it.
    So I guess the drive is working - it must be the software, settings or perhaps even the operator that isn't quite so clever ...
    I named network RFG, named device RFGTC.  RFG network shown as IP 192.168.0.72
    Wireless router is BT Homehub 3 with IP of 192.168.0.254 - is this issuing new IP addresses when rebooting TC?
    I have three wireless networks here - the BT Homehub3 wireless, the TC wireless, and also a D-link power socket ethernet thingy for an ethernet connection to the telly - DHP-W310AV which is also wireless link.  All are effectively connected to the BT Homehub - is there a conflict there?
    Have several times achieved in Airport Utility schematic with internet shown as green, RFGTC shown as green, light on TC green, but no TM backup run ... "backup disc not available."
    And there are no tall building around here to hurl myself off ... at least you can go to Sydney Harbour bridge - not too far away ... it was my son in Sydney that persuaded me to scrap Windows and go Apple ... it's all his fault ...

  • HT3275 I get the following message - "Time Machine could not complete the backup."  "Unable to complete backup."  "An error occurred while creating the backup folder.""

    I get the following message - "Time Machine could not complete the backup."  "Unable to complete backup. An error occurred while creating the backup folder."" 
    This MAC is partioned with Windows 7 with only  50 gig devoted to Windows so my son can play Flight Simulator X on the machine. 
    I have a WD Passport External Hard Drive for the Back Up
    I have spoken with WD Tech Support and they have been fantastic but I still keep getting this message.  Any thought?
    Maxx

    Reboot the TC.. it sometimes gets lost on the network.. are you still actually using 10.6.8 as the problem is more prevalent on Lion and ML it seems is no better.
    You might find reset of the TC is needed. change the names to short, no spaces pure alphanumeric.
    Reset the TM to the new name.. use the A4 in Pondini's great KB.
    http://pondini.org/TM/Troubleshooting.html

  • HT3275 Got the message "Unable to complete backup. An error occurred while creating the backup folder."

    My time machine backup has stopped working. I received an error message that is not one listed on the support page: "Unable to complete backup. An error occurred while creating the backup folder."  I am on a new MacBook pro running Mountain Lion and using a 1 TB Passport drive as a time machine backup. Running DiskUtility finds no problem on the Passport.

    See #C10 in Pondini's excellent Time Machine Troubleshooting.
    http://pondini.org/TM/Troubleshooting.html

  • Batch number issue when posting goods receipt for Subcontracting PO

    Dear expert,
    I always heard there will be issues while posting goods receipt for subcontracting PO. If the component is managered by batch.
    No batch number will be proposed during PGR in MIGO...
    I dont quite understand where is the issue??
    My understanding:
    We have batch managered components and End Product. All have batch numbers, then we PGI the stock to 'SC stock' via 541 movement type.
    Then Vendor will finish the end product and send us back the end product.
    We consumption the components use 543 O movement type? And GR the end product..
    So while goods receipt, the sytem just need pick the existing batch number for both components and finish products..
    Where are the issues???
    Thanks.

    Hoo Laa wrote:
    I have questions for people always mentioning there are issues with batch determination while post goods receipt for subcontracting orders.
    >
    > I am thinking maybe they didnt active the batch determination for 543 movement type..
    >
    > Thanks.
    Hi Hoo,
    You are right!!
    Setting of batch number determination has its importance in Mvt Type be it 541, 543....
    The issue you might have observed would be with Batch Determination in Goods Issues which folks find it bit tough to achieve n make it work for them.
    Cheers!!
    Shiva

  • I am trying to use Time Machine to back-up to an external hard drive and I get the following message.Unable to complete backup. An error occurred while creating the backup folder. Does anyone know what I should do?

    I am trying to use Time Machine to back-up to an external hard drive and I get the following message.Unable to complete backup. An error occurred while creating the backup folder. Does anyone know what I should do?

    Hello Drake, I suspect one or more of the Drives needs repairing, but...
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imaging something not being covered there.

Maybe you are looking for