Skip to Content
0
Former Member
Nov 27, 2009 at 10:38 AM

oCompany.GetNewObjectCode

592 Views

Hi!

I need to use the oCompany.GetNewObjectCode method in the FormDataAddEvents (After Action), but the DocEntry remains equal to "" after the call of oCompany.GetNewObjectCode method. My code is the following:

Dim DocEntry As String = ""

oCompany.GetNewObjectCode(DocEntry)

Dim oInvoice As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)

oInvoice.GetByKey(DocEntry)

Help me! Thanks...