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 = ""
Dim oInvoice As SAPbobsCOM.Documents = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoices)
Help me! Thanks...