Skip to Content
0
Mar 19, 2009 at 01:05 PM

I have a problem to add data with UDO.

49 Views

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.