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...