Skip to Content
author's profile photo Former Member
Former Member

Removing batch allocation via SDK possible?

Hi all.

since 9.1 PL11 it is no more possible to remove batch allocations via sdk / xml. normally we do that via:

   If order.GetByKey(docEntry) Then
         ' Auftrag als XML holen
         sboCompany.XmlExportType = SAPbobsCOM.BoXmlExportTypes.xet_ExportImportMode
         Dim xml = order.GetAsXML()
         Dim xDoc = XDocument.Parse(xml)

         ' Chargenreservierungen holen und entfernen
         Dim batchRows = (From x In xDoc.<BOM>.<BO>.<BatchNumbers>.<row> Select x).ToArray()
         For Each batchRow In batchRows

         ' XML ohne Chargenreservierungen speichern

         If order.UpdateFromXML("order.xml") <> 0 Then
         End If
      End If

See note 2286694.

Does anyone knows a different mathod to remove batch allocations on a document (SO e.g.)? We tried to set the order.lines.batchnumbers empty and the quantity to zero. does not work.

Thanks in Advance.


Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 19, 2016 at 01:47 PM

    Hi Andreas,

    Have a look in this thread

    How to clear batch number assignment | SCN

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.