Problem with SerialNumbers with 2007 PL 47: BOM in documents does not work

Hi everybody.
I have the following problem: i need to create documents through DI API (2007 PL 47).
The items in document are BOM (sale type) with just one item as a child: this item child is managed with serial numbers.
When i try to create a delivery notes with DI API, i receive the following error:
"Found error:-10,You should use existing serial/batch numbers for this document type  [(----) 29-51]".
The following code (VB . NET) is used for the insertion of the delivery (just one line with only one item BOM, with only one item child):
            Dim nErr As Long
            Dim errMsg As String = ""
            Dim delivery As SAPbobsCOM.Documents
            Dim deliveryLines As SAPbobsCOM.Document_Lines
            Dim serialNumbers As SAPbobsCOM.SerialNumbers
            delivery = oCompany.GetBusinessObject(BoObjectTypes.oDeliveryNotes)
            delivery.DocObjectCode = BoObjectTypes.oDeliveryNotes
            delivery.CardCode = "C0020"
            delivery.DocDate = Today
            delivery.DocDueDate = Today
            delivery.TaxDate = Today
            ' CREATE A LINE WITH BOM
            deliveryLines = delivery.Lines
            deliveryLines.SetCurrentLine(0)
            deliveryLines.ItemCode = "GARANZIA"
            deliveryLines.WarehouseCode = "Mc"
            deliveryLines.Quantity = 1
            ' ASSIGN A SERIAL NUMBER RELATED WITH CHILD ITEM IN A BOM
            serialNumbers = deliveryLines.SerialNumbers
            serialNumbers.SetCurrentLine(0)
            serialNumbers.SystemSerialNumber = 2
            delivery.Add()
            oCompany.GetLastError(nErr, errMsg)
            If (0 <> nErr) Then
                MsgBox("Found error:" + Str(nErr) + "," + errMsg)
            End If
Obviously the SystemSerialNumber used is available in a warehouse.
The process, through the BOne interface, work correctly.
The same code work correctly with the 2007 PL 42, but does not work with the 2007 PL 49.

Hello everybody,
I have the same problem that Marco has, still can't add the serial numbers for child items managed with serial numbers when the item in the document lines objet is a BOM, sale type.
I'm using SBO 2007 SP01 PL08 and I didn't try the code I'm using on a previous PL.
I wonder if any body has the solution.
Thanks in advance.

