How to clear batch number assignment
We use DI API to re-assign Batch Numbers automatically in Sales Order.
When the assignment is wrong, how to clear the assignment in Sales Order by DI-API ?
I had tried to clear it via DTW.
There are no error message and no effect.
Can someone help me ?
It would be very appreciated.
Many thanks for your time in advance.
Maik Delly replied
you have to set the quantity of the batchline to zero :
SAPbobsCOM.Documents oDoc = SBO_Company.GetBusinessObject(BoObjectTypes.oOrders);
oDoc.Lines.BatchNumbers.Quantity = 0;
if (oDoc.Update() != 0)
error = SBO_Company.GetLastErrorDescription();
error = "Document not found";