I get the above error when I update a quotation with the sdk.
The only fields I adjust are the price and unitprice fields.
This doesn't happen with all my quotations tho just with a few.
I can still manually update them in SAP but can't do any update of the quotation using the sdk.
When I duplicate the quotation the error remains.
Code:
Dim oDoc As SAPbobsCOM.Documents = Nothing
oDoc = sapCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oQuotations)
If oDoc.GetByKey(Docentry) = False Then Return False
oDoc.Lines.SetCurrentLine(mRs.Fields.Item("visorder").Value)
oDoc.Lines.Price = JoroFunctions.IsNull(mRs.Fields.Item("tot").Value, 0)
oDoc.Lines.UnitPrice = JoroFunctions.IsNull(mRs.Fields.Item("tot").Value, 0)
If oDoc.Update <> 0 Then
MessageBox.Show(sapCompany.GetLastErrorDescription)
end if
Any idea what might be causing this error?