on 2016 Aug 19 2:11 PM
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
order.Lines.BatchNumbers.
' 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
batchRow.Remove()
Next
' XML ohne Chargenreservierungen speichern
xDoc.Save("order.xml")
If order.UpdateFromXML("order.xml") <> 0 Then
Console.WriteLine(sboCompany.GetLastErrorDescription())
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.
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
8 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.