Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Internal Error - Draft to Invoice

Dear Experts,

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.



Draft_Invoice.JPG (56197 B)
Former Member
Not what you were looking for? View more on this topic or Ask a question