Starting in 8.82 we are now able to allocate batches at the picklist .. Great! My question is, is it possible to add batches to an existing pick list line? I would guess the answer is yes since there is both a get and set on the picklist.lines.batchnumbers.batchnumber. However I have not been able to do this.
Here is the code I am using to try and accomplish my goal.
SAPbobsCOM.PickLists cpk1 = (SAPbobsCOM.PickLists)ocsuoft.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists);
cpk1.Lines.BatchNumbers.BatchNumber = batchnumber;
cpk1.Lines.BatchNumbers.Quantity = quantity;
cpk1.Lines.BatchNumbers.ManufacturerSerialNumber = "";
cpk1.Lines.BatchNumbers.InternalSerialNumber = "1921";
int error = cpk1.Update();
if(error != 0 )
ocsuoft.GetLastError(out errrocode,out erromsg);
This does not give any error, but it also does not add any batches to the item.
Is this just not possible ?