this is my code:
-
......
Try
Dim oCompService As SAPbobsCOM.CompanyService
oCompService = ap.oCompany.GetCompanyService()
ap.oCompany.StartTransaction()
Dim oDocGeneralService As SAPbobsCOM.GeneralService
Dim oDocGeneralData As SAPbobsCOM.GeneralData
''in this line is the Error. ***
+*oDocGeneralService = oCompService.GetGeneralService("MyDocUDO")*+
Catch ex As Exception
If (ap.oCompany.InTransaction) Then
ap.oCompany.EndTransaction(SAPbobsCOM.BoWfTransOpt.wf_RollBack)
End If
End Try
-
in this line trought a exception that it said: "Interface not registered". I think the problem is the object oCompService but I don't know solved. Anyone Can Help me??
Thanks.