Similar Messages

  • Resizing with my mouse using touch pad mac book pro does not work. how can i correct this problem?

    resizing with my mouse using touch pad mac book pro does not work. how can i correct this problem?

    See:
    * [/questions/777886]

  • 2002 G3 600 mhz iMac display stays dim with an unidentified sign displayed.  The contrast control does not work.

    My display screen is dim and the contrast control does not work.  There is a sign on the screen that I have been unable to identify.  It is a white circle outline with a half moon solid circle within it.  Does anyone know what's wrong?

    There is a sign on the screen that I have been unable to identify.  It is a white circle outline with a half moon solid circle within it
    That would be a screen contrast symbol     
    My display screen is dim and the contrast control does not work.
    Did you reset the PRAM? http://support.apple.com/kb/ht1379 And the pram battery may need to be replaced if it is over 3 years old it is under the iMac under the ram cover and there is a little button in there to reset the pmu as well. you have to have it pluged in when you do a pmu reset. there is a lot more stuff to try before the worst case scenario that is a bad PAV board the Pav is what runs the monitor and if it is going bad That may be a syptom that it is haveing and they can not be fixed (Well not for under $250 and that is useing old parts because they do not make them any more) but that wood be worst case scenario. Lets just hope it just needs to be reset Try that and Keep us posted

  • With ios 7 switch from photo to video camera does not work neither on iphone 4 nor on ipad 3rd generation retina what can be the problem ?

    With ios 7 installed 2 days ago on my iphone 4 and on my ipad 3rd generatiion it is not possible to switch the photo camera to video camera . What is the problem ? Did someone meet the same problem ?

    Did you try swipe up and down to change?

  • Problem with activation of Office 2010 Professional, 'help' web link does not work

    I am having problems activating a copy of Office Professional 2010 purchased retail. I am being told that the product key is not valid, though I have re-entered it twice. I click on the 'more information' link but the page doesn't load: http://wwwppe.dns.microsoft.com/howtotell/geo/content.aspx?pg=geo_off&displaylang=en?ERR=0xc004c003&LCID=1033&MSG=4&PID=02257-210-6072776-49466&ErrorCode=0xc004c003
    Please advise what I should do.
    Thanks

    Could you please follow the instructions below, run the commands in green, and paste your output?
    Open anelevated command prompt
    a.The
    path below is the default install path, so it may be different if you've customized your install
    b.If
    you’re using 32b Office on a 64b OS, you may need to run it from the “Program Files (x86)” folder
    c.Start,
    search for ‘cmd’, right click on the command prompt window and select “Run as administrator”
    d.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatusall
    Trigger activation
    a.Launching
    an Office application will then prompt you for activation via the UI. Alternatively you can trigger it using this command:
    b.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /act
    Check the status
    a.The
    following command will show the licensing status. Alternatively in the Office UI you can view the status by clicking File, Help.
    b.cscript
    "%ProgramFiles%\Microsoft Office\Office14\ospp.vbs" /dstatusall
    Ted Way [MSFT], Program Manager, Microsoft Office: Enterprise Licensing, Group Policy, and 64-bit Office

  • HT5887 I am wondering if somebody else have problems with Airdrop, I just configured the option and it does not work. My friends can see me, but I can not see them.

    I am sad, I have days trying to use Airdrop, my friends can see me, but I can not see them. I  turned on my Wi-Fi, Bluetooth and I selected the option "available for ALL".... and nothing. I can receive photos from my friends... mean It work for them. I just restarted the phone to the basics configuration but it does not work, my phone still does not recognize my contacts.

    warranty will cover it. Did you try only by changing the power adapter or did you change both cable and power adapter?
    if you did the latter, see this page: https://www.apple.com/support/iphone/repair/battery-power/
    you'll be able to contact Apple Support from there.

  • I have purchased a logitec cover with blootooth keyboard and have discovered that auto capitilisation does not work. This is very inconvenient. How can I fix this issue kvp59

    Blootooth keyboard auto capitilisation

    cor-el...I cannot thank you enough!!! It took me a while to wrap my mind around your solution to my problem as well as to have the confidence to attempt what you had instructed me to do. After reading your instructions many times it finally made sense to me as to what I needed to do and not be afraid of making changes in my computer for fear I may do something wrong. After following your instructions and making the change I am now able to use the plugin that works with imikimi.com. Have a great day!

  • What do I do with my iPod Touch 4g when the home button does not work and when I plug it in to charge it always says that charging is not avaible with this accesory?

    iPod Touch 4g home button won't work plus will not charge properly

    Take it to a reputable third-party repair shop. Apple will not touch it after you have opened it up and tinkered with the works.

  • Is there a keyboard shortcut to launch firefox 3.6.3 with windows vista? Hot key (ctrl + alt + key) does not work.

    The hot key (ctrl + alt + key) does not work. This is in Windows Vista.

    Thank you Morbus and Cor-el, for your prompt replies. Here's what I did: I've placed the Firefox icon in the quick launch toolbar. So I right-click this firefox icon>Properties>Shortcut tab>in Shortcut Key field, add X (the word "None" changes to "ctrl + alt + X")>Apply>Okay>and that closes the dialog window.
    Then, to try the new launch short-cut, I press and hold down, in order, ctrl, then alt, then x (holding all three down) . . . and nothing launches.
    I thought this would do it! So any further thoughts would be a splendid help ---- many thanx!

  • BOM Change Log does not work

    The change log for BOMs has been functional since the implementation of B1 in September of 2007.  Recently, it appears that the change log is not long keeping track of changes.  Has anyone ever seen this before, or have any ideas on how fix this issue?
    Thanks,
    Jordan

    Hi,
    you are still using old version. Maybe the change
    The maintenance even has been stop by SAP support. The PL upgrade is also unavailable. Maybe you could contact partner around your country ask them about the latest PL of B1 2004B.
    if you escalate it to them, I am not sure they will answer.
    You need to upgrade to the new version i.e. 2005B. The maintenance is still available.
    Anyway, try this query :
    SELECT count(T0.[LogInstac]) FROM AITT T0
    Let me know how much it has been
    Rgds,

  • Problem: x300 BIOS (v1.04 and v1.05) VT Enabled does not work

    I'm unable to get VT to work by setting the BIOS VT setting to enabled.  I've run utilities that indicate that VT is locked / disabled regardless of the setting in the BIOS.  Does anyone else experience this?   Try using GRC's securable utility for identifying if VT is locked, not present or enabled...  http://www.grc.com/securable.htm
    Solved!
    Go to Solution.

    Welcome to the forum, and thanks for coming back to share your solution!
    Sorry no one was able to offer assistance sooner.  Sometimes it takes a day or so for another forum member who knows the answer to see a message and respond.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Jane
    2015 X1 Carbon, ThinkPad Slate, T410s, X301, X200 Tablet, T60p, HP TouchPad, iPad Air 2, iPhone 5S, IdeaTab A2107A, Yoga Tablet, Yoga 3 Pro
    I am not a Lenovo Employee.
    I AM one of those crazy ThinkPad zealots!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"!

  • Batch processing does not work with action

    Here is the thing. I have implementes several action on Photoshop. SOme of the include several  sub actions and  different saving locations. For example, I open a file, then I hit my prefered key combo for that action, and I have:
    1) convert to cmyk
    2)save  copy as JPG with 11 quality level
    3) save to folder A
    4) image size to 72 dpi
    5) covert to RGB
    6) save as JPG 6 quality level
    7) save to folder B
    8) close file and discard cahnges.
    Everything runs like heaven, but the moment I want to batch several files everything stalls.
    I choose file > Batch > Choose my set > choose my action
    Source > I choose where my files are (usually a PDF)
    then I use "Supress file open options dialogs"
    Destination>  Since I already have set destinations y my actions, I choose here a "dump" folder
    On errors > I hit Save As... and put a name for that log.
    Then photohop opens my PDF on Photoshop and does nothing! It keeps my file open.
    I m gettting frustated here, because I ma about to work with 400 files to batch, and this batch system does not work.
    I am using CS6
    Any clues

    Your action doesn't to seem to include any Open actions. Why do you have the "Supress" option enabled?
    Also, since your action has the two save commands, you would just leave the Destination set to None. Setting a Destination means that is going to save the files again.
    The problem you'll run into though is that the action also saves the file name as part of the action, so that you'll end up just saving over the one file each time the action is played back on your 400 files. So Photoshop will process all the files, but each time it will overwrite the first file, so you'll end up with one file in each folder. Normally, in these situations, you'd use the Destination setting and use the "Overrride Action "Save As" Commands", which would substitute the Destination folder for whenever a Save command is used. The problem here is that you can only choose a single destination folder, so all files would be saved to the same location.
    Short of scripting this, it may be best to break this into two separate actions.

  • DHCP with redundant Gateway does not work

    I am having trouble connecting to my office network using Wifi.
    I have done some investigation and found the problem which is...
    When DHCP server serves the request and replies with multiple/redundant gateways, the device does take the IP and communicates within the local network but ignores the gateway and is not able to connect the outside network.
    When I requested my Systems Administrator and he added specific setting for my device's MAC address and sent only one gateway in DHCP reply, device starts to connect outside.
    Our office has other debian based and CentOS based systems running including Ubuntu workstations but none of them is having problem with multiple/redundant gateways but only N900 is having this problem. It means that the problem is not inherited from Linux or Debian but the bug is related to Maemo itself.
    I have tried to tell add some technical details and do not expect answers like to check firewall and so. This is a genuine problem and is not intermittent. We have experienced it using MS DHCP server under windows 2003 and win 2k as well.
    End users: Please try to duplicate the problem before suggesting a work around or anything
    Developers/Admins/Officials:  I hope you acknowledge the problem soon.

    Yes it is uncommon configuration in house holds but in offices or places that have access to more than one Internet connection the configuration will be common. Houses normally have one small router with one internet connection. However in many offices the router is attached to multiple connections and manages fault-tolerance. Having said all that, regardless of how often it is used, when used it wont work and it is a bug.
    In DHCP protocol "003 Router" is defined as a list of IPs not a single IP and if DHCP protocol is properly supported this should have work. What I mean is that this problem is related to DHCP implementation. Following is the output of route command...
    ACTUAL OUTCOME:
    ===============
    / $ sudo /sbin/route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.15    *               255.255.255.0   U     0      0        0 wlan0
    / $
    EXPECTED OUTCOME:
    =================
    / $ sudo /sbin/route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    192.168.2.15    *               255.255.255.0   U     0      0        0 wlan0
    default         192.168.2.1     0.0.0.0         UG    0      0        0 wlan0
    default         192.168.2.2     0.0.0.0         UG    10     0        0 wlan0
    / $
    I already posted the big on Bugzilla
    https://bugs.maemo.org/show_bug.cgi?id=9662
    Well I posted this here as well so if someone else also faces the same problem (not sure if there will be one) but they should at-least know the problem instead of thinking that why the hell my internet does not work in office when there is no firewall blocking it.. :-)
    I do hope to get it viewed by a "sympathetic developer" :-)
    I currently am not into develop/modify scripts but if this is not fixed by others then I believe I don't have a choice.
    For now as I mentioned I did a work around by adding an IP reservation in my DHCP server which allows me to fix it to one Gateway for this MAC address only. But if I did not have admin access over my DHCP server, I was in trouble then and maybe would not be able to event troubleshoot and identify the problem.

  • Eprint does not work with 5510 D

    I have tried several email addresses to associate with my 5510 D  but the e-print feature does not work with any of them

    Do you already have ePrint set up on your printer?
    If I have SOLVED your issue, please feel free to provide KUDOS and make sure you mark this thread as SOLUTION PROVIDED!
    Although I work for HP, my posts and replies are my own opinion and not those of HP.

  • Need to produce all webhelp files as UTF-8 No BOM - RH-7 does not do that.

    RoboHelp 7 seems to produce some HTML files  and javascript files (*.js) in ANSI European encoding. My company needs all the webhelp code to be UTF-8 no BOM. The webhelp is managed through Perforce.
    I tried on my own to use FAR 4.3 to change the encoding from ANSI to UTF-8 no BOM for all of my htm and js webhelp files for a particular webhelp – I used Auto-detect using BOM signature. FAR changed the files to UTF-8 with BOM. I tried to turn off the BOM by converting with Assume UTF-8 if no BOM signature – that did not work at all (FAR assumed all files were already UTF-8 and did not convert them).
    Is there some way to change this in RoboHelp 7? Can RoboHelp 9 solve this problem?
    If not, is there a post webhelp production solution that can convert all the webhelp in one “batch?”

    UTF-8 was introduced in RoboHelp 8 but I don't think the BOM can be avoided.
    RoboHelp 9 allows you to choose your encoding but the UTF-8 option is Unicode (UTF-8). There is also a Unicode option but it's outside my area to know if that is what you want.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for