Internal Error - Draft to Invoice
Am trying to update Draft Document to Invoice . But am getting "Internal Error(-10)".
Here with I have attached Screenshot of my Draft Document and Source code for the same.
Kindly help us to Solve.
Am trying to change Warehouse code and UseBaseUnits in Draft, before converting to Invoice.
Dim ODrafts As SAPbobsCOM.Documents
ODrafts = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oDrafts)
If ODrafts.GetByKey(objRecset.Fields.Item("DocEntry").Value) = True Then
For i = 0 To ODrafts.Lines.Count - 1
ODrafts.Lines.WarehouseCode = StrBranchCode
ODrafts.Lines.UseBaseUnits = SAPbobsCOM.BoYesNoEnum.tNO
Retcode = ODrafts.Update()
Thanks in Adcance.