Skip to Content
0
Former Member
Oct 25, 2010 at 01:29 PM

8.8 Invoice based on Order

11 Views

Hi all,

I am trying to create an invoice based on a sales order.

I have this code which worked fine in SBO 2007 but now in 8.8 I get -2010 : Internal error

oDoc = (SAPbobsCOM.Documents) oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices);
oDoc.CardCode = sCardcode;
oDoc.Lines.BaseType = 17;
oDoc.Lines.BaseEntry = int.Parse(docentry);
oDoc.Lines.BaseLine = 0;

Can anyone help me with this?

Thanks