Skip to Content
0
Oct 26, 2015 at 07:28 AM

Internal Error - Draft to Invoice

42 Views

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.SetCurrentLine(i)

ODrafts.Lines.WarehouseCode = StrBranchCode

ODrafts.Lines.UseBaseUnits = SAPbobsCOM.BoYesNoEnum.tNO

Next

Retcode = ODrafts.Update()

Thanks in Adcance.

Regards

Senthil.K

Attachments

Draft_Invoice.JPG (56.2 kB